We’ll need some info from @williangalvani about the requirements here, because I haven’t looked into this part of the firmware before.
From some initial searching, it seems that
-
AP_NavEKF3_VehicleStatus.cppis where the GPS “goodness” checks are defined, where-
frontend->_gpsCheckScalercomes from theEK3_CHECK_SCALEparameter -
frontend->_gpsCheckcomes from theEK3_GPS_CHECKparameter
-
-
AHRS_GPS_MINSATSmay also be relevant, although from the code it seems like ArduSub might currently just use (hardcoded)6(but maybe it’s used somewhere else in the EKF/AHRS code - I’m not sure)