AP_NavEKF: remove unnecessary memcopy

This commit is contained in:
Paul Riseborough 2020-04-25 10:25:29 +10:00 committed by Peter Barker
parent 4a743a3827
commit 709a42cb7f
2 changed files with 3 additions and 3 deletions

View File

@ -134,7 +134,7 @@ void EKFGSF_yaw::update(const Vector3f &delAng,
} }
} }
void EKFGSF_yaw::fuseVelData(Vector2f vel, float velAcc) void EKFGSF_yaw::fuseVelData(const Vector2f &vel, const float velAcc)
{ {
// convert reported accuracy to a variance, but limit lower value to protect algorithm stability // convert reported accuracy to a variance, but limit lower value to protect algorithm stability
const float velObsVar = sq(fmaxf(velAcc, 0.5f)); const float velObsVar = sq(fmaxf(velAcc, 0.5f));

View File

@ -24,8 +24,8 @@ public:
// Fuse NE velocty mesurements and update the EKF's and GSF state and covariance estimates // Fuse NE velocty mesurements and update the EKF's and GSF state and covariance estimates
// Should be called after update(...) whenever new velocity data is available // Should be called after update(...) whenever new velocity data is available
void fuseVelData(Vector2f vel, // NE velocity measurement (m/s) void fuseVelData(const Vector2f &vel, // NE velocity measurement (m/s)
float velAcc); // 1-sigma accuracy of velocity measurement (m/s) const float velAcc); // 1-sigma accuracy of velocity measurement (m/s)
// get solution data for logging // get solution data for logging
// return false if yaw estimation is inactive // return false if yaw estimation is inactive