multiplied lat and long by 10000000 to get the correct value
This commit is contained in:
parent
21a9aeeeac
commit
34b785471b
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue