Allow GPS hosts to be closer together

I'm not quite sure why I typed a 5 here. There we go.
This commit is contained in:
Jonathan Coates 2023-04-05 21:59:20 +01:00
parent 1f3815039f
commit ccd7f6326a
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ function locate(_nTimeout, _bDebug)
-- previous position, replace that instead of inserting.
local insIndex = math.min(3, #tFixes + 1)
for i, older in pairs(tFixes) do
if (older.vPosition - tFix.vPosition):length() < 5 then
if (older.vPosition - tFix.vPosition):length() < 1 then
insIndex = i
break
end