mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 03:23:33 +08:00
ekf2: remove unnecessary const references
This commit is contained in:
@@ -47,11 +47,11 @@
|
||||
|
||||
void Ekf::fuseAirspeed()
|
||||
{
|
||||
const float &vn = _state.vel(0); // Velocity in north direction
|
||||
const float &ve = _state.vel(1); // Velocity in east direction
|
||||
const float &vd = _state.vel(2); // Velocity in downwards direction
|
||||
const float &vwn = _state.wind_vel(0); // Wind speed in north direction
|
||||
const float &vwe = _state.wind_vel(1); // Wind speed in east direction
|
||||
const float vn = _state.vel(0); // Velocity in north direction
|
||||
const float ve = _state.vel(1); // Velocity in east direction
|
||||
const float vd = _state.vel(2); // Velocity in downwards direction
|
||||
const float vwn = _state.wind_vel(0); // Wind speed in north direction
|
||||
const float vwe = _state.wind_vel(1); // Wind speed in east direction
|
||||
|
||||
// Variance for true airspeed measurement - (m/sec)^2
|
||||
const float R_TAS = sq(math::constrain(_params.eas_noise, 0.5f, 5.0f) *
|
||||
|
||||
Reference in New Issue
Block a user