commander: add valid check

Better checking once too much than once too little.
This commit is contained in:
Julian Oes 2021-06-10 12:03:26 +02:00 committed by Matthias Grob
parent efd8757fda
commit 53bd254502
1 changed files with 1 additions and 0 deletions

View File

@ -2449,6 +2449,7 @@ Commander::run()
&& !in_low_battery_failsafe && !_geofence_warning_action_on
&& _armed.armed
&& !_status_flags.rc_input_blocked
&& manual_control_setpoint.valid
&& manual_control_setpoint.user_override
&& override_enabled) {
const transition_result_t posctl_result =