Plane: Removed all instances of in_back_transition

It is not currently used anywhere.
This commit is contained in:
George Zogopoulos 2024-08-14 17:04:05 +02:00 committed by Andrew Tridgell
parent f7d40c0c73
commit 6fee0eccad
4 changed files with 0 additions and 30 deletions

View File

@ -3971,14 +3971,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
*/
@ -3987,15 +3979,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
*/
@ -4377,11 +4360,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

View File

@ -110,9 +110,7 @@ public:
// 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;

View File

@ -177,8 +177,6 @@ public:
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;

View File

@ -38,8 +38,6 @@ public:
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) {};
@ -89,8 +87,6 @@ public:
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;