Copter: update_throttle_range don't set_throttle_range

This commit is contained in:
Iampete1 2021-09-04 18:12:23 +01:00 committed by Randy Mackay
parent 14dfac42e7
commit f487118ee9
2 changed files with 2 additions and 2 deletions

View File

@ -564,7 +564,7 @@ void Copter::one_hz_loop()
#if FRAME_CONFIG != HELI_FRAME
// set all throttle channel settings
motors->set_throttle_range(channel_throttle->get_radio_min(), channel_throttle->get_radio_max());
motors->update_throttle_range();
#endif
}

View File

@ -51,7 +51,7 @@ void Copter::init_rc_out()
motors->set_update_rate(g.rc_speed);
#if FRAME_CONFIG != HELI_FRAME
motors->set_throttle_range(channel_throttle->get_radio_min(), channel_throttle->get_radio_max());
motors->update_throttle_range();
#else
// setup correct scaling for ESCs like the UAVCAN ESCs which
// take a proportion of speed.