AP_TECS: removed TECS_LAND_PMIN

thanks to TunaLobster for pointing out that it is redundent
This commit is contained in:
Andrew Tridgell 2019-11-19 07:47:33 +11:00
parent 89c43fa052
commit a415423975
2 changed files with 0 additions and 12 deletions

View File

@ -249,14 +249,6 @@ const AP_Param::GroupInfo AP_TECS::var_info[] = {
// @User: Advanced
AP_GROUPINFO("OPTIONS", 28, AP_TECS, _options, 0),
// @Param: LAND_PMIN
// @DisplayName: Minimum pitch during final stage of landing
// @Description: This limits the pitch used during the final stage of automatic landing. During the final landing stage most planes need to keep their pitch range small to avoid stalling or descending too fast. A minimum of -5 degrees is usually good. A value of zero means to use the normal pitch limits.
// @Range: -5 5
// @Increment: 1
// @User: Advanced
AP_GROUPINFO("LAND_PMIN", 29, AP_TECS, _land_pitch_mindeg, 0),
AP_GROUPEND
};
@ -1077,9 +1069,6 @@ void AP_TECS::update_pitch_throttle(int32_t hgt_dem_cm,
if (_landing.is_flaring()) {
// ensure we don't violate the limits for flare pitch
if (_land_pitch_mindeg != 0) {
_PITCHminf = MAX(_land_pitch_mindeg, _PITCHminf);
}
if (_land_pitch_max != 0) {
_PITCHmaxf = MIN(_land_pitch_max, _PITCHmaxf);
}

View File

@ -165,7 +165,6 @@ private:
AP_Int8 _pitch_max;
AP_Int8 _pitch_min;
AP_Int8 _land_pitch_max;
AP_Int8 _land_pitch_mindeg;
AP_Float _maxSinkRate_approach;
AP_Int32 _options;