|
MAV'RIC
|
Simulated accelerometers. More...
#include <accelerometer_sim.hpp>


Public Member Functions | |
| Accelerometer_sim (Dynamic_model &dynamic_model) | |
| Constructor. | |
| bool | init (void) |
| Initialise the sensor. | |
| bool | update (void) |
| Main update function Reads new values from sensor. | |
| const float & | last_update_us (void) const |
| Get last update time in microseconds. | |
| const std::array< float, 3 > & | acc (void) const |
| Get X, Y and Z components of acceleration. | |
| const float & | acc_X (void) const |
| Get X component of acceleration. | |
| const float & | acc_Y (void) const |
| Get Y component of acceleration. | |
| const float & | acc_Z (void) const |
| Get Z component of acceleration. | |
| const float & | temperature (void) const |
| Get sensor temperature. | |
Simulated accelerometers.
| Accelerometer_sim::Accelerometer_sim | ( | Dynamic_model & | dynamic_model | ) |
Constructor.
| dynamic_model | Reference to dynamic model |
| const std::array< float, 3 > & Accelerometer_sim::acc | ( | void | ) | const [virtual] |
Get X, Y and Z components of acceleration.
This is raw data, so X, Y and Z components are biased, not scaled, and given in the sensor frame (not in the UAV frame). Use an Imu object to handle bias removal, scaling and axis rotations
Implements Accelerometer.
| const float & Accelerometer_sim::acc_X | ( | void | ) | const [virtual] |
Get X component of acceleration.
This is raw data, so X, Y and Z components are biased, not scaled, and given in the sensor frame (not in the UAV frame). Use an Imu object to handle bias removal, scaling and axis rotations
Implements Accelerometer.
| const float & Accelerometer_sim::acc_Y | ( | void | ) | const [virtual] |
Get Y component of acceleration.
This is raw data, so X, Y and Z components are biased, not scaled, and given in the sensor frame (not in the UAV frame). Use an Imu object to handle bias removal, scaling and axis rotations
Implements Accelerometer.
| const float & Accelerometer_sim::acc_Z | ( | void | ) | const [virtual] |
Get Z component of acceleration.
This is raw data, so X, Y and Z components are biased, not scaled, and given in the sensor frame (not in the UAV frame). Use an Imu object to handle bias removal, scaling and axis rotations
Implements Accelerometer.
| bool Accelerometer_sim::init | ( | void | ) | [virtual] |
| const float & Accelerometer_sim::last_update_us | ( | void | ) | const [virtual] |
Get last update time in microseconds.
Implements Accelerometer.

| const float & Accelerometer_sim::temperature | ( | void | ) | const [virtual] |
| bool Accelerometer_sim::update | ( | void | ) | [virtual] |
Main update function Reads new values from sensor.
Implements Accelerometer.

1.7.6.1