HeptaCamera&GPS Library
Dependents: Lab9-01_All_transmit Lab9-03_Thermal_chamber Final_Magnetism_measurement_GPS_data_saving LaserCommProtocol_01 ... more
Fork of HeptaCamera_GPS by
Revision 27:bf29ef2b3c76, committed 2019-11-05
- Comitter:
- HEPTA
- Date:
- Tue Nov 05 07:08:17 2019 +0000
- Parent:
- 26:8b176f7cd272
- Commit message:
- Compatible with south latitude and west longitude
Changed in this revision
HeptaCamera_GPS.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/HeptaCamera_GPS.cpp Wed Aug 21 11:33:27 2019 +0000 +++ b/HeptaCamera_GPS.cpp Tue Nov 05 07:08:17 2019 +0000 @@ -770,6 +770,12 @@ *longitude = int(*longitude/100)+(*longitude-int(*longitude/100)*100)/60; *serial_check = 1; } + if(!strcmp(ns,"S")){ + *latitude = -*latitude; + } + if(!strcmp(ns,"W")){ + *longitude = -*longitude; + } } else { printf("No Data"); *serial_check = 2;