mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 06:03:34 +08:00
EKF: move small simple getters to header
- return by const reference where possible
This commit is contained in:
@@ -161,11 +161,6 @@ void Ekf::fuseAirspeed()
|
||||
}
|
||||
}
|
||||
|
||||
Vector2f Ekf::getWindVelocity() const
|
||||
{
|
||||
return _state.wind_vel;
|
||||
}
|
||||
|
||||
Vector2f Ekf::getWindVelocityVariance() const
|
||||
{
|
||||
return P.slice<2, 2>(22,22).diag();
|
||||
|
||||
Reference in New Issue
Block a user