mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 15:43:34 +08:00
Added innovation logging to LPE. (#5124)
This commit is contained in:
@@ -99,12 +99,14 @@ void BlockLocalPositionEstimator::sonarCorrect()
|
||||
C(Y_sonar_z, X_tz) = 1; // measured altitude, negative down dir.
|
||||
|
||||
// covariance matrix
|
||||
Matrix<float, n_y_sonar, n_y_sonar> R;
|
||||
SquareMatrix<float, n_y_sonar> R;
|
||||
R.setZero();
|
||||
R(0, 0) = cov;
|
||||
|
||||
// residual
|
||||
Vector<float, n_y_sonar> r = y - C * _x;
|
||||
_pub_innov.get().hagl_innov = r(0);
|
||||
_pub_innov.get().hagl_innov_var = R(0, 0);
|
||||
|
||||
// residual covariance, (inverse)
|
||||
Matrix<float, n_y_sonar, n_y_sonar> S_I =
|
||||
|
||||
Reference in New Issue
Block a user