Skip to content

Commit

Permalink
ArduPlane: go through the formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
muramura committed Apr 5, 2024
1 parent 8b5fdd0 commit 81690c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ArduPlane/mode_auto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ bool ModeAuto::_enter()
return false;
}
}

if (plane.quadplane.available() && plane.quadplane.enable == 2) {
plane.auto_state.vtol_mode = true;
} else {
Expand Down Expand Up @@ -147,7 +147,7 @@ bool ModeAuto::_pre_arm_checks(size_t buflen, char *buffer) const
#if HAL_QUADPLANE_ENABLED
if (plane.quadplane.enabled()) {
if (plane.quadplane.option_is_set(QuadPlane::OPTION::ONLY_ARM_IN_QMODE_OR_AUTO) &&
!plane.quadplane.is_vtol_takeoff(plane.mission.get_current_nav_cmd().id)) {
!plane.quadplane.is_vtol_takeoff(plane.mission.get_current_nav_cmd().id)) {
hal.util->snprintf(buffer, buflen, "not in VTOL takeoff");
return false;
}
Expand Down

0 comments on commit 81690c9

Please sign in to comment.