summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-23 18:04:35 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-23 20:32:32 -0700
commit596095389ba703341839e21cbbe1b438a50622d2 (patch)
tree04992d72b1d418915b9799f3de2bbc2071525cff /dive.h
parent4a184a60fcf9871c00f8130f03c1595c4003537e (diff)
downloadsubsurface-596095389ba703341839e21cbbe1b438a50622d2.tar.gz
Start hooking in the deco calculations
I expanded the DiveHandler to include the actual time / depth of each node on the graph - this way things will stay consistent if we need to rescale the graph. One thing that this makes obvious is that the whole design for the planner so far assumes metric data. We need to make sure this works well with feet instead of meters as well (and that it uses the information in the units settings). With this change we actually create a dive based on the plan input and add the deco stops (if needed) to it - but we don't do anything with the results of those calculations, yet. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/dive.h b/dive.h
index 39943d6c6..9dc5a3631 100644
--- a/dive.h
+++ b/dive.h
@@ -721,6 +721,8 @@ void add_depth_to_nth_dp(struct diveplan *diveplan, int idx, int depth);
void add_gas_to_nth_dp(struct diveplan *diveplan, int idx, int o2, int he);
void free_dps(struct divedatapoint *dp);
void get_gas_string(int o2, int he, char *buf, int len);
+struct divedatapoint *create_dp(int time_incr, int depth, int o2, int he, int po2);
+void dump_plan(struct diveplan *diveplan);
struct event *get_next_event(struct event *event, char *name);