Skip to content

Commit

Permalink
Plane: ensure the dshot type gets set
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed May 18, 2024
1 parent 5cf2c27 commit f131329
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ArduPlane/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit f131329

Please sign in to comment.