MAV'RIC
|
Abstract class for accelerometers. More...
#include <accelerometer.hpp>
Public Member Functions | |
virtual bool | init (void)=0 |
Initialise the sensor. | |
virtual bool | update (void)=0 |
Main update function Reads new values from sensor. | |
virtual const float & | last_update_us (void) const =0 |
Get last update time in microseconds. | |
virtual const std::array < float, 3 > & | acc (void) const =0 |
Get X, Y and Z components of acceleration. | |
virtual const float & | acc_X (void) const =0 |
Get X component of acceleration. | |
virtual const float & | acc_Y (void) const =0 |
Get Y component of acceleration. | |
virtual const float & | acc_Z (void) const =0 |
Get Z component of acceleration. | |
virtual const float & | temperature (void) const =0 |
Get sensor temperature. |
Abstract class for accelerometers.
virtual const std::array<float, 3>& Accelerometer::acc | ( | void | ) | const [pure 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
Implemented in Mpu_9250, Lsm330dlc, Mpu_6050, and Accelerometer_sim.
virtual const float& Accelerometer::acc_X | ( | void | ) | const [pure 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
Implemented in Mpu_9250, Lsm330dlc, Mpu_6050, and Accelerometer_sim.
virtual const float& Accelerometer::acc_Y | ( | void | ) | const [pure 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
Implemented in Mpu_9250, Lsm330dlc, Mpu_6050, and Accelerometer_sim.
virtual const float& Accelerometer::acc_Z | ( | void | ) | const [pure 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
Implemented in Mpu_9250, Lsm330dlc, Mpu_6050, and Accelerometer_sim.
virtual bool Accelerometer::init | ( | void | ) | [pure virtual] |
Initialise the sensor.
Implemented in Mpu_9250, Lsm330dlc, Mpu_6050, and Accelerometer_sim.
virtual const float& Accelerometer::last_update_us | ( | void | ) | const [pure virtual] |
Get last update time in microseconds.
Implemented in Mpu_9250, Lsm330dlc, Mpu_6050, and Accelerometer_sim.
virtual const float& Accelerometer::temperature | ( | void | ) | const [pure virtual] |
Get sensor temperature.
Implemented in Mpu_9250, Lsm330dlc, Mpu_6050, and Accelerometer_sim.
virtual bool Accelerometer::update | ( | void | ) | [pure virtual] |
Main update function Reads new values from sensor.
Implemented in Accelerometer_sim, Mpu_9250_acc, Lsm330dlc_acc, and Mpu_6050_acc.