aboutsummaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2014-05-06 15:28:32 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-08 13:13:49 -0700
commite3ef1b7a1ea58d7f6f912dc00412d7ee954cb5fe (patch)
tree5d766766991600395f4dc28d647503d7fb351f3c /profile.c
parenta422aa29860840d7ac7738b25789501ff9f530e1 (diff)
downloadsubsurface-e3ef1b7a1ea58d7f6f912dc00412d7ee954cb5fe.tar.gz
Planner: show gas for the NEXT segment
For deco stops show the gas of the next segment in the table. In recalculation remove old deco stops earlier. In struct diveplan, the items are "segments" with a beginning, a duration, and a gas. In contrast, the UI of the planner uses "waypoints" which are the boundaries between segments. It is conventional at least for deco stops to display the gas of the _next_ segment in the runtime table (i.e. the gas possibly to be switched to). Furthermore, in addStop, the old deco stops have to be removed earlier as otherwise a new waypoint later than a previous generated gas switch inherits the gas of the old switch. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
0 files changed, 0 insertions, 0 deletions