multiplied lat and long by 10000000 to get the correct value
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user