multiplied lat and long by 10000000 to get the correct value

This commit is contained in:
Seth Samuel 2024-11-04 21:10:48 +13:00
parent 21a9aeeeac
commit 34b785471b

View file

@ -65,7 +65,7 @@ bool setStartBrightness() {
double az, el; double az, el;
setTime(myGPS.getHour(),myGPS.getMinute(),myGPS.getSecond(),myGPS.getDay(),myGPS.getMonth(),myGPS.getYear()); setTime(myGPS.getHour(),myGPS.getMinute(),myGPS.getSecond(),myGPS.getDay(),myGPS.getMonth(),myGPS.getYear());
time_t timeUtc=now(); 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){ if(el>SUNRISESET_STD_ALTITUDE){
screenBrightnessCurrent=15; screenBrightnessCurrent=15;