mirror of https://github.com/ArduPilot/ardupilot
AP_NavEKF3: fix vertical flyaways when rangefinder stops providing data
This commit is contained in:
parent
2b02c84ae4
commit
8615b18c26
|
@ -48,6 +48,8 @@ void NavEKF3_core::readRangeFinder(void)
|
|||
}
|
||||
storedRngMeasTime_ms[sensorIndex][rngMeasIndex[sensorIndex]] = imuSampleTime_ms - 25;
|
||||
storedRngMeas[sensorIndex][rngMeasIndex[sensorIndex]] = sensor->distance_cm() * 0.01f;
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
|
||||
// check for three fresh samples
|
||||
|
|
Loading…
Reference in New Issue