GPS module (GYSFDMAXB) 57600 bps

Dependencies:   Vector3

Dependents:   HAPS_GPS_Test_0001

GYSFDMAXB GPSセンサーGYSFDMAXBのライブラリ 57600 bps

手順 [1] シリアルピンを設定 GYSFDMAXB gps(tx_pin, rx_pin); [2] 零点を設定する(NED座標系における零点) gps.Initialize(); [3] 自動的にデータを受信しては更新していくので、適宜メンバ変数を読み込んで使う

Files at this revision

API Documentation at this revision

Comitter:
cocorlow
Date:
Mon Apr 26 08:18:48 2021 +0000
Parent:
9:8595608c56ca
Commit message:
GPS completed [volatile]

Changed in this revision

GYSFDMAXB.hpp Show annotated file Show diff for this revision Revisions of this file
diff -r 8595608c56ca -r 8f574ff249bd GYSFDMAXB.hpp
--- a/GYSFDMAXB.hpp	Fri Apr 23 17:14:46 2021 +0000
+++ b/GYSFDMAXB.hpp	Mon Apr 26 08:18:48 2021 +0000
@@ -43,32 +43,32 @@
     
 public:
     // GPGGA
-    int Quality;
-    int Satellites;
-    float HDOP;
-    float Elevation;
-    char UnitElevation;
-    float GeoidElevation;
-    char UnitGeoidElevation;
+    volatile int Quality;
+    volatile int Satellites;
+    volatile float HDOP;
+    volatile float Elevation;
+    volatile char UnitElevation;
+    volatile float GeoidElevation;
+    volatile char UnitGeoidElevation;
     
     // GPRMC
-    int Hours;
-    int Minutes;
-    int Seconds;
-    int Milliseconds;
-    char Status;
-    float Latitude;
-    char N_S;
-    float Longitude;
-    char E_W;
-    float Speed;
-    float Direction;
-    int Day;
-    int Month;
-    int Year;
-    float GeomagneticDeclination ;
-    char GeomagneticE_W; 
-    char Mode;
+    volatile int Hours;
+    volatile int Minutes;
+    volatile int Seconds;
+    volatile int Milliseconds;
+    volatile char Status;
+    volatile float Latitude;
+    volatile char N_S;
+    volatile float Longitude;
+    volatile char E_W;
+    volatile float Speed;
+    volatile float Direction;
+    volatile int Day;
+    volatile int Month;
+    volatile int Year;
+    volatile float GeomagneticDeclination ;
+    volatile char GeomagneticE_W; 
+    volatile char Mode;
     
     Vector3 UniversalZeroPosition;
     Vector3 UniversalZeroUnitN;
@@ -87,6 +87,4 @@
     Vector3 Calcurate(Vector3 position);
 };
 
-extern Serial pc;
-
 #endif
\ No newline at end of file