Skip to content

Commit

Permalink
Plane: Removed all instances of in_back_transition
Browse files Browse the repository at this point in the history
It is not currently used anywhere.
  • Loading branch information
Georacer committed Aug 14, 2024
1 parent 9cf0b18 commit 1145442
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 30 deletions.
22 changes: 0 additions & 22 deletions ArduPlane/quadplane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3970,14 +3970,6 @@ bool QuadPlane::is_vtol_land(uint16_t id) const
return false;
}

/*
return true if we are in any kind of transition
*/
bool QuadPlane::in_transition(void) const
{
return in_frwd_transition() || in_back_transition();
}

/*
return true if we are in a transition to fwd flight from hover
*/
Expand All @@ -3986,15 +3978,6 @@ bool QuadPlane::in_frwd_transition(void) const
return available() && transition->active_frwd();
}

/*
return true if we are in a transition to hover from fwd flight
*/
bool QuadPlane::in_back_transition(void) const
{
// By default the
return available() && transition->active_back();
}

/*
calculate current stopping distance for a quadplane in fixed wing flight
*/
Expand Down Expand Up @@ -4376,11 +4359,6 @@ bool SLT_Transition::active_frwd() const
return quadplane.assisted_flight && ((transition_state == TRANSITION_AIRSPEED_WAIT) || (transition_state == TRANSITION_TIMER));
}

bool SLT_Transition::active_back() const
{
return false;
}

/*
limit VTOL roll/pitch in POSITION1, POSITION2 and waypoint controller. This serves three roles:
1) an expanding envelope limit on pitch to prevent sudden pitch at the start of a back transition
Expand Down
2 changes: 0 additions & 2 deletions ArduPlane/quadplane.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@ class QuadPlane
// abort landing, only valid when in a VTOL landing descent
bool abort_landing(void);

bool in_transition(void) const;
bool in_frwd_transition(void) const;
bool in_back_transition(void) const;

bool handle_do_vtol_transition(enum MAV_VTOL_STATE state) const;

Expand Down
2 changes: 0 additions & 2 deletions ArduPlane/tailsitter.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,6 @@ friend class Tailsitter;

bool active_frwd() const override { return transition_state == TRANSITION_ANGLE_WAIT_FW; }

bool active_back() const override { return transition_state == TRANSITION_ANGLE_WAIT_VTOL; }

bool show_vtol_view() const override;

void set_FW_roll_pitch(int32_t& nav_pitch_cd, int32_t& nav_roll_cd) override;
Expand Down
4 changes: 0 additions & 4 deletions ArduPlane/transition.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ class Transition

virtual bool active_frwd() const = 0;

virtual bool active_back() const = 0;

virtual bool show_vtol_view() const = 0;

virtual void set_FW_roll_pitch(int32_t& nav_pitch_cd, int32_t& nav_roll_cd) {};
Expand Down Expand Up @@ -89,8 +87,6 @@ class SLT_Transition : public Transition

bool active_frwd() const override;

bool active_back() const override;

bool show_vtol_view() const override;

void set_FW_roll_pitch(int32_t& nav_pitch_cd, int32_t& nav_roll_cd) override;
Expand Down

0 comments on commit 1145442

Please sign in to comment.