mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 20:03:33 +08:00
Fixed formatting of status printing
This commit is contained in:
@@ -1158,11 +1158,13 @@ PX4IO::mixer_send(const char *buf, unsigned buflen)
|
||||
void
|
||||
PX4IO::print_status()
|
||||
{
|
||||
printf("\tRC status:\t%s\n", (_status & PX4IO_P_STATUS_FLAGS_RC_OK) ? "OK" : "LOST");
|
||||
printf("\tRC status:\t%s\n", (_status & PX4IO_P_STATUS_FLAGS_RC_OK) ? "OK" : "FAIL");
|
||||
if (_status & PX4IO_P_STATUS_FLAGS_RC_OK) {
|
||||
printf("\tRC type:\t%s\n", (_status & PX4IO_P_STATUS_FLAGS_RC_SBUS) ? "S.BUS" : ((_status & PX4IO_P_STATUS_FLAGS_RC_DSM) ? "DSM" : "PPM"));
|
||||
// printf("\tRC chans:\t%d\n", xxx);
|
||||
}
|
||||
//printf("\tRC Config:\t%s\n", (_status & PX4IO_P_STATUS_FLAGS_RC_CONFIG_OK) ? "OK" : "FAIL");
|
||||
printf("\tFMU link:\t%s\n", (_status & PX4IO_P_STATUS_FLAGS_FMU_OK) ? "OK" : "FAIL");
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user