AP_NavEKF2: mark getEulerAngles as const
This commit is contained in:
parent
659ab06d3b
commit
5b7d5a9757
@ -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) {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user