aboutsummaryrefslogtreecommitdiff
path: root/src/modules/systemlib
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2013-12-25 15:10:24 +0100
committerLorenz Meier <lm@inf.ethz.ch>2013-12-25 15:11:05 +0100
commita5023329920d5ce45c5bf48ae61d621947cdb349 (patch)
treed63092e1e1bb00feccdd6061bfab6b23ed58a8bc /src/modules/systemlib
parent107bb54b33dd4360fd5fee538f7a87b79279b8ab (diff)
downloadpx4-firmware-a5023329920d5ce45c5bf48ae61d621947cdb349.tar.gz
px4-firmware-a5023329920d5ce45c5bf48ae61d621947cdb349.tar.bz2
px4-firmware-a5023329920d5ce45c5bf48ae61d621947cdb349.zip
Greatly robustified PPM parsing, needs cross-checking with receiver models
Diffstat (limited to 'src/modules/systemlib')
-rw-r--r--src/modules/systemlib/ppm_decode.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/systemlib/ppm_decode.h b/src/modules/systemlib/ppm_decode.h
index 6c5e15345..5a1ad84da 100644
--- a/src/modules/systemlib/ppm_decode.h
+++ b/src/modules/systemlib/ppm_decode.h
@@ -57,6 +57,7 @@ __BEGIN_DECLS
* PPM decoder state
*/
__EXPORT extern uint16_t ppm_buffer[PPM_MAX_CHANNELS]; /**< decoded PPM channel values */
+__EXPORT extern uint16_t ppm_frame_length; /**< length of the decoded PPM frame (includes gap) */
__EXPORT extern unsigned ppm_decoded_channels; /**< count of decoded channels */
__EXPORT extern hrt_abstime ppm_last_valid_decode; /**< timestamp of the last valid decode */