diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2012-12-16 15:31:44 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2012-12-16 15:31:44 +0100 |
commit | e56911bf2d637682f64fe93add114f8fef2682fd (patch) | |
tree | 0551e3d678cda4105574c961f0f95745bbadb634 /apps/px4io/px4io.h | |
parent | f81d00594c156c51ab976d3b6d101915377d7afa (diff) | |
download | px4-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/px4io.h')
-rw-r--r-- | apps/px4io/px4io.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/px4io/px4io.h b/apps/px4io/px4io.h index c8699c6c6..9cfd8f716 100644 --- a/apps/px4io/px4io.h +++ b/apps/px4io/px4io.h @@ -193,7 +193,8 @@ extern void controls_main(void); extern int dsm_init(const char *device); extern bool dsm_input(void); extern int sbus_init(const char *device); -extern bool sbus_input(void); +extern bool sbus_input(int fd, unsigned max_channels, uint16_t *channel_data, unsigned *channel_count, + uint64_t *receive_time, bool *updated); /* * Assertion codes |