#include <IMU.h>
Inherited by AP_IMU_Oilpan, and AP_IMU_Shim.
List of all members.
Detailed Description
Definition at line 13 of file IMU.h.
Member Enumeration Documentation
- Enumerator:
-
Definition at line 20 of file IMU.h.
Constructor & Destructor Documentation
Constructor.
Definition at line 18 of file IMU.h.
Member Function Documentation
Vector3f IMU::get_accel |
( |
void |
|
) |
[inline] |
Fetch the current accelerometer values
- Returns:
- vector of current accelerations in m/s/s
Definition at line 75 of file IMU.h.
Vector3f IMU::get_gyro |
( |
void |
|
) |
[inline] |
Fetch the current gyro values
- Returns:
- vector of rotational rates in radians/sec
Definition at line 69 of file IMU.h.
virtual void IMU::init |
( |
Start_style |
style |
) |
[pure virtual] |
Perform startup initialisation.
Called to initialise the state of the IMU.
For COLD_START, implementations using real sensors can assume that the airframe is stationary and nominally oriented.
For WARM_START, no assumptions should be made about the orientation or motion of the airframe. Calibration should be as for the previous COLD_START call.
- Parameters:
-
| style | The initialisation startup style. |
Implemented in AP_IMU_Oilpan, and AP_IMU_Shim.
virtual void IMU::init_accel |
( |
Start_style |
style |
) |
[pure virtual] |
Perform startup initialisation for just the accelerometers.
- Note:
- This should not be called unless init has previously been called, as init may perform other work.
- Parameters:
-
| style | The initialisation startup style. |
Implemented in AP_IMU_Oilpan, and AP_IMU_Shim.
virtual void IMU::init_gyro |
( |
Start_style |
style |
) |
[pure virtual] |
Perform cold-start initialisation for just the gyros.
- Note:
- This should not be called unless init has previously been called, as init may perform other work
- Parameters:
-
| style | The initialisation startup style. |
Implemented in AP_IMU_Oilpan, and AP_IMU_Shim.
void IMU::load_accel_eeprom |
( |
void |
|
) |
[inline] |
XXX backwards compat hack.
Definition at line 86 of file IMU.h.
void IMU::load_gyro_eeprom |
( |
void |
|
) |
[inline] |
XXX backwards compat hack.
Definition at line 85 of file IMU.h.
virtual bool IMU::update |
( |
void |
|
) |
[pure virtual] |
Give the IMU some cycles to perform/fetch an update from its sensors.
- Returns:
- True if some state was updated.
Implemented in AP_IMU_Oilpan, and AP_IMU_Shim.
Member Data Documentation
Most recent accelerometer reading obtained by update.
Definition at line 90 of file IMU.h.
Most recent gyro reading obtained by update.
Definition at line 93 of file IMU.h.
A count of bad sensor readings
- Todo:
- This should be renamed, as there's no guarantee that sensors are using ADCs, etc.
Definition at line 82 of file IMU.h.
The documentation for this class was generated from the following file: