Mercurial > public > ostc4
changeset 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 (2 months ago) |
parents | 0f2e5a166d40 |
children | 24c08a80a5f7 |
files | Small_CPU/Src/scheduler.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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;