summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Jan Schubert <Jan.Schubert@GMX.li>2013-01-08 20:31:09 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-08 12:04:59 -0800
commitd864f5cdfaf149e46ac6d068e99575b31b2cc885 (patch)
tree5e202f2f1d1e828df6122471d689d708fca292b0 /planner.c
parentfc8b37d86b1409c36140e03becdfd163a68ac69e (diff)
downloadsubsurface-d864f5cdfaf149e46ac6d068e99575b31b2cc885.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r--planner.c6
1 files changed, 5 insertions, 1 deletions
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)