Plane: ensure the dshot type gets set

This commit is contained in:
Andy Piper 2024-05-18 14:10:48 +01:00 committed by Randy Mackay
parent d2c2705e85
commit d631327aae
1 changed files with 1 additions and 0 deletions

View File

@ -135,6 +135,7 @@ void Plane::init_ardupilot()
if (g2.oneshot_mask != 0) {
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);