Plane: add protection against bad GPS positions
I had a good plane mission going and all of a sudden the plane began roller coastering. I got it down safely, checked the logs, and found that Hdrop value had gone from 1.78 to 3.18 and I satellite count from 8 to 7. Anything you can do to help in this situation?
GPSGlitch protection has just been developed and is being tested on ArduCopter in the AC3.1 release. If it works well Tridge may want to put it into ArduPlane as well. The code was specifically designed to be compatible with Plane, Rover and Copter.
I see a min GPS count parameter. In the interim, if I upped it to 8, then what does the plane do if satellite count drops below? use excelerometer to fly straight and level until count goes back up?
I think the AHRS_GPS_MINSATS parameter is only used to decide whether to use the GPS velocity numbers for centrifugal force correction on the attitude. It won't help with GPS glitches and I don't think that increasing it will help at all with the problem you're facing.
To the best of my knowledge this is handled about as well as it can be, but the EKF can reject inconsistent GPS data, and is aware of the estimated accuracies of the data. At least I'm flying GPS altitude and have had some significant GPS upsets in the past with plane and haven't had it develop into a unstable situation, so I'm closing this for now. Feel free to reopen it if someone disagrees.