changed the angle the display dims at to 2deg above the horizon

This commit is contained in:
Seth Samuel 2024-11-22 18:06:53 +13:00
parent 48cdfdf2f8
commit 129ce7f1e5

View file

@ -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;