aboutsummaryrefslogtreecommitdiff
path: root/src/modules/uORB
diff options
context:
space:
mode:
authorAnton Babushkin <anton.babushkin@me.com>2014-04-03 11:45:57 +0400
committerAnton Babushkin <anton.babushkin@me.com>2014-04-03 11:45:57 +0400
commit367ce63b86b863d72a3f6b4250d9da780a85f40b (patch)
treec462d06d347941d3a01791f17e62053bbc75f44e /src/modules/uORB
parent0205eebaa63016b3cf4bb03a5af230554d4a581b (diff)
downloadpx4-firmware-367ce63b86b863d72a3f6b4250d9da780a85f40b.tar.gz
px4-firmware-367ce63b86b863d72a3f6b4250d9da780a85f40b.tar.bz2
px4-firmware-367ce63b86b863d72a3f6b4250d9da780a85f40b.zip
'signal_lost' flag added to manual_control_setpoint and rc_channels topics to indicate signal loss immediately
Diffstat (limited to 'src/modules/uORB')
-rw-r--r--src/modules/uORB/topics/manual_control_setpoint.h2
-rw-r--r--src/modules/uORB/topics/rc_channels.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/uORB/topics/manual_control_setpoint.h b/src/modules/uORB/topics/manual_control_setpoint.h
index eac6d6e98..5d1384380 100644
--- a/src/modules/uORB/topics/manual_control_setpoint.h
+++ b/src/modules/uORB/topics/manual_control_setpoint.h
@@ -51,6 +51,8 @@
struct manual_control_setpoint_s {
uint64_t timestamp;
+ bool signal_lost; /**< control signal lost, should be checked together with topic timeout */
+
float roll; /**< ailerons roll / roll rate input */
float pitch; /**< elevator / pitch / pitch rate */
float yaw; /**< rudder / yaw rate / yaw */
diff --git a/src/modules/uORB/topics/rc_channels.h b/src/modules/uORB/topics/rc_channels.h
index 6eb20efd1..3246a39dd 100644
--- a/src/modules/uORB/topics/rc_channels.h
+++ b/src/modules/uORB/topics/rc_channels.h
@@ -94,6 +94,7 @@ struct rc_channels_s {
char function_name[RC_CHANNELS_FUNCTION_MAX][20];
int8_t function[RC_CHANNELS_FUNCTION_MAX];
uint8_t rssi; /**< Overall receive signal strength */
+ bool signal_lost; /**< control signal lost, should be checked together with topic timeout */
}; /**< radio control channels. */
/**