aboutsummaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-01-26 15:50:19 +0100
committerLorenz Meier <lm@inf.ethz.ch>2014-01-26 15:50:19 +0100
commit2a30c574ce569c876dd2b95919a0d86c7c1b1023 (patch)
treea4fcadd95c10da0432abd25476eebf751f0e5695 /src/drivers
parentd1c934233f42e32a59117cbec317c1116d39be82 (diff)
downloadpx4-firmware-2a30c574ce569c876dd2b95919a0d86c7c1b1023.tar.gz
px4-firmware-2a30c574ce569c876dd2b95919a0d86c7c1b1023.tar.bz2
px4-firmware-2a30c574ce569c876dd2b95919a0d86c7c1b1023.zip
IO status printing improvements / fixes
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/px4io/px4io.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/drivers/px4io/px4io.cpp b/src/drivers/px4io/px4io.cpp
index e24236de7..9595518ec 100644
--- a/src/drivers/px4io/px4io.cpp
+++ b/src/drivers/px4io/px4io.cpp
@@ -1850,14 +1850,15 @@ PX4IO::print_status()
printf("\n");
flags = io_reg_get(PX4IO_PAGE_RAW_RC_INPUT, PX4IO_P_RAW_RC_FLAGS);
- printf("status 0x%04x%s%s%s%s", flags,
+ printf("R/C flags: 0x%04x%s%s%s%s%s\n", flags,
(((io_status_flags & PX4IO_P_STATUS_FLAGS_RC_DSM) && (!(flags & PX4IO_P_RAW_RC_FLAGS_RC_DSM11))) ? " DSM10" : ""),
(((io_status_flags & PX4IO_P_STATUS_FLAGS_RC_DSM) && (flags & PX4IO_P_RAW_RC_FLAGS_RC_DSM11)) ? " DSM11" : ""),
((flags & PX4IO_P_RAW_RC_FLAGS_FRAME_DROP) ? " FRAME_DROP" : ""),
- ((flags & PX4IO_P_RAW_RC_FLAGS_FAILSAFE) ? " FAILSAFE" : "")
+ ((flags & PX4IO_P_RAW_RC_FLAGS_FAILSAFE) ? " FAILSAFE" : ""),
+ ((flags & PX4IO_P_RAW_RC_FLAGS_MAPPING_OK) ? " MAPPING_OK" : "")
);
- if ((flags & PX4IO_P_STATUS_FLAGS_RC_PPM)) {
+ if ((io_status_flags & PX4IO_P_STATUS_FLAGS_RC_PPM)) {
int frame_len = io_reg_get(PX4IO_PAGE_RAW_RC_INPUT, PX4IO_P_RAW_RC_DATA);
printf("RC data (PPM frame len) %u us\n", frame_len);
@@ -2717,7 +2718,7 @@ monitor(void)
/* clear screen */
printf("\033[2J");
- unsigned cancels = 3;
+ unsigned cancels = 2;
for (;;) {
pollfd fds[1];