Change the timestep used to calculate tissue pressures and ascents from 3 seconds to 2 seconds. But whats wrong with using 3 seconds?
Deco stops are at 3 m (10') intervals, and our ascent rate is usually 9 m/s (30'/s), or at least multiples of 3 m/s (10'/s). Hence time to ascend from one stop to the next stop is 20 s (or any factor of 60). Using 3 s increments, we round our ascent interval up to 21 s, which leads to messy durations and runtimes. But what about me? I like SI units and whole decimals. Don't worry, 2 s timesteps fit nicely when using 10 m/s ascent rate (18 s between stops). Cheers, Rick
From ef2c2e1e8c5f252c256041d2ef78656540107608 Mon Sep 17 00:00:00 2001 From: Rick Walsh <[email protected]> Date: Sat, 20 Jun 2015 11:01:09 +1000 Subject: [PATCH] Planner - change timestep to 2 seconds Change the timestep used to calculate tissue pressures and ascents from 3 seconds to 2 seconds. But whats wrong with using 3 seconds? Deco stops are at 3 m (10') intervals, and our ascent rate is usually 9 m/s (30'/s), or at least multiples of 3 m/s (10'/s). Hence time to ascend from one stop to the next stop is 20 s (or any factor of 60). Using 3 s increments, we round our ascent interval up to 21 s, which leads to messy durations and runtimes. But what about me? I like SI units and whole decimals. Don't worry, 2 s timesteps fit nicely when using 10 m/s ascent rate (18 s between stops). Signed-off-by: Rick Walsh <[email protected]> --- planner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planner.c b/planner.c index 63f1f63..5e9ab10 100644 --- a/planner.c +++ b/planner.c @@ -14,7 +14,7 @@ #include "gettext.h" #include "libdivecomputer/parser.h" -#define TIMESTEP 3 /* second */ +#define TIMESTEP 2 /* second */ #define DECOTIMESTEP 60 /* seconds. Unit of deco stop times */ int decostoplevels[] = { 0, 3000, 6000, 9000, 12000, 15000, 18000, 21000, 24000, 27000, -- 2.4.3
_______________________________________________ subsurface mailing list [email protected] http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
