#include <FreeIMU.h>
Constructor & Destructor Documentation
Member Function Documentation
void FreeIMU::getEuler |
( |
float * |
angles | ) |
|
Returns the Euler angles in degrees defined with the Aerospace sequence. See Sebastian O.H. Madwick report "An efficient orientation filter for
inertial and intertial/magnetic sensor arrays" Chapter 2 Quaternion representation
- Parameters
-
angles | three floats array which will be populated by the Euler angles in degrees |
void FreeIMU::getEulerRad |
( |
float * |
angles | ) |
|
Returns the Euler angles in radians defined with the Aerospace sequence. See Sebastian O.H. Madwick report "An efficient orientation filter for
inertial and intertial/magnetic sensor arrays" Chapter 2 Quaternion representation
- Parameters
-
angles | three floats array which will be populated by the Euler angles in radians |
void FreeIMU::getQ |
( |
float * |
q | ) |
|
Populates array q with a quaternion representing the IMU orientation with respect to the Earth
- Parameters
-
q | the quaternion to populate using the q = [ ] |
void FreeIMU::getRawValues |
( |
int * |
raw_values | ) |
|
void FreeIMU::getValues |
( |
float * |
values | ) |
|
void FreeIMU::getYawPitchRoll |
( |
float * |
ypr | ) |
|
Returns the yaw pitch and roll angles, respectively defined as the angles in degrees between the Earth North and the IMU X axis (yaw), the Earth ground plane and the IMU X axis (pitch) and the Earth ground plane and the IMU Y axis.
- Note
- This is not an Euler representation: the rotations aren't consecutive rotations but only angles from Earth and the IMU. For Euler representation Yaw, Pitch and Roll see FreeIMU::getEuler
- Parameters
-
ypr | three floats array which will be populated by Yaw, Pitch and Roll angles in degrees |
void FreeIMU::getYawPitchRollRad |
( |
float * |
ypr | ) |
|
Returns the yaw pitch and roll angles, respectively defined as the angles in radians between the Earth North and the IMU X axis (yaw), the Earth ground plane and the IMU X axis (pitch) and the Earth ground plane and the IMU Y axis.
- Note
- This is not an Euler representation: the rotations aren't consecutive rotations but only angles from Earth and the IMU. For Euler representation Yaw, Pitch and Roll see FreeIMU::getEuler
- Parameters
-
ypr | three floats array which will be populated by Yaw, Pitch and Roll angles in radians |
void FreeIMU::init |
( |
bool |
fastmode | ) |
|
void FreeIMU::init |
( |
int |
acc_addr, |
|
|
int |
gyro_addr, |
|
|
bool |
fastmode |
|
) |
| |
Field Documentation
The documentation for this class was generated from the following files: