summaryrefslogtreecommitdiffstats
path: root/profile.h
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2014-11-18 10:30:24 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-18 13:25:17 +0000
commit9561fa3f3ecd48be72cc6f4c325543031048218a (patch)
tree384a61db37e667e89f4104c65e82ff6f66c0da41 /profile.h
parent46acb24a865ba2029e15ad53066b28854b78074d (diff)
downloadsubsurface-9561fa3f3ecd48be72cc6f4c325543031048218a.tar.gz
Cleaning up pressures
Added comment about meaning of o2pressure in struct plot_info. Turned some pressures from double (in bar) to pressure_t (in mbar) [Dirk Hohndel: picked parts of this patch and dropped others] Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.h')
-rw-r--r--profile.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/profile.h b/profile.h
index 196a88126..147e4801e 100644
--- a/profile.h
+++ b/profile.h
@@ -20,11 +20,11 @@ struct plot_data {
unsigned int in_deco : 1;
int cylinderindex;
int sec;
- /* pressure[0] is sensor pressure [when CCR, the pressure of the oxygen cylinder]
- * pressure[1] is interpolated pressure */
+ /* pressure[0] is sensor cylinder pressure [when CCR, the pressure of the diluent cylinder]
+ * pressure[1] is interpolated cylinder pressure */
int pressure[2];
- /* diluentpressure[0] is diluent pressure [CCR]
- * diluentpressure[1] is interpolated diluent pressure [CCR] */
+ /* o2pressure[0] is o2 cylinder pressure [CCR]
+ * o2pressure[1] is interpolated o2 cylinder pressure [CCR] */
int o2cylinderpressure[2];
int temperature;
/* Depth info */
@@ -40,7 +40,8 @@ struct plot_data {
int smoothed;
int sac;
struct gas_pressures pressures;
- double o2pressure, o2sensor[3]; //for rebreathers with up to 3 PO2 sensors
+ pressure_t o2pressure; // for rebreathers, this is consensus measured po2, or setpoint otherwise. 0 for OC.
+ pressure_t o2sensor[3]; //for rebreathers with up to 3 PO2 sensors
double mod, ead, end, eadd;
velocity_t velocity;
int speed;