mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-21 16:18:29 -04:00
Plane: added support for secondary throttles
This commit is contained in:
parent
62f3818b83
commit
c4c7a3051a
@ -1217,11 +1217,13 @@ void Plane::set_servos(void)
|
||||
break;
|
||||
|
||||
case AP_Arming::YES_ZERO_PWM:
|
||||
channel_throttle->set_servo_out(0);
|
||||
channel_throttle->set_radio_out(0);
|
||||
break;
|
||||
|
||||
case AP_Arming::YES_MIN_PWM:
|
||||
default:
|
||||
channel_throttle->set_servo_out(0);
|
||||
channel_throttle->set_radio_out(throttle_min());
|
||||
break;
|
||||
}
|
||||
@ -1263,6 +1265,9 @@ void Plane::set_servos(void)
|
||||
channel_throttle->set_servo_out(override_pct);
|
||||
channel_throttle->calc_pwm();
|
||||
}
|
||||
|
||||
// allow for secondary throttle
|
||||
RC_Channel_aux::set_servo_out_for(RC_Channel_aux::k_throttle, channel_throttle->get_servo_out());
|
||||
|
||||
// send values to the PWM timers for output
|
||||
// ----------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user