Browse Source

Plane: only pass through throttle in failsafe if armed

master
Andrew Tridgell 10 years ago
parent
commit
86ef4a738c
  1. 4
      ArduPlane/failsafe.pde

4
ArduPlane/failsafe.pde

@ -56,7 +56,9 @@ void failsafe_check(void) @@ -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();
channel_throttle->radio_out = channel_throttle->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…
Cancel
Save