Cmera and GPS labrary

Dependents:   HEPTA_SENSOR HEPTA_SENSOR

Revision:
23:393ac87aa311
Parent:
22:5d29e93859aa
--- a/HeptaCamera_GPS.cpp	Tue Aug 14 10:29:15 2018 +0000
+++ b/HeptaCamera_GPS.cpp	Thu Mar 07 23:23:44 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;