diff --git a/libraries/AP_DCM/AP_DCM.h b/libraries/AP_DCM/AP_DCM.h index ece657cd8b..e9640d7c81 100644 --- a/libraries/AP_DCM/AP_DCM.h +++ b/libraries/AP_DCM/AP_DCM.h @@ -22,9 +22,9 @@ class AP_DCM public: // Constructors AP_DCM(IMU *imu, GPS *&gps, Compass *withCompass = NULL) : - _imu(imu), - _gps(gps), _compass(withCompass), + _gps(gps), + _imu(imu), _dcm_matrix(1, 0, 0, 0, 1, 0, 0, 0, 1),