From 129ce7f1e5c26910bb50a2e510addca1fa759f18 Mon Sep 17 00:00:00 2001 From: Seth Date: Fri, 22 Nov 2024 18:06:53 +1300 Subject: [PATCH] changed the angle the display dims at to 2deg above the horizon --- GPSSpeedMultiCore.ino | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/GPSSpeedMultiCore.ino b/GPSSpeedMultiCore.ino index fae61cc..a9aeca0 100644 --- a/GPSSpeedMultiCore.ino +++ b/GPSSpeedMultiCore.ino @@ -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;