Skip to content
Snippets Groups Projects
Commit de0b27e8 authored by burneykb's avatar burneykb
Browse files

added all controllers to frontend_getpid

parent a16b7177
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment