From 43386a8eeadf49c03aeede8a160402196bd76eb4 Mon Sep 17 00:00:00 2001 From: Paul Riseborough Date: Sat, 24 Oct 2020 20:28:29 +1100 Subject: [PATCH] AP_NAvEKF3: Use a const reference --- libraries/AP_NavEKF3/AP_NavEKF3_core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_NavEKF3/AP_NavEKF3_core.cpp b/libraries/AP_NavEKF3/AP_NavEKF3_core.cpp index f7f9353763..0d09294880 100644 --- a/libraries/AP_NavEKF3/AP_NavEKF3_core.cpp +++ b/libraries/AP_NavEKF3/AP_NavEKF3_core.cpp @@ -1085,7 +1085,7 @@ void NavEKF3_core::CovariancePrediction(Vector3f *rotVarVecPtr) // vector defining the variance of the angular alignment uncertainty. Convert he varaince vector // to a matrix and rotate into body frame. Use the exisiting gyro error propagation mechanism to // propagate the body frame angular uncertainty variances. - Vector3f rotVarVec = *rotVarVecPtr; + const Vector3f &rotVarVec = *rotVarVecPtr; Matrix3f R_ef = Matrix3f ( rotVarVec.x, 0.0f, 0.0f, 0.0f, rotVarVec.y, 0.0f,