mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 03:53:34 +08:00
EKF: remove virtual getters from estimator_interface
This commit is contained in:
@@ -161,12 +161,7 @@ void Ekf::fuseAirspeed()
|
||||
}
|
||||
}
|
||||
|
||||
Vector2f Ekf::getWindVelocityVariance() const
|
||||
{
|
||||
return P.slice<2, 2>(22,22).diag();
|
||||
}
|
||||
|
||||
void Ekf::get_true_airspeed(float *tas)
|
||||
void Ekf::get_true_airspeed(float *tas) const
|
||||
{
|
||||
const float tempvar = sqrtf(sq(_state.vel(0) - _state.wind_vel(0)) + sq(_state.vel(1) - _state.wind_vel(1)) + sq(_state.vel(2)));
|
||||
memcpy(tas, &tempvar, sizeof(float));
|
||||
|
||||
Reference in New Issue
Block a user