|
|
|
@ -930,19 +930,6 @@ void SoloGimbalEKF::fixCovariance()
@@ -930,19 +930,6 @@ void SoloGimbalEKF::fixCovariance()
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// return data for debugging EKF
|
|
|
|
|
void SoloGimbalEKF::getDebug(float &tilt, Vector3f &velocity, Vector3f &euler, Vector3f &gyroBias) const |
|
|
|
|
{ |
|
|
|
|
tilt = TiltCorrection; |
|
|
|
|
velocity = state.velocity; |
|
|
|
|
state.quat.to_euler(euler.x, euler.y, euler.z); |
|
|
|
|
if (dtIMU < 1.0e-6f) { |
|
|
|
|
gyroBias.zero(); |
|
|
|
|
} else { |
|
|
|
|
gyroBias = state.delAngBias / dtIMU; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// get gyro bias data
|
|
|
|
|
void SoloGimbalEKF::getGyroBias(Vector3f &gyroBias) const |
|
|
|
|
{ |
|
|
|
|