aboutsummaryrefslogtreecommitdiff
path: root/apps/px4io/comms.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/comms.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/comms.c')
-rw-r--r--apps/px4io/comms.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/px4io/comms.c b/apps/px4io/comms.c
index 9a786234e..bfdad019d 100644
--- a/apps/px4io/comms.c
+++ b/apps/px4io/comms.c
@@ -52,6 +52,7 @@
#include <nuttx/clock.h>
#include <drivers/drv_hrt.h>
+#include <drivers/drv_pwm_output.h>
#include <systemlib/hx_stream.h>
#include <systemlib/perf_counter.h>
@@ -201,7 +202,12 @@ comms_handle_command(const void *buffer, size_t length)
system_state.servo_rate = new_servo_rate;
}
- /* update servo values immediately */
+ /*
+ * update servo values immediately.
+ * the updates are done in addition also
+ * in the mainloop, since this function will only
+ * update with a connected FMU.
+ */
mixer_tick();
/* XXX do relay changes here */