diff --git a/groundStation/src/frontend/frontend_getpid.c b/groundStation/src/frontend/frontend_getpid.c index fbde309c3169e4d2429f5c3cd06c7674709491a8..bc976d3f421791a1ec65250f4a5dc60f1123e23a 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;