mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
Plane: update_throttle_range dont set_throttle_range
This commit is contained in:
parent
39a71966df
commit
28f990f40a
@ -805,15 +805,7 @@ bool QuadPlane::setup(void)
|
|||||||
AP_Param::load_object_from_eeprom(loiter_nav, loiter_nav->var_info);
|
AP_Param::load_object_from_eeprom(loiter_nav, loiter_nav->var_info);
|
||||||
|
|
||||||
motors->init(frame_class, frame_type);
|
motors->init(frame_class, frame_type);
|
||||||
|
motors->update_throttle_range();
|
||||||
tilt.is_vectored = tilt.tilt_mask != 0 && tilt.tilt_type == TILT_TYPE_VECTORED_YAW;
|
|
||||||
|
|
||||||
if (motors_var_info == AP_MotorsMatrix::var_info && tilt.is_vectored) {
|
|
||||||
// we will be using vectoring for yaw
|
|
||||||
motors->disable_yaw_torque();
|
|
||||||
}
|
|
||||||
|
|
||||||
motors->set_throttle_range(thr_min_pwm, thr_max_pwm);
|
|
||||||
motors->set_update_rate(rc_speed);
|
motors->set_update_rate(rc_speed);
|
||||||
motors->set_interlock(true);
|
motors->set_interlock(true);
|
||||||
attitude_control->parameter_sanity_check();
|
attitude_control->parameter_sanity_check();
|
||||||
|
Loading…
Reference in New Issue
Block a user