From c4a2da7c41f4ea955359757e13edf786205e2e52 Mon Sep 17 00:00:00 2001 From: burneykb <burneykb@iastate.edu> Date: Tue, 24 Jan 2017 09:04:39 -0600 Subject: [PATCH] setsetpoint passing through to backend correctly, and symlinks added to gitignore --- groundStation/.gitignore | 6 ++++++ groundStation/src/cli/cli_setsetpoint.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/groundStation/.gitignore b/groundStation/.gitignore index 508a8f24..0dcd9e52 100644 --- a/groundStation/.gitignore +++ b/groundStation/.gitignore @@ -42,3 +42,9 @@ logs BackEnd obj Cli + +#symlinks +getpid +monitor +setpid +setsetpoint diff --git a/groundStation/src/cli/cli_setsetpoint.c b/groundStation/src/cli/cli_setsetpoint.c index 77bdef93..698aa35f 100644 --- a/groundStation/src/cli/cli_setsetpoint.c +++ b/groundStation/src/cli/cli_setsetpoint.c @@ -4,7 +4,7 @@ #include "cli_setsetpoint.h" -int cli_set(struct backend_conn * conn, int argc, char **argv) { +int cli_setsetpoint(struct backend_conn * conn, int argc, char **argv) { int c; static int setheight = 0, setlat = 0, setlong = 0; struct frontend_setpoint_data setpoint_data; @@ -14,8 +14,8 @@ int cli_set(struct backend_conn * conn, int argc, char **argv) { /* These options don’t set a flag. We distinguish them by their indices. */ {"help", no_argument, &needHelp, 1}, {"height", required_argument, 0, 'h'}, - {"long", required_argument, 0, 't'}, - {"lat", required_argument, 0, 'l'}, + {"long", required_argument, 0, 'l'}, + {"lat", required_argument, 0, 't'}, {0, 0, 0, 0} }; -- GitLab