From d864f5cdfaf149e46ac6d068e99575b31b2cc885 Mon Sep 17 00:00:00 2001 From: Jan Schubert Date: Tue, 8 Jan 2013 20:31:09 +0100 Subject: Fix deco planning for low oxygen mixes Not sure about the future of the current planner.c as we have new approaches now but as this annoyed me for some days now I just decided to come up with this trivial stuff to make my life easier. More a cosmetic fix than a patch, but actually it fixes a bug one might face planing a dive using low oxygen mixes and where stop levels at just 90m, 60m, 30m and nothing in between will not allow subsurface to finish a deco ceiling which ends before the universe collapses. Allows to plan 20min@130m using a 10/70 now (f.i.). Signed-off-by: Jan Schubert / Jan.Schubert@GMX.li Signed-off-by: Dirk Hohndel --- planner.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/planner.c b/planner.c index 0724c8535..c43453a55 100644 --- a/planner.c +++ b/planner.c @@ -12,7 +12,11 @@ #include "divelist.h" #include "display-gtk.h" -int stoplevels[] = { 0, 3000, 6000, 9000, 12000, 15000, 21000, 30000, 42000, 60000, 90000 }; + +int stoplevels[] = { 0, 3000, 6000, 9000, 12000, 15000, 18000, 21000, 24000, 27000, + 30000, 33000, 36000, 39000, 42000, 45000, 48000, 51000, 54000, 57000, + 60000, 63000, 66000, 69000, 72000, 75000, 78000, 81000, 84000, 87000, + 90000}; #if DEBUG_PLAN void dump_plan(struct diveplan *diveplan) -- cgit v1.2.3-70-g09d2