AP_Landing: Fix shadowing with deepstall

Was breaking clang 8 builds
This commit is contained in:
Michael du Breuil 2019-05-09 15:05:57 -07:00 committed by Andrew Tridgell
parent 77985f509f
commit 1040ca2d5e

View File

@ -42,17 +42,6 @@ private:
static const struct AP_Param::GroupInfo var_info[]; static const struct AP_Param::GroupInfo var_info[];
// deepstall members
enum deepstall_stage {
DEEPSTALL_STAGE_FLY_TO_LANDING, // fly to the deepstall landing point
DEEPSTALL_STAGE_ESTIMATE_WIND, // loiter until we have a decent estimate of the wind for the target altitude
DEEPSTALL_STAGE_WAIT_FOR_BREAKOUT, // wait until the aircraft is aligned for the optimal breakout
DEEPSTALL_STAGE_FLY_TO_ARC, // fly to the start of the arc
DEEPSTALL_STAGE_ARC, // fly the arc
DEEPSTALL_STAGE_APPROACH, // fly the approach in, and prepare to deepstall when close
DEEPSTALL_STAGE_LAND, // the aircraft will stall torwards the ground while targeting a given point
};
AP_Float forward_speed; AP_Float forward_speed;
AP_Float slope_a; AP_Float slope_a;
AP_Float slope_b; AP_Float slope_b;
@ -69,7 +58,7 @@ private:
AP_Float min_abort_alt; AP_Float min_abort_alt;
AP_Float aileron_scalar; AP_Float aileron_scalar;
int32_t loiter_sum_cd; // used for tracking the progress on loitering int32_t loiter_sum_cd; // used for tracking the progress on loitering
deepstall_stage stage; DEEPSTALL_STAGE stage;
Location landing_point; Location landing_point;
Location extended_approach; Location extended_approach;
Location breakout_location; Location breakout_location;