From f8cbdaa4a825f96c9b46edabda9841fec69fd969 Mon Sep 17 00:00:00 2001 From: Jake Drahos <j@kedrahos.com> Date: Mon, 28 Nov 2016 14:59:41 -0600 Subject: [PATCH] Touched up cli_getpid Just to get an idea of what the args will all look like --- groundStation/src/cli/cli_getpid.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/groundStation/src/cli/cli_getpid.c b/groundStation/src/cli/cli_getpid.c index bcf135870..bb887ca24 100644 --- a/groundStation/src/cli/cli_getpid.c +++ b/groundStation/src/cli/cli_getpid.c @@ -7,12 +7,20 @@ int cli_getpid(struct backend_conn * conn, int argc, char **argv) { int c; static int getRoll = 0, getPitch = 0, getYaw = 0, getAll = 0; + static int getRollV = 0, getPitchV = 0, getYawV = 0; + static int getHeight = 0, getLat = 0, getLong = 0; struct frontend_pid_data pid_data; static struct option long_options[] = { /* These options don’t set a flag. We distinguish them by their indices. */ {"roll", no_argument, &getRoll, 1}, {"pitch", no_argument, &getPitch, 1}, {"yaw", no_argument, &getYaw, 1}, + {"rollv", no_argument, &getYawV, 1}, + {"pitchv", no_argument, &getYawV, 1}, + {"yawv", no_argument, &getYawV, 1}, + {"height", no_argument, &getHeight, 1}, + {"lat", no_argument, &getLat, 1}, + {"long", no_argument, &getLong, 1}, {0, 0, 0, 0} }; -- GitLab