Plane: only pass through throttle in failsafe if armed

This commit is contained in:
Andrew Tridgell 2015-03-16 16:45:49 +11:00
parent e55350a5d6
commit 86ef4a738c

View File

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