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 authored and tridge committed May 22, 2024
1 parent 0c6f396 commit 17083b5
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 17083b5

Please sign in to comment.