mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 07:43:34 +08:00
Undo hacking
This commit is contained in:
@@ -61,8 +61,7 @@ void AttPosEKF::UpdateStrapdownEquationsNED()
|
|||||||
|
|
||||||
// Apply corrections for earths rotation rate and coning errors
|
// Apply corrections for earths rotation rate and coning errors
|
||||||
// * and + operators have been overloaded
|
// * and + operators have been overloaded
|
||||||
correctedDelAng = dAngIMU;//correctedDelAng - Tnb*earthRateNED*dtIMU + 8.333333333333333e-2f*(prevDelAng % correctedDelAng);
|
correctedDelAng = correctedDelAng - Tnb*earthRateNED*dtIMU + 8.333333333333333e-2f*(prevDelAng % correctedDelAng);
|
||||||
correctedDelAng.z = 0;
|
|
||||||
// Convert the rotation vector to its equivalent quaternion
|
// Convert the rotation vector to its equivalent quaternion
|
||||||
rotationMag = correctedDelAng.length();
|
rotationMag = correctedDelAng.length();
|
||||||
if (rotationMag < 1e-12f)
|
if (rotationMag < 1e-12f)
|
||||||
|
|||||||
Reference in New Issue
Block a user