Add time file handling

This commit is contained in:
2022-04-07 17:23:50 +02:00
parent 68992e77dc
commit 796b814b49
8 changed files with 127 additions and 21 deletions

View File

@@ -132,7 +132,11 @@ void GPSHyperionLinuxController::readGpsDataFromGpsd() {
}
// 0: Not seen, 1: No fix, 2: 2D-Fix, 3: 3D-Fix
gpsSet.fixMode.value = gps->fix.mode;
int newFixMode = gps->fix.mode;
if(gpsSet.fixMode.value != newFixMode) {
triggerEvent(GpsHyperion::GPS_FIX_CHANGE, gpsSet.fixMode.value, newFixMode);
}
gpsSet.fixMode.value = newFixMode;
if (gps->fix.mode == 0 or gps->fix.mode == 1) {
if (modeCommanded and maxTimeToReachFix.hasTimedOut()) {
// We are supposed to be on and functioning, but not fix was found