Sub: convert to PWM min and max in AP_Motors

This commit is contained in:
Iampete1 2021-09-04 18:54:40 +01:00 committed by Willian Galvani
parent aed79bee6f
commit 672da4e3f2
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ void Sub::init_rc_out()
motors.set_update_rate(g.rc_speed);
motors.set_loop_rate(scheduler.get_loop_rate_hz());
motors.init((AP_Motors::motor_frame_class)g.frame_configuration.get(), AP_Motors::motor_frame_type::MOTOR_FRAME_TYPE_PLUS);
motors.convert_pwm_min_max_param(channel_throttle->get_radio_min(), channel_throttle->get_radio_max());
motors.update_throttle_range();
// enable output to motors