Forked from
Distributed Autonomous Networked Control Lab / MicroCART
1869 commits behind, 176 commits ahead of the upstream repository.
-
Jake Drahos authored
Example: setpid --pitch -p 5.0 Support is not fully fleshed out because the quad doesn't support everything. Some backend changes will be needed to support the rest of the PID constants that are in the design document. Right now, the P and the D of pitch, roll, and yaw are supported. The Height/Lat/Long PID controllers are not supported by the quad<->backend protocol, nor are the I constants of anything. The quad<->backend protocol is aware of a Throttle controller, which is nowhere in the documentation.
Jake Drahos authoredExample: setpid --pitch -p 5.0 Support is not fully fleshed out because the quad doesn't support everything. Some backend changes will be needed to support the rest of the PID constants that are in the design document. Right now, the P and the D of pitch, roll, and yaw are supported. The Height/Lat/Long PID controllers are not supported by the quad<->backend protocol, nor are the I constants of anything. The quad<->backend protocol is aware of a Throttle controller, which is nowhere in the documentation.
cli.h 500 B
#ifndef __CLI_H
#define __CLI_H
#include "cli_monitor.h"
#include "cli_setpid.h"
#include "cli_getpid.h"
// #include "cli_getimu.h"
enum CommandNameIds{
CMD_MONITOR,
CMD_GETPID,
CMD_SETPID,
CMD_GETIMU,
MAX_COMMANDS
};
typedef int (*cli_function_ptr)(struct backend_conn *, int, char **);
static cli_function_ptr cli_functions[] = {
&cli_monitor,
&cli_getpid,
&cli_setpid
//&cli_getimu
};
static char* commandNames[MAX_COMMANDS] = {
"monitor",
"getpid",
"setpid",
"getImu"
};
#endif