mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-13 20:13:35 +08:00
commander: check for valid flag for manual_control
This commit is contained in:
committed by
Matthias Grob
parent
cda6524421
commit
ac121c676a
@@ -53,6 +53,7 @@ bool ManualControl::update()
|
||||
}
|
||||
|
||||
_rc_available = _rc_allowed
|
||||
&& _manual_control_setpoint.valid
|
||||
&& _manual_control_setpoint.timestamp != 0
|
||||
&& (hrt_elapsed_time(&_manual_control_setpoint.timestamp) < (_param_com_rc_loss_t.get() * 1_s));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user