changed the angle the display dims at to 2deg above the horizon
This commit is contained in:
parent
48cdfdf2f8
commit
129ce7f1e5
1 changed files with 3 additions and 2 deletions
|
|
@ -12,6 +12,7 @@
|
|||
#define GPS_UPDATE_FREQUENCY 10 //GPS update frequency per sec
|
||||
#define DEBOUNCE_DELAY 250 //time in ms
|
||||
#define MIDDLE_SCREEN_BRIGHTNESS 5
|
||||
#define SUN_ANGLE_ABOVE_HORIZON 2
|
||||
//#define PROFILE true
|
||||
|
||||
//GPS
|
||||
|
|
@ -89,9 +90,9 @@ bool setStartBrightness() {
|
|||
|
||||
//el = el - 180;
|
||||
|
||||
if (el > SUNRISESET_STD_ALTITUDE) {
|
||||
if (el > SUN_ANGLE_ABOVE_HORIZON) {
|
||||
screenBrightnessCurrent = 15;
|
||||
} else if ((el < SUNRISESET_STD_ALTITUDE) && (el > CIVIL_DAWNDUSK_STD_ALTITUDE)) {
|
||||
} else if ((el < SUN_ANGLE_ABOVE_HORIZON) && (el > CIVIL_DAWNDUSK_STD_ALTITUDE)) {
|
||||
screenBrightnessCurrent = MIDDLE_SCREEN_BRIGHTNESS;
|
||||
} else if (el < CIVIL_DAWNDUSK_STD_ALTITUDE) {
|
||||
screenBrightnessCurrent = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue