commander: check for valid flag for manual_control

This commit is contained in:
Julian Oes 2021-04-15 14:33:27 +02:00 committed by Matthias Grob
parent cda6524421
commit ac121c676a
1 changed files with 1 additions and 0 deletions

View File

@ -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));