Skip to content

Commit

Permalink
Plane: Adjust the grouping of functions to match the style
Browse files Browse the repository at this point in the history
  • Loading branch information
muramura committed Oct 22, 2024
1 parent ef7e39e commit 3bc0015
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ArduPlane/quadplane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2905,7 +2905,8 @@ QuadPlane::ActiveFwdThr QuadPlane::get_vfwd_method(void) const
/*
map from pitch tilt to fwd throttle when enabled
*/
void QuadPlane::assign_tilt_to_fwd_thr(void) {
void QuadPlane::assign_tilt_to_fwd_thr(void)
{

const auto fwd_thr_active = get_vfwd_method();
if (fwd_thr_active != ActiveFwdThr::NEW) {
Expand Down Expand Up @@ -4201,7 +4202,7 @@ uint16_t QuadPlane::get_pilot_velocity_z_max_dn() const
{
if (is_zero(pilot_speed_z_max_dn)) {
return abs(pilot_speed_z_max_up*100);
}
}
return abs(pilot_speed_z_max_dn*100);
}

Expand Down Expand Up @@ -4499,8 +4500,9 @@ void SLT_Transition::set_last_fw_pitch()
last_fw_nav_pitch_cd = plane.nav_pitch_cd;
}

void SLT_Transition::force_transition_complete() {
transition_state = TRANSITION_DONE;
void SLT_Transition::force_transition_complete()
{
transition_state = TRANSITION_DONE;
in_forced_transition = false;
transition_start_ms = 0;
transition_low_airspeed_ms = 0;
Expand Down

0 comments on commit 3bc0015

Please sign in to comment.