diff --git a/libraries/AP_Quaternion/AP_Quaternion.h b/libraries/AP_Quaternion/AP_Quaternion.h index 20028f1efe..4d8b061765 100644 --- a/libraries/AP_Quaternion/AP_Quaternion.h +++ b/libraries/AP_Quaternion/AP_Quaternion.h @@ -75,7 +75,7 @@ public: float get_error_yaw(void); Matrix3f get_dcm_matrix(void) { Matrix3f ret; - quaternion_to_rotation_matrix(q, ret); + q.rotation_matrix(ret); return ret; }