From 34b785471ba560718ceec47764b6ca70c366dec5 Mon Sep 17 00:00:00 2001 From: Seth Date: Mon, 4 Nov 2024 21:10:48 +1300 Subject: [PATCH] multiplied lat and long by 10000000 to get the correct value --- GPSSpeedMultiCore.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPSSpeedMultiCore.ino b/GPSSpeedMultiCore.ino index b5238f8..e166dab 100644 --- a/GPSSpeedMultiCore.ino +++ b/GPSSpeedMultiCore.ino @@ -65,7 +65,7 @@ bool setStartBrightness() { double az, el; setTime(myGPS.getHour(),myGPS.getMinute(),myGPS.getSecond(),myGPS.getDay(),myGPS.getMonth(),myGPS.getYear()); time_t timeUtc=now(); - calcHorizontalCoordinates(timeUtc,myGPS.getLatitude(),myGPS.getLongitude(),az,el); + calcHorizontalCoordinates(timeUtc,(double) myGPS.getLatitude()*10000000,(double) myGPS.getLongitude() * 10000000,az,el); if(el>SUNRISESET_STD_ALTITUDE){ screenBrightnessCurrent=15;