aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/px4io
diff options
context:
space:
mode:
authorHolger Steinhaus <hsteinhaus@gmx.de>2014-03-25 15:23:40 +0100
committerLorenz Meier <lm@inf.ethz.ch>2014-03-25 17:12:14 +0100
commitcb3a4f12670ce8d6cf608eb0ec97298a3bcb0919 (patch)
tree0701a1d02f25628610e0e29be8ef038b120b1a11 /src/drivers/px4io
parent3270e2f42887265f6576b132aa29b4c1037d0b0d (diff)
downloadpx4-firmware-cb3a4f12670ce8d6cf608eb0ec97298a3bcb0919.tar.gz
px4-firmware-cb3a4f12670ce8d6cf608eb0ec97298a3bcb0919.tar.bz2
px4-firmware-cb3a4f12670ce8d6cf608eb0ec97298a3bcb0919.zip
px4io driver: publish input_rc even if RC connection has been lost
Diffstat (limited to 'src/drivers/px4io')
-rw-r--r--src/drivers/px4io/px4io.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/drivers/px4io/px4io.cpp b/src/drivers/px4io/px4io.cpp
index 82f3ba044..2c0078503 100644
--- a/src/drivers/px4io/px4io.cpp
+++ b/src/drivers/px4io/px4io.cpp
@@ -1479,10 +1479,9 @@ PX4IO::io_publish_raw_rc()
} else {
rc_val.input_source = RC_INPUT_SOURCE_UNKNOWN;
- /* we do not know the RC input, only publish if RC OK flag is set */
- /* if no raw RC, just don't publish */
- if (!(_status & PX4IO_P_STATUS_FLAGS_RC_OK))
- return OK;
+ /* we do not know the RC input, but have to publish timestamp_published
+ * and rc_lost flag, so do not prematurely return here
+ */
}
/* lazily advertise on first publication */