Mercurial > public > ostc4
diff Small_CPU/Src/scheduler.c @ 904:5736b2641cb0 Evo_2_23
Ascent speed display:
Do not calculate speed if the diver is close to surface.
author | ideenmodellierer |
---|---|
date | Sun, 13 Oct 2024 17:36:32 +0200 |
parents | 2225c467f1e9 |
children | c0553dd70608 |
line wrap: on
line diff
--- a/Small_CPU/Src/scheduler.c Thu Oct 03 20:25:49 2024 +0200 +++ b/Small_CPU/Src/scheduler.c Sun Oct 13 17:36:32 2024 +0200 @@ -1857,7 +1857,7 @@ if(lastPressure_bar >= 0) { localAscentRate = (lastPressure_bar - global.lifeData.pressure_ambient_bar) * (60000.0 / tickPressureDiff) * 10; /* bar * 10 = meter */ - if(fabs(localAscentRate) < 1.0) + if((fabs(localAscentRate) < 1.0) || (global.lifeData.pressure_ambient_bar < START_DIVE_IMMEDIATLY_BAR)) { ascentState = ASCENT_NONE; ascentStableCnt = 0;