mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Plane: ensure the dshot type gets set
This commit is contained in:
parent
d2c2705e85
commit
d631327aae
@ -135,6 +135,7 @@ void Plane::init_ardupilot()
|
|||||||
if (g2.oneshot_mask != 0) {
|
if (g2.oneshot_mask != 0) {
|
||||||
hal.rcout->set_output_mode(g2.oneshot_mask, AP_HAL::RCOutput::MODE_PWM_ONESHOT);
|
hal.rcout->set_output_mode(g2.oneshot_mask, AP_HAL::RCOutput::MODE_PWM_ONESHOT);
|
||||||
}
|
}
|
||||||
|
hal.rcout->set_dshot_esc_type(SRV_Channels::get_dshot_esc_type());
|
||||||
|
|
||||||
set_mode_by_number((enum Mode::Number)g.initial_mode.get(), ModeReason::INITIALISED);
|
set_mode_by_number((enum Mode::Number)g.initial_mode.get(), ModeReason::INITIALISED);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user