Plane: only pass through throttle in failsafe if armed
This commit is contained in:
parent
e55350a5d6
commit
86ef4a738c
@ -56,7 +56,9 @@ void failsafe_check(void)
|
||||
hal.rcin->clear_overrides();
|
||||
channel_roll->radio_out = channel_roll->read();
|
||||
channel_pitch->radio_out = channel_pitch->read();
|
||||
if (hal.util->get_soft_armed()) {
|
||||
channel_throttle->radio_out = channel_throttle->read();
|
||||
}
|
||||
channel_rudder->radio_out = channel_rudder->read();
|
||||
|
||||
int16_t roll = channel_roll->pwm_to_angle_dz(0);
|
||||
|
Loading…
Reference in New Issue
Block a user