From 17083b54f8f882549576345e20a4b535e7823a60 Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Sat, 18 May 2024 14:10:48 +0100 Subject: [PATCH] Plane: ensure the dshot type gets set --- ArduPlane/system.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ArduPlane/system.cpp b/ArduPlane/system.cpp index 21785ccff1ec2..47a1bd779676d 100644 --- a/ArduPlane/system.cpp +++ b/ArduPlane/system.cpp @@ -142,6 +142,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);