Simulated gyroscopes.
More...
#include <gyroscope_sim.hpp>
List of all members.
Public Member Functions |
| Gyroscope_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 > & | gyro (void) const |
| Get X, Y and Z components of angular velocity.
|
const float & | gyro_X (void) const |
| Get X component of angular velocity.
|
const float & | gyro_Y (void) const |
| Get Y component of angular velocity.
|
const float & | gyro_Z (void) const |
| Get Z component of angular velocity.
|
const float & | temperature (void) const |
| Get sensor temperature.
|
Detailed Description
Constructor & Destructor Documentation
Constructor.
- Parameters:
-
dynamic_model | Reference to dynamic model |
Member Function Documentation
Get X, Y and Z components of angular velocity.
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
- Returns:
- Value
Implements Gyroscope.
Get X component of angular velocity.
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
- Returns:
- Value
Implements Gyroscope.
Get Y component of angular velocity.
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
- Returns:
- Value
Implements Gyroscope.
Get Z component of angular velocity.
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
- Returns:
- Value
Implements Gyroscope.
Initialise the sensor.
- Returns:
- Success
Implements Gyroscope.
Get last update time in microseconds.
- Returns:
- Update time
Implements Gyroscope.
Get sensor temperature.
- Returns:
- Value
Implements Gyroscope.
Main update function Reads new values from sensor.
- Returns:
- Success
Implements Gyroscope.
The documentation for this class was generated from the following files:
- /home/travis/build/lis-epfl/MAVRIC_Library/simulation/gyroscope_sim.hpp
- /home/travis/build/lis-epfl/MAVRIC_Library/simulation/gyroscope_sim.cpp