diff --git a/groundStation/src/cli/cli.h b/groundStation/src/cli/cli.h index 2951fd8d4c648038ab5fb94f7d261ad6e73ecfba..f4c2fe3f4783b9b4a4dd1e3482cdf3034cbaf269 100644 --- a/groundStation/src/cli/cli.h +++ b/groundStation/src/cli/cli.h @@ -2,29 +2,29 @@ #define __CLI_H #include "cli_monitor.h" -// #include "cli_setpid.h" +#include "cli_setpid.h" #include "cli_getpid.h" // #include "cli_getimu.h" enum CommandNameIds{ CMD_MONITOR, - CMD_SETPID, CMD_GETPID, + CMD_SETPID, CMD_GETIMU, MAX_COMMANDS }; typedef int (*cli_function_ptr)(struct backend_conn *, int, char **); -static cli_function_ptr cli_functions[2] = { +static cli_function_ptr cli_functions[] = { &cli_monitor, - &cli_getpid - // &cli_setpid, - // &cli_getimu + &cli_getpid, + &cli_setpid + //&cli_getimu }; static char* commandNames[MAX_COMMANDS] = { "monitor", - "getPid", - "setPid", + "getpid", + "setpid", "getImu" }; diff --git a/groundStation/src/cli/cli_setpid.h b/groundStation/src/cli/cli_setpid.h index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..87fb0a4f40e91ed704972bd17e4859991d91641b 100644 --- a/groundStation/src/cli/cli_setpid.h +++ b/groundStation/src/cli/cli_setpid.h @@ -0,0 +1,8 @@ +#ifndef _CLI_SETPID_H +#define _CLI_SETPID_H + +#include "frontend_setpid.h" + +int cli_setpid(struct backend_conn * conn, int argc, char ** argv); + +#endif diff --git a/groundStation/src/frontend/frontend_setpid.c b/groundStation/src/frontend/frontend_setpid.c index ec3119925ad4235f904e952f6af666a4bf267503..0a25d8e3c068ebcd8d121dac7469f86cc6d8a8c6 100644 --- a/groundStation/src/frontend/frontend_setpid.c +++ b/groundStation/src/frontend/frontend_setpid.c @@ -27,7 +27,7 @@ int frontend_setpid( break; /* What is the "throttle" pid constant? */ default: - warnx("Unsupported PID variable"); + warnx("Unsupported PID constant"); return -1; }