mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Copter: add MOT_PWM param conversion
This commit is contained in:
parent
30c9cccf78
commit
12c1b3e8f5
@ -51,6 +51,13 @@ void Copter::init_rc_out()
|
||||
motors->set_update_rate(g.rc_speed);
|
||||
|
||||
#if FRAME_CONFIG != HELI_FRAME
|
||||
if (channel_throttle->configured_in_storage()) {
|
||||
// throttle inputs setup, use those to set motor PWM min and max if not already configured
|
||||
motors->convert_pwm_min_max_param(channel_throttle->get_radio_min(), channel_throttle->get_radio_max());
|
||||
} else {
|
||||
// throttle inputs default, force set motor PWM min and max to defaults so they will not be over-written by a future change in RC min / max
|
||||
motors->convert_pwm_min_max_param(1000, 2000);
|
||||
}
|
||||
motors->update_throttle_range();
|
||||
#else
|
||||
// setup correct scaling for ESCs like the UAVCAN ESCs which
|
||||
|
Loading…
Reference in New Issue
Block a user