gps

Dependencies:   mbed gps_event_vitesse

Files at this revision

API Documentation at this revision

Comitter:
schnf30
Date:
Thu Apr 08 14:51:42 2021 +0000
Parent:
2:64eaefb1790e
Commit message:
GPS

Changed in this revision

gps_event_vitesse.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 64eaefb1790e -r 0f5d6648ce42 gps_event_vitesse.lib
--- a/gps_event_vitesse.lib	Sat May 14 11:47:24 2016 +0000
+++ b/gps_event_vitesse.lib	Thu Apr 08 14:51:42 2021 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/users/schnf30/code/gps_event_vitesse/#5a0931e8b5c9
+https://developer.mbed.org/users/schnf30/code/gps_event_vitesse/#5f56cbc9ff62
diff -r 64eaefb1790e -r 0f5d6648ce42 main.cpp
--- a/main.cpp	Sat May 14 11:47:24 2016 +0000
+++ b/main.cpp	Thu Apr 08 14:51:42 2021 +0000
@@ -27,7 +27,7 @@
 
             if (gps.lock()) {
 #ifdef bluetooth
-                blue.printf("Gps Loocked,%d,%06.0f,%d,%f,%c,%f,%c,%.2f,$\r\n",gps.nbsattelite(),gps.time(),gps.lock(),gps.latitude(),gps.ns(),gps.longitude(),gps.ew(),gps.vitesse());
+                blue.printf("Gps Loocked,%d,%06.0f,%d,%f,%c,%f,%c,%.0f,%.0f,$\r\n",gps.nbsattelite(),gps.time(),gps.lock(),gps.latitude(),gps.ns(),gps.longitude(),gps.ew(),gps.vitesse(),gps.vitesse_1mn());
 #else
                 pc.printf("Gps verouille, %f, %f, %c ,%f ,%c ,%d\r\n",gps.time(),gps.latitude(),gps.ns(),gps.longitude(),gps.ew(),gps.nbsattelite());
                 if (gps.vitesse_ok()) pc.printf("Vitesse %fkm/h",gps.vitesse());
@@ -36,7 +36,7 @@
 
             else {
 #ifdef bluetooth
-                blue.printf("Gps UnLoocked,%d,%06.0f,%d,%f,%c,%f,%c,%s,$\r\n",gps.nbsattelite(),gps.time(),gps.lock(),gps.latitude(),gps.ns(),gps.longitude(),gps.ew(),"--.---");
+                blue.printf("Gps UnLoocked,%d,%06.0f,%d,%f,%c,%f,%c,%s,%s,$\r\n",gps.nbsattelite(),gps.time(),gps.lock(),gps.latitude(),gps.ns(),gps.longitude(),gps.ew(),"--","--");
 #else
                 pc.printf("Gps non verouille, %d sattelite(s) : %f, %f, %c ,%f ,%c\r\n",gps.nbsattelite(),gps.time(),gps.latitude(),gps.ns(),gps.longitude(),gps.ew());
 #endif