void FreeIMU1::getEulerRad(float * angles) { int i; double dAngles[3]; getEulerRad(dAngles); for (i = 0; i < 3; i++) angles[i] = (float)dAngles[i]; }
/** * 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 * * @param angles three floats array which will be populated by the Euler angles in degrees */ void FreeIMU::getEuler(float * angles) { getEulerRad(angles); arr3_rad_to_deg(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 * * @param angles three doubles array which will be populated by the Euler angles in degrees */ void FreeIMU1::getEuler(double * angles) { getEulerRad(angles); arr3_rad_to_deg(angles); }