List of all members.
Public Member Functions |
| | Airspeed_analog (Adc &adc, airspeed_analog_conf_t config=airspeed_analog_default_config()) |
| | Constructor.
|
| void | start_calibration (void) |
| | Calibrates the airspeed sensor offset at 0 speed. It will continue calibrating until it is asked to stop.
|
| void | stop_calibration (void) |
| | Stop the calibration procedure and keep the last offset.
|
| bool | update (void) |
| | Updates the values in the airspeed structure.
|
| const float & | get_airspeed () const |
| | Gets the current estimated airspeed.
|
| const float & | get_last_airspeed () const |
| | Gets the previous estimated airspeed.
|
Constructor & Destructor Documentation
Constructor.
- Parameters:
-
| adc | Reference to analog to digital converter |
| config | Configuration |
Member Function Documentation
Gets the current estimated airspeed.
- Returns:
- The current estimated airspeed
Gets the previous estimated airspeed.
- Returns:
- The previous estimated airspeed
Calibrates the airspeed sensor offset at 0 speed. It will continue calibrating until it is asked to stop.
- Parameters:
-
| airspeed_analog | pointer to the structure containing the airspeed sensor's data |
Stop the calibration procedure and keep the last offset.
- Parameters:
-
| airspeed_analog | pointer to the structure containing the airspeed sensor's data |
Updates the values in the airspeed structure.
- Parameters:
-
| airspeed_analog | pointer to the structure containing the airspeed sensor's data |
- Returns:
- The result of the task execution
The documentation for this class was generated from the following files:
- /home/travis/build/lis-epfl/MAVRIC_Library/drivers/airspeed_analog.hpp
- /home/travis/build/lis-epfl/MAVRIC_Library/drivers/airspeed_analog.cpp