|
Avionics
Core avionics package for CURE flight computers
|
#include <GroundLevelEstimator.h>

Public Member Functions | |
| GroundLevelEstimator () | |
| Constructs a GroundLevelEstimator. | |
| float | update (float currentASL_m) |
| Updates the ground level estimate or converts ASL to AGL. | |
| void | launchDetected () |
| Signals that launch has been detected. | |
| float | getEGL () const |
| Gets the estimated ground level. | |
Definition at line 15 of file GroundLevelEstimator.h.
| GroundLevelEstimator::GroundLevelEstimator | ( | ) |
Constructs a GroundLevelEstimator.
Definition at line 4 of file GroundLevelEstimator.cpp.
| float GroundLevelEstimator::getEGL | ( | ) | const |
Gets the estimated ground level.
Definition at line 36 of file GroundLevelEstimator.cpp.
| void GroundLevelEstimator::launchDetected | ( | ) |
Signals that launch has been detected.
Stops recording ground level measurements and freezes the EGL. Should be called once when launch is confirmed.
Definition at line 30 of file GroundLevelEstimator.cpp.
| float GroundLevelEstimator::update | ( | float | currentASL_m | ) |
Updates the ground level estimate or converts ASL to AGL.
Before launch: Records altitude samples to estimate ground level. After launch: Converts the provided ASL altitude to AGL. *
| currentASL_m | Current altitude above sea level in meters. |
Definition at line 9 of file GroundLevelEstimator.cpp.