Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of dgps by
Diff: handle/handleGPS.cpp
- Revision:
- 34:c0b13ce5408c
- Parent:
- 32:9cb7bc3fc9e0
- Child:
- 37:417d6403a708
diff -r 9cb7bc3fc9e0 -r c0b13ce5408c handle/handleGPS.cpp --- a/handle/handleGPS.cpp Wed Apr 23 01:43:17 2014 +0000 +++ b/handle/handleGPS.cpp Wed Apr 23 01:53:45 2014 +0000 @@ -29,9 +29,9 @@ USB::getSerial().printf("Adding Waypoint: %f, %f\r\n",points[i].lat,points[i].lon); DH::Locs().add(LHType_targ,DataLocation(points[i].lat,points[i].lon,6.0f)); } - USB::getSerial().printf("Waypoints size: %d\r\n",DH::Locs().getI(LHType_locs,LHIType_size)); - for(int i=0;i<DH::Locs().getI(LHType_locs,LHIType_size);i++){ - DataLocation thisData=DH::Locs().getC(LHType_locs,i); + USB::getSerial().printf("Waypoints size: %d\r\n",DH::Locs().getI(LHType_targ,LHIType_size)); + for(int i=0;i<DH::Locs().getI(LHType_targ,LHIType_size);i++){ + DataLocation thisData=DH::Locs().getC(LHType_targ,i); USB::getSerial().printf("Waypoint %d: %f,%f\r\n",i,thisData.getLat(),thisData.getLon()); } DH::Locs().inc(LHType_targ,0,true);