]> err.no Git - mapper/commitdiff
Move GPS data structure here
authorKaj-Michael Lang <milang@onion.tal.org>
Sun, 30 Sep 2007 21:30:55 +0000 (00:30 +0300)
committerKaj-Michael Lang <milang@onion.tal.org>
Sun, 30 Sep 2007 21:30:55 +0000 (00:30 +0300)
src/gpsdata.h [new file with mode: 0644]

diff --git a/src/gpsdata.h b/src/gpsdata.h
new file mode 100644 (file)
index 0000000..6ec9c26
--- /dev/null
@@ -0,0 +1,38 @@
+#ifndef _GPS_DATA_H
+#define _GPS_DATA_H
+
+#include <glib.h>
+
+#define GPS_SAT_MAX                    (12)
+
+typedef struct _GpsSatelliteData GpsSatelliteData;
+struct _GpsSatelliteData {
+       guint prn;
+       guint elevation;
+       guint azimuth;
+       guint snr;
+       gboolean fix;
+};
+
+/** GPS Data and Satellite **/
+typedef struct _GpsData GpsData;
+struct _GpsData {
+       guint fix;
+       guint fixquality;
+       gdouble lat;
+       gdouble lon;
+       gfloat speed;
+       gfloat maxspeed;
+       gfloat avgspeed;
+       gfloat heading;
+       gfloat lheading;
+       gfloat hdop;
+       gfloat vdop;
+       gfloat pdop;
+       guint satinview;
+       guint satinuse;
+       guint satforfix[GPS_SAT_MAX];
+       GpsSatelliteData sat[GPS_SAT_MAX];
+};
+
+#endif