diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-01-09 16:01:15 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-01-09 16:01:15 -0800 |
commit | c0ce218df494a527111ce9180aef84ea0d34e333 (patch) | |
tree | f798e658d8049da2287fd25ad925339bfa21c267 /profile.c | |
parent | fbea5e31ca27007dbfeb1beac3d8947a4ef64306 (diff) | |
download | subsurface-c0ce218df494a527111ce9180aef84ea0d34e333.tar.gz |
Add support to planner to use additional gases during the ascent
This change ended up being quite a bit bigger than expected as it
uncovered a number of bugs in the existing code.
The planner now handles gas changes correctly by creating (and later
parsing) events in the simulated divecomputer. At the end of the dive
specified in the input form the algorithm starts with the deepest
interesting depth: either the first stop below our ceiling or the deepest
depth at which we can change gases. It then traverses all the stop and all
the gas change depth and at each stage ensures that we are allowed to
ascend further before going on.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
0 files changed, 0 insertions, 0 deletions