aboutsummaryrefslogtreecommitdiff
path: root/apps/px4io/mixer.c
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2012-12-16 15:31:44 +0100
committerLorenz Meier <lm@inf.ethz.ch>2012-12-16 15:31:44 +0100
commite56911bf2d637682f64fe93add114f8fef2682fd (patch)
tree0551e3d678cda4105574c961f0f95745bbadb634 /apps/px4io/mixer.c
parentf81d00594c156c51ab976d3b6d101915377d7afa (diff)
downloadpx4-firmware-e56911bf2d637682f64fe93add114f8fef2682fd.tar.gz
px4-firmware-e56911bf2d637682f64fe93add114f8fef2682fd.tar.bz2
px4-firmware-e56911bf2d637682f64fe93add114f8fef2682fd.zip
Fixed signal loss detection on S.Bus parsing, stripped PX4IO code parts from S.Bus parser to allow FMU / IO parser code sharing. Added S.Bus channels 17 and 18 if channel data struct has enough space. Tested with receiver and PX4FMU.
Diffstat (limited to 'apps/px4io/mixer.c')
-rw-r--r--apps/px4io/mixer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/px4io/mixer.c b/apps/px4io/mixer.c
index 318183ef5..135d97bb3 100644
--- a/apps/px4io/mixer.c
+++ b/apps/px4io/mixer.c
@@ -48,7 +48,10 @@
#include <unistd.h>
#include <fcntl.h>
+#include <debug.h>
+
#include <drivers/drv_pwm_output.h>
+#include <drivers/drv_hrt.h>
#include "px4io.h"
@@ -95,6 +98,7 @@ mixer_tick(void)
/* too many frames without FMU input, time to go to failsafe */
system_state.mixer_manual_override = true;
system_state.mixer_fmu_available = false;
+ lib_lowprintf("\nRX timeout\n");
}
} else if (system_state.rc_channels > 0 && system_state.manual_override_ok) {