diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-02-24 21:12:25 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-02-24 21:12:25 +0100 |
commit | 72603207a1b16b628f153d195788171054cfc047 (patch) | |
tree | 9940b72b0d0a5090498262288f7a3717118b11a0 /apps | |
parent | 3d53b1d551d2ff901b68503e55167be03123b067 (diff) | |
download | px4-firmware-72603207a1b16b628f153d195788171054cfc047.tar.gz px4-firmware-72603207a1b16b628f153d195788171054cfc047.tar.bz2 px4-firmware-72603207a1b16b628f153d195788171054cfc047.zip |
Fixed formatting of status printing
Diffstat (limited to 'apps')
-rw-r--r-- | apps/drivers/px4io/px4io.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/drivers/px4io/px4io.cpp b/apps/drivers/px4io/px4io.cpp index a06a2575e..d695c4f82 100644 --- a/apps/drivers/px4io/px4io.cpp +++ b/apps/drivers/px4io/px4io.cpp @@ -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 |