comparison Discovery/Src/data_central.c @ 912:57fc479745b0 Evo_2_23

Ascent speed visualization: Adapted limits for color changes to make sure that 10m/s (used for deco calculations) is still in the green area
author Ideenmodellierer
date Tue, 15 Oct 2024 21:07:07 +0200
parents d4622533271d
children 63c340abd70e
comparison
equal deleted inserted replaced
911:a2523e19f59a 912:57fc479745b0
918 void disableTimer(void) 918 void disableTimer(void)
919 { 919 {
920 stateUsedWrite->timerState = TIMER_STATE_OFF; 920 stateUsedWrite->timerState = TIMER_STATE_OFF;
921 } 921 }
922 922
923 #define SPEED_SLOW (5.0f) 923 #define SPEED_SLOW (5.1f)
924 #define SPEED_MEDIUM (10.0f) 924 #define SPEED_MEDIUM (10.1f)
925 #define SPEED_HIGH (15.0f) 925 #define SPEED_HIGH (15.1f)
926 #define SPEED_HYSTERESE (1.0f) 926 #define SPEED_HYSTERESE (1.0f)
927 927
928 uint8_t drawingColor_from_ascentspeed(float speed) 928 uint8_t drawingColor_from_ascentspeed(float speed)
929 { 929 {
930 static uint8_t lastColor = 0; 930 static uint8_t lastColor = 0;