5#define DEFAULT_GLE_ALPHA 0.1F
33 float update(
float currentASL_m);
52 bool launched =
false;
53 float estimatedGroundLevel_m = 0.0F;
54 uint32_t sampleCount = 0;
#define DEFAULT_GLE_ALPHA
GroundLevelEstimator(float alpha=DEFAULT_GLE_ALPHA)
Constructs a GroundLevelEstimator.
void launchDetected()
Signals that launch has been detected.
float getEGL() const
Gets the estimated ground level.
float update(float currentASL_m)
Updates the ground level estimate or converts ASL to AGL.