AP_NavEKF2: mark getEulerAngles as const

This commit is contained in:
Peter Barker 2018-01-06 12:26:00 +11:00 committed by Francisco Ferreira
parent 659ab06d3b
commit 5b7d5a9757
2 changed files with 2 additions and 2 deletions

View File

@ -1023,7 +1023,7 @@ bool NavEKF2::getHAGL(float &HAGL) const
}
// return the Euler roll, pitch and yaw angle in radians for the specified instance
void NavEKF2::getEulerAngles(int8_t instance, Vector3f &eulers)
void NavEKF2::getEulerAngles(int8_t instance, Vector3f &eulers) const
{
if (instance < 0 || instance >= num_cores) instance = primary;
if (core) {

View File

@ -182,7 +182,7 @@ public:
// return the Euler roll, pitch and yaw angle in radians for the specified instance
// An out of range instance (eg -1) returns data for the the primary instance
void getEulerAngles(int8_t instance, Vector3f &eulers);
void getEulerAngles(int8_t instance, Vector3f &eulers) const;
// return the transformation matrix from XYZ (body) to NED axes
void getRotationBodyToNED(Matrix3f &mat) const;