summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-15 16:54:59 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-15 17:31:27 -0800
commit189cba7fd2d6d3183af0a1f9ea9fae81890523dd (patch)
treeab0238ebf74fa4ba6b059620f09e03928d73b0f0 /dive.h
parent417391a801e40d1abe5630a2a48e3e1b608d3b76 (diff)
downloadsubsurface-189cba7fd2d6d3183af0a1f9ea9fae81890523dd.tar.gz
Add code to enter SAC rates for dive planning
This just provides the infrastructure to enter the data, nothing is calculated, yet. This adds a new get_thousandths() helper function so we can enter information of the 'mili-' type as decimal values. So things like "14.5 l/min" or "0.75 cuft/min" are parsed correctly and converted into a ml value. In the process of implementing that I also fixed a bug introduced in commit ab7aecf16e96 ("Simplify dive planning code") which broke the get_tenth() function. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/dive.h b/dive.h
index 28ea79926..757860900 100644
--- a/dive.h
+++ b/dive.h
@@ -607,7 +607,9 @@ struct divedatapoint {
struct diveplan {
timestamp_t when;
- int surface_pressure;
+ int surface_pressure; /* mbar */
+ int bottomsac; /* ml/min */
+ int decosac; /* ml/min */
struct divedatapoint *dp;
};