for textbook v4.4

Dependencies:   HEPTA_SENSOR mbed HEPTA_EPS HEPTA_CDH

Files at this revision

API Documentation at this revision

Comitter:
HeptaSatTraining2019
Date:
Wed Jul 22 03:21:14 2020 +0000
Parent:
29:4ee48f21ebe7
Commit message:
change the number of loops

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Nov 04 16:17:22 2019 +0000
+++ b/main.cpp	Wed Jul 22 03:21:14 2020 +0000
@@ -17,7 +17,7 @@
     int quality=0,stnum=0,gps_check=0;
     char ns='A',ew='B',aunit='m';
     float time=0.0,latitude=0.0,longitude=0.0,hacu=0.0,altitude=0.0;
-    for(int i=1; i<10; i++) {
+    for(int i=1; i<1000; i++) {
         sensor.gga_sensing(&time, &latitude, &ns, &longitude, &ew, &quality, &stnum, &hacu, &altitude, &aunit, &gps_check);
         if((gps_check==0)|(gps_check==1)) {
             pc.printf("GPGGA,%f,%f,%c,%f,%c,%d,%d,%f,%f,%c\r\n",time,latitude,ns,longitude,ew,quality,stnum,hacu,altitude,aunit);