mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 02:53:34 +08:00
ekf2: split yaw estimator state getter into several functions
This commit is contained in:
@@ -533,17 +533,6 @@ Matrix3f EKFGSF_yaw::ahrsPredictRotMat(const Matrix3f &R, const Vector3f &g)
|
||||
return ret;
|
||||
}
|
||||
|
||||
bool EKFGSF_yaw::getYawData(float *yaw, float *yaw_variance) const
|
||||
{
|
||||
if (_ekf_gsf_vel_fuse_started) {
|
||||
*yaw = _gsf_yaw;
|
||||
*yaw_variance = _gsf_yaw_variance;
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void EKFGSF_yaw::setVelocity(const Vector2f &velocity, float accuracy)
|
||||
{
|
||||
_vel_NE = velocity;
|
||||
|
||||
Reference in New Issue
Block a user