mirror of https://github.com/ArduPilot/ardupilot
AP_Motors: make sure ESC type is initialized early
This commit is contained in:
parent
e95d116979
commit
3d9639181e
|
@ -125,6 +125,7 @@ void AP_Motors::rc_set_freq(uint32_t motor_mask, uint16_t freq_hz)
|
|||
|
||||
const uint32_t mask = motor_mask_to_srv_channel_mask(motor_mask);
|
||||
hal.rcout->set_freq(mask, freq_hz);
|
||||
hal.rcout->set_dshot_esc_type(SRV_Channels::get_dshot_esc_type());
|
||||
|
||||
switch (pwm_type(_pwm_type.get())) {
|
||||
case PWM_TYPE_ONESHOT:
|
||||
|
|
Loading…
Reference in New Issue