lib/wind_estimator: pass q_att as const reference

This commit is contained in:
Daniel Agar
2022-01-17 10:45:34 -05:00
parent 4cbee44220
commit 2fb82789fe
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -40,7 +40,7 @@
bool
WindEstimator::initialise(const matrix::Vector3f &velI, const matrix::Vector2f &velIvar, const float tas_meas,
const matrix::Quatf q_att)
const matrix::Quatf &q_att)
{
// do no initialise if ground velocity is low
// this should prevent the filter from initialising on the ground
+1 -1
View File
@@ -124,7 +124,7 @@ private:
// initialise state and state covariance matrix
bool initialise(const matrix::Vector3f &velI, const matrix::Vector2f &velIvar, const float tas_meas,
const matrix::Quatf q_att);
const matrix::Quatf &q_att);
void run_sanity_checks();
};