From 85ca61b917995f9161d62214bf7070a0a4a6d44d Mon Sep 17 00:00:00 2001 From: Addy Gallareta Date: Mon, 10 Feb 2020 12:24:30 -0800 Subject: [PATCH] comment above --- GPS/GPS.ino | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/GPS/GPS.ino b/GPS/GPS.ino index c64edb8..293cfe9 100644 --- a/GPS/GPS.ino +++ b/GPS/GPS.ino @@ -221,12 +221,14 @@ void do_send(osjob_t* j){ Serial.println(GPS.latitudeDegrees); Serial.println(GPS.longitudeDegrees); Serial.println(GPS.altitude + 0.5); - data = (int)(GPS.latitude_fixed * (GPS.lat == 'N' ? 1 : -1) + 90 * 1E7); // decimal degree format and getting 7 decimals + // decimal degree format and getting 7 decimals + data = (int)(GPS.latitude_fixed * (GPS.lat == 'N' ? 1 : -1) + 90 * 1E7); payload[idx++] = data >> 24; payload[idx++] = data >> 16; payload[idx++] = data >> 8; payload[idx++] = data; - data = (int)(GPS.longitude_fixed * (GPS.lon == 'E' ? 1 : -1) + 180 * 1E7); // decimal degree format and getting 7 decimals + // decimal degree format and getting 7 decimals + data = (int)(GPS.longitude_fixed * (GPS.lon == 'E' ? 1 : -1) + 180 * 1E7); payload[idx++] = data >> 24; payload[idx++] = data >> 16; payload[idx++] = data >> 8;