Rename distance_sensor.covariance to variance

This commit is contained in:
Oleg Kalachev
2019-02-22 18:31:27 +00:00
committed by Nuno Marques
parent 8ba7569852
commit fbc8d01a7e
22 changed files with 25 additions and 25 deletions
@@ -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