[PATCH] Fix deco planning for low oxygen mixes

Jan Schubert Jan.Schubert at GMX.li
Tue Jan 8 11:31:09 PST 2013


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 at 130m using a 10/70 now (f.i.).

Signed-off-by: Jan Schubert / Jan.Schubert at GMX.li
----

diff --git a/planner.c b/planner.c
index 0724c85..144b71d 100644
--- a/planner.c
+++ b/planner.c
@@ -12,7 +12,7 @@
 #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)



More information about the subsurface mailing list