PLANET-Q AE-GPS Library

Dependents:   IZU2020_AVIONICS IZU2020_AVIONICS

Revision:
0:55b72d6ab099
Child:
1:a1a0ccb98643
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/PQAEGPS.h	Tue Dec 17 09:09:29 2019 +0000
@@ -0,0 +1,42 @@
+#ifndef PQAEGPS_H
+#define PQAEGPS_H
+
+class AEGPS{
+private:
+    Serial *_serial;
+    char rx_buf[256];
+    int index;
+    int flag;
+    int hour;
+    int min;
+    float sec;
+    float lat;
+    char ns;
+    float lon;
+    char ew;
+    int fix;
+    int sat;
+    float hdop;
+    float alt;
+    float geoid;
+    
+public:
+    AEGPS(Serial &gps);
+    
+private:
+    void receive();
+
+public:
+    int get_hour();
+    int get_min();
+    float get_sec();
+    float get_lat();
+    float get_lon();
+    int get_fix();
+    int get_sat();
+    float get_hdop();
+    float get_alt();
+    float get_geoid();
+};
+
+#endif
\ No newline at end of file