From: Kaj-Michael Lang Date: Sun, 30 Sep 2007 21:30:55 +0000 (+0300) Subject: Move GPS data structure here X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7c29fdd7b11603c9c84e0292d6296f5183713d4;p=mapper Move GPS data structure here --- diff --git a/src/gpsdata.h b/src/gpsdata.h new file mode 100644 index 0000000..6ec9c26 --- /dev/null +++ b/src/gpsdata.h @@ -0,0 +1,38 @@ +#ifndef _GPS_DATA_H +#define _GPS_DATA_H + +#include + +#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