aboutsummaryrefslogtreecommitdiff
path: root/apps/systemlib/ppm_decode.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/systemlib/ppm_decode.h')
-rw-r--r--apps/systemlib/ppm_decode.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/systemlib/ppm_decode.h b/apps/systemlib/ppm_decode.h
index c2b24321a..6c5e15345 100644
--- a/apps/systemlib/ppm_decode.h
+++ b/apps/systemlib/ppm_decode.h
@@ -46,12 +46,17 @@
*/
#define PPM_MAX_CHANNELS 12
+/* PPM input nominal min/max values */
+#define PPM_MIN 1000
+#define PPM_MAX 2000
+#define PPM_MID ((PPM_MIN + PPM_MAX) / 2)
+
__BEGIN_DECLS
/*
* PPM decoder state
*/
-__EXPORT extern uint16_t ppm_buffer[]; /**< decoded PPM channel values */
+__EXPORT extern uint16_t ppm_buffer[PPM_MAX_CHANNELS]; /**< decoded PPM channel values */
__EXPORT extern unsigned ppm_decoded_channels; /**< count of decoded channels */
__EXPORT extern hrt_abstime ppm_last_valid_decode; /**< timestamp of the last valid decode */