From de0b27e862e19f37beda33652ae7ae71e7e0a601 Mon Sep 17 00:00:00 2001 From: burneykb <burneykb@iastate.edu> Date: Mon, 23 Jan 2017 14:36:42 -0600 Subject: [PATCH] added all controllers to frontend_getpid --- groundStation/src/frontend/frontend_getpid.c | 24 +++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/groundStation/src/frontend/frontend_getpid.c b/groundStation/src/frontend/frontend_getpid.c index fbde309c3..bc976d3f4 100644 --- a/groundStation/src/frontend/frontend_getpid.c +++ b/groundStation/src/frontend/frontend_getpid.c @@ -25,13 +25,31 @@ int frontend_getpid( char line[100] = ""; switch (pid_data->controller) { case PID_PITCH : - strncpy(line, "getpitchp\ngetpitchd\n", 20); + strncpy(line, "getpitchp\ngetpitchi\ngetpitchd\n", 30); break; case PID_ROLL : - strncpy(line, "getrollp\ngetrolld\n", 18); + strncpy(line, "getrollp\ngetrolli\ngetrolld\n", 27); break; case PID_YAW : - strncpy(line, "getyawp\ngetyawd\n", 17); + strncpy(line, "getyawp\ngetyawi\ngetyawd\n", 24); + break; + case PID_PITCH_RATE : + strncpy(line, "getpitchvp\ngetpitchvi\ngetpitchvd\n", 33); + break; + case PID_ROLL_RATE : + strncpy(line, "getrollvp\ngetrollvi\ngetrollvd\n", 30); + break; + case PID_YAW_RATE : + strncpy(line, "getyawvp\ngetyawvi\ngetyawvd\n", 27); + break; + case PID_HEIGHT : + strncpy(line, "getheightp\ngetheighti\ngetheightd\n", 33); + break; + case PID_LAT : + strncpy(line, "getlatp\ngetlati\ngetlatd\n", 24); + break; + case PID_LONG : + strncpy(line, "getlongp\ngetlongi\ngetlongd\n", 27); break; default : return 1; -- GitLab