mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-29 02:50:35 +08:00
lib/wind_estimator: pass q_att as const reference
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user