ekf2: consolidate and simplify gnd effect logic

This commit is contained in:
Daniel Agar
2022-02-22 16:59:10 -05:00
parent 1d7791dad6
commit d6d529539d
9 changed files with 609 additions and 612 deletions
+2 -2
View File
@@ -136,9 +136,9 @@ public:
// set flag if static pressure rise due to ground effect is expected
// use _params.gnd_effect_deadzone to adjust for expected rise in static pressure
// flag will clear after GNDEFFECT_TIMEOUT uSec
void set_gnd_effect_flag(bool gnd_effect)
void set_gnd_effect()
{
_control_status.flags.gnd_effect = gnd_effect;
_control_status.flags.gnd_effect = true;
_time_last_gnd_effect_on = _time_last_imu;
}