AP_AHRS: use the right DCM matrix when EKF not enabled

This commit is contained in:
Andrew Tridgell 2014-01-04 15:21:24 +11:00
parent 86afd13f12
commit ada7d4fb98

View File

@ -33,7 +33,7 @@ const Vector3f AP_AHRS_NavEKF::get_gyro(void) const
const Matrix3f &AP_AHRS_NavEKF::get_dcm_matrix(void) const
{
if (!ekf_started) {
if (!using_EKF()) {
return AP_AHRS_DCM::get_dcm_matrix();
}
return _dcm_matrix;