Skip to content

Commit

Permalink
AC_Autorotaton: Format using astyle
Browse files Browse the repository at this point in the history
  • Loading branch information
muramura committed Oct 11, 2024
1 parent c3affa4 commit 9caf5f2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions libraries/AC_Autorotation/RSC_Autorotation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,15 @@ void RSC_Autorotation::set_active(bool active, bool force_state)
}

// Wait for allocated autorotation run up time before we allow progression of state to deactivated
if ((state == State::BAILING_OUT) &&
if ((state == State::BAILING_OUT) &&
(desired_state == State::DEACTIVATED) &&
(bail_out_started_ms > 0) &&
(AP_HAL::millis() - bail_out_started_ms < uint32_t(get_runup_time()*1000)))
{
(bail_out_started_ms > 0) &&
(AP_HAL::millis() - bail_out_started_ms < uint32_t(get_runup_time()*1000))) {
return;
}

// handle GCS messages
switch (desired_state)
{
switch (desired_state) {
case State::DEACTIVATED:
GCS_SEND_TEXT(MAV_SEVERITY_NOTICE, "RSC: Autorotation Stopped");
break;
Expand Down

0 comments on commit 9caf5f2

Please sign in to comment.