mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-26 04:30:35 +08:00
px4io driver: publish input_rc even if RC connection has been lost
This commit is contained in:
committed by
Lorenz Meier
parent
3270e2f428
commit
cb3a4f1267
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user