Browse Source

lib/wind_estimator: pass q_att as const reference

master
Daniel Agar 3 years ago
parent
commit
2fb82789fe
  1. 2
      src/lib/wind_estimator/WindEstimator.cpp
  2. 2
      src/lib/wind_estimator/WindEstimator.hpp

2
src/lib/wind_estimator/WindEstimator.cpp

@ -40,7 +40,7 @@ @@ -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

2
src/lib/wind_estimator/WindEstimator.hpp

@ -124,7 +124,7 @@ private: @@ -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();
};

Loading…
Cancel
Save