ManualControl: use input validity flag to check for RC calibration

This commit is contained in:
Matthias Grob
2023-05-23 17:24:17 +02:00
parent 7d0596d244
commit 7b6f45079b
4 changed files with 10 additions and 2 deletions
@@ -83,7 +83,7 @@ bool ManualControlSelector::isInputValid(const manual_control_setpoint_s &input,
(input.data_source == _first_valid_source
|| _first_valid_source == manual_control_setpoint_s::SOURCE_UNKNOWN);
return sample_from_the_past && sample_newer_than_timeout
return sample_from_the_past && sample_newer_than_timeout && input.valid
&& (source_rc_matched || source_mavlink_matched || source_any_matched || source_first_matched);
}