Skip to content
Snippets Groups Projects
Commit 97795114 authored by priseborough's avatar priseborough Committed by Randy Mackay
Browse files

AP_NavEKF2: Fix bug in median filter code

parent d0ba259d
No related branches found
No related tags found
No related merge requests found
......@@ -60,8 +60,8 @@ void NavEKF2_core::readRangeFinder(void)
minIndex = 1;
maxIndex = 0;
} else {
maxIndex = 0;
minIndex = 1;
minIndex = 0;
maxIndex = 1;
}
if (storedRngMeas[sensorIndex][2] > storedRngMeas[sensorIndex][maxIndex]) {
midIndex = maxIndex;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment