mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 12:53:37 +08:00
Rename distance_sensor.covariance to variance
This commit is contained in:
committed by
Nuno Marques
parent
8ba7569852
commit
fbc8d01a7e
@@ -77,7 +77,7 @@ void BlockLocalPositionEstimator::lidarCorrect()
|
||||
// use parameter covariance unless sensor provides reasonable value
|
||||
SquareMatrix<float, n_y_lidar> R;
|
||||
R.setZero();
|
||||
float cov = _sub_lidar->get().covariance;
|
||||
float cov = _sub_lidar->get().variance;
|
||||
|
||||
if (cov < 1.0e-3f) {
|
||||
R(0, 0) = _lidar_z_stddev.get() * _lidar_z_stddev.get();
|
||||
|
||||
@@ -86,7 +86,7 @@ void BlockLocalPositionEstimator::sonarCorrect()
|
||||
&& !(_sensorTimeout & SENSOR_LIDAR)) { return; }
|
||||
|
||||
// calculate covariance
|
||||
float cov = _sub_sonar->get().covariance;
|
||||
float cov = _sub_sonar->get().variance;
|
||||
|
||||
if (cov < 1.0e-3f) {
|
||||
// use sensor value if reasoanble
|
||||
|
||||
Reference in New Issue
Block a user