AP_NavEKF3: remove unecessary assignements

This commit is contained in:
Pierre Kancir 2021-08-11 10:54:43 +02:00 committed by Randy Mackay
parent d95f503a32
commit 8216905f47

View File

@ -93,12 +93,6 @@ void NavEKF3_core::readRangeFinder(void)
// before takeoff we assume on-ground range value if there is no data
rangeDataNew.time_ms = imuSampleTime_ms;
rangeDataNew.rng = rngOnGnd;
rangeDataNew.time_ms = imuSampleTime_ms;
// don't allow time to go backwards
if (imuSampleTime_ms > rangeDataNew.time_ms) {
rangeDataNew.time_ms = imuSampleTime_ms;
}
// write data to buffer with time stamp to be fused when the fusion time horizon catches up with it
storedRange.push(rangeDataNew);