gpsd/gpsd-apistatus.patch
Miroslav Lichvar e4ae38aac2 update to 3.24
2022-05-04 16:36:39 +02:00

17 lines
581 B
Diff

diff --git a/include/gps.h b/include/gps.h
index 55b9aa621..e5935304d 100644
--- a/include/gps.h
+++ b/include/gps.h
@@ -173,6 +173,11 @@ struct gps_fix_t {
* PPS is the encrypted military P(Y)-code */
#define STATUS_PPS_FIX 9
+// Old status names for compatibility
+#define STATUS_NO_FIX STATUS_UNK
+#define STATUS_FIX STATUS_GPS
+#define STATUS_DGPS_FIX STATUS_DGPS
+
double ept; // Expected time uncertainty, seconds
double latitude; // Latitude in degrees (valid if mode >= 2)
double epy; // Latitude position uncertainty, meters