Forked from
Distributed Autonomous Networked Control Lab / MicroCART
1869 commits behind, 113 commits ahead of the upstream repository.
-
Jake Drahos authoredJake Drahos authored
cli.h 543 B
#ifndef __CLI_H
#define __CLI_H
#include "frontend_getpid.h"
// #include "cli_monitor.h"
// #include "cli_setpid.h"
#include "cli_getpid.h"
// #include "cli_getimu.h"
enum CommandNameIds{
CMD_MONITOR,
CMD_SETPID,
CMD_GETPID,
CMD_GETIMU,
MAX_COMMANDS
};
typedef int (*cli_function_ptr)(struct backend_conn *, int, char **);
static cli_function_ptr cli_functions[1] = {
// &cli_monitor,
// &cli_setpid,
&cli_getpid
// &cli_getimu
};
static char* commandNames[MAX_COMMANDS] = {
"monitor",
"setPid",
"getPid",
"getImu"
};
#endif