MAV'RIC
|
Simulation for barometers. More...
#include <barometer_sim.hpp>
Public Member Functions | |
Barometer_sim (Dynamic_model &dynamic_model) | |
Constructor. | |
bool | init (void) |
Initialise the sensor. | |
bool | update (void) |
Main update function Reads new values from sensor. | |
uint64_t | last_update_us (void) const |
Get the last update time in microseconds. | |
float | pressure (void) const |
Return the pressure (in Pa) | |
float | altitude_gf (void) const |
Get the altitude in meters above sea level. | |
float | altitude_gf_raw (void) const |
Get the altitude in meters above sea level (not filtered) | |
float | vertical_speed_lf (void) const |
Get the vertical speed in meters/second. | |
float | vertical_speed_lf_raw (void) const |
Get the vertical speed in meters/second (not filtered) | |
float | temperature (void) const |
Get sensor temperature. |
Simulation for barometers.
Barometer_sim::Barometer_sim | ( | Dynamic_model & | dynamic_model | ) |
Constructor.
dynamic_model | Reference to dynamic model |
float Barometer_sim::altitude_gf | ( | void | ) | const [virtual] |
Get the altitude in meters above sea level.
Global frame: (>0 means upward)
Implements Barometer.
float Barometer_sim::altitude_gf_raw | ( | void | ) | const [virtual] |
Get the altitude in meters above sea level (not filtered)
Global frame: (>0 means upward)
Implements Barometer.
bool Barometer_sim::init | ( | void | ) | [virtual] |
uint64_t Barometer_sim::last_update_us | ( | void | ) | const [virtual] |
float Barometer_sim::pressure | ( | void | ) | const [virtual] |
float Barometer_sim::temperature | ( | void | ) | const [virtual] |
bool Barometer_sim::update | ( | void | ) | [virtual] |
Main update function Reads new values from sensor.
Implements Barometer.
float Barometer_sim::vertical_speed_lf | ( | void | ) | const [virtual] |
Get the vertical speed in meters/second.
NED frame: (>0 means downward)
Implements Barometer.
float Barometer_sim::vertical_speed_lf_raw | ( | void | ) | const [virtual] |
Get the vertical speed in meters/second (not filtered)
NED frame: (>0 means downward)
Implements Barometer.