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
Diff: HeptaCamera_GPS.cpp
- Revision:
- 27:bf29ef2b3c76
- Parent:
- 26:8b176f7cd272
--- 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;