diff options
author | Anton Lundin <glance@acc.umu.se> | 2013-05-02 20:35:21 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-03 11:43:50 -0700 |
commit | 935af9e8af58a58e3ae61731d1de452d67e82a49 (patch) | |
tree | fa76233755784634e740924295bf1ca8f5cbad55 /planner.c | |
parent | 587856d786c78dee13074e9774cb37cca2694a47 (diff) | |
download | subsurface-935af9e8af58a58e3ae61731d1de452d67e82a49.tar.gz |
planning: Add option to have last stop at 6m/20ft
When diving in areas where there are risk of boats passing above you,
its common practise to do the last stop at 6m to better stay out of
harms way. When doing o2-deco, it doesn't matter for the deco time if
you are doing all the time at 6m, due to that you don't have any inert
gas in your breathing gas.
This code is a reintroduction of 0b8462bd lost somehow between
a70a8898..8fae0031
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r-- | planner.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -47,6 +47,14 @@ void dump_plan(struct diveplan *diveplan) } #endif +void set_last_stop(gboolean last_stop_6m) +{ + if (last_stop_6m == TRUE) + decostoplevels[1] = 6000; + else + decostoplevels[1] = 3000; +} + void get_gas_from_events(struct divecomputer *dc, int time, int *o2, int *he) { struct event *event = dc->events; |