inav icon indicating copy to clipboard operation
inav copied to clipboard

GPS: Better protection from GPS glitches

Open digitalentity opened this issue 10 years ago • 7 comments

We need to devise protection from GPS jumps (aka glitches) similar to one described in #206.

digitalentity avatar May 13 '16 23:05 digitalentity

I would use a smoother...if (actual pos - previous pos)>5m wait for 10 sec to have it confirmed otherwise skip the measure Il 14/mag/2016 01:23, "Konstantin Sharlaimov" [email protected] ha scritto:

We need to devise protection from GPS jumps (aka glitches) similar to one described in #206 https://github.com/iNavFlight/inav/issues/206.

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/iNavFlight/inav/issues/207

bk79 avatar May 14 '16 04:05 bk79

  • calculate the rate of change / position delta from last known good position to current reading
  • Provide a user-configurable tolerance parameter that sets the 'maximum allowed change in GPS position' in meters per second or something
  • If the delta from the last known good position to the current GPS position is above the threshold, mark it as 'bad' / discard it, and stick with the last known 'good' position value.
  • Lower values for this parameter would prevent big position jumps due to glitches, but also wouldn't allow for high-speed vehicles (would be good for slow AP quads, bad for fast planes). Higher values would allow for higher speeds but more glitchiness to get through, which is probably ok for planes.
  • perhaps find a way to integrate a 'backup metric,' such as HDOP or sat count, to use when evaluating the position data? Ex., if sat count increases & HDOP improves, perhaps a newer, more precise position reading might appear to be a 'glitch' when compared to the older, less precise data if there's a large difference between the two.
  • implement more aggressive GPS averaging, and make the aggressiveness user-configurable

thoughts? I was just brainstorming here...

csurf avatar Jul 20 '16 05:07 csurf

Can't we just compare the acceleration from ACC with the change of GPS position? So we check the GPS Update with the ACC data. For example, the GPS glitches 5m in 1 sec, which mean a acceleration of 5m/s². But the ACC only measures a acceleration of 0m/s². In that case inav should disable PosHold and climb at least 5m, so the quad can't drift into someone standing near to it.

kronosol avatar Jul 23 '16 15:07 kronosol

Or in case of a nearly relase of Inav FC, how about a second GPS module? The GPS with the position which is nearly to the last 5 average positions are true.

kronosol avatar Jul 23 '16 15:07 kronosol

I have some ideas for better glitch detection, but this will have to wait until after 1.2 release.

digitalentity avatar Jul 24 '16 01:07 digitalentity

This issue / pull request has been automatically marked as stale because it has not had any activity in 60 days. The resources of the INAV team are limited, and so we are asking for your help. This issue / pull request will be closed if no further activity occurs within two weeks.

stale[bot] avatar May 13 '18 15:05 stale[bot]

Automatically closing as inactive.

stale[bot] avatar May 27 '18 15:05 stale[bot]