summaryrefslogtreecommitdiffstats
path: root/dives/test6.xml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-08 13:48:36 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-08 13:53:57 -0800
commitbad7882ae141efbee3a339046c4a8f5b51ef89c6 (patch)
tree37da181b06581bde28f20a350f193d06f7668253 /dives/test6.xml
parent77f4802ed66a3c2793199805100ece51056cbabf (diff)
downloadsubsurface-bad7882ae141efbee3a339046c4a8f5b51ef89c6.tar.gz
Improve travel logic code for the ascent in the planner
This shouldn't change the the actual stops we do or the travel time how we get there, but it makes the code more logical. From the end depth of the planned dive we have ONE transition to the first stop depth (which may be the surface). And then for every stop we (potentially) have a wait and travel to the next stop. Once we are in the while loop, we know that we are at a stop level, so there is no point to keep checking if we first need to transition to the stop. It does create one additional improvement: if we don't need any stops at all, then we don't transition to the first stop and then from there to the surface. We do it in one step. The overall profile / traveltime remains the same, we just drop one intermediate sample on the way. This also improves a few ugly (and in one case, wrong) debug statements. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dives/test6.xml')
0 files changed, 0 insertions, 0 deletions