aboutsummaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-01-26 00:14:19 +0100
committerLorenz Meier <lm@inf.ethz.ch>2014-01-26 00:14:19 +0100
commiteee2508644ea1ca3b267ed89db6d0deb8fe0d3e1 (patch)
treeadc0b23f37d67b669f309534fd5a887c92285cf3 /src/drivers
parentb06d199129d57eabe2b73da713c9ac4ce98a68bf (diff)
downloadpx4-firmware-eee2508644ea1ca3b267ed89db6d0deb8fe0d3e1.tar.gz
px4-firmware-eee2508644ea1ca3b267ed89db6d0deb8fe0d3e1.tar.bz2
px4-firmware-eee2508644ea1ca3b267ed89db6d0deb8fe0d3e1.zip
Add additional flags to RC topic, not used yet.
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/drv_rc_input.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/drivers/drv_rc_input.h b/src/drivers/drv_rc_input.h
index 6b87141e9..0afe2f16f 100644
--- a/src/drivers/drv_rc_input.h
+++ b/src/drivers/drv_rc_input.h
@@ -92,6 +92,34 @@ struct rc_input_values {
/** receive signal strength indicator (RSSI): < 0: Undefined, 0: no signal, 255: full reception */
int32_t rssi;
+ /**
+ * explicit failsafe flag: true on TX failure or TX out of range , false otherwise.
+ * Only the true state is reliable, as there are some (PPM) receivers on the market going
+ * into failsafe without telling us explicitly.
+ * */
+ bool rc_failsafe;
+
+ /**
+ * RC receiver connection status: True,if no frame has arrived in the expected time, false otherwise.
+ * True usally means that the receiver has been disconnected, but can also indicate a radio link loss on "stupid" systems.
+ * Will remain false, if a RX with failsafe option continues to transmit frames after a link loss.
+ * */
+ bool rc_lost;
+
+ /**
+ * Number of lost RC frames.
+ * Note: intended purpose: observe the radio link quality if RSSI is not available
+ * This value must not be used to trigger any failsafe-alike funtionality.
+ * */
+ uint16_t rc_lost_frame_count;
+
+ /**
+ * Number of total RC frames.
+ * Note: intended purpose: observe the radio link quality if RSSI is not available
+ * This value must not be used to trigger any failsafe-alike funtionality.
+ * */
+ uint16_t rc_total_frame_count;
+
/** Input source */
enum RC_INPUT_SOURCE input_source;