diff options
author | Willem Ferguson <willemferguson@zoology.up.ac.za> | 2014-06-03 19:21:41 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-03 17:05:25 -0700 |
commit | eaf6d564874ac838dc4f3cca7a781034ae60ef7f (patch) | |
tree | d214c58bdc33f6dbd058afe715de357dd14d4114 /profile.c | |
parent | 1fec6453a2b7b6dcd34901a4e92dd11aae38879c (diff) | |
download | subsurface-eaf6d564874ac838dc4f3cca7a781034ae60ef7f.tar.gz |
CCR code: Change to sample structure
1) All the variables in the sample structures are strongly typed
2) Two additional types were declared in units.h:
o2pressure_t
bearing_t
3) The following variables were added:
diluentpressure
o2setpoint
o2sensor[3]
4) Changes to a number of files were made to chanf
sample->po2 to sample->po2.mbar
bearing to bearring.degrees
Signed-off-by: Willem Ferguson <willemferguson@zoology.up.ac.za>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
-rw-r--r-- | profile.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -834,7 +834,7 @@ struct plot_data *populate_plot_entries(struct dive *dive, struct divecomputer * pi->has_ndl |= sample->ndl.seconds; entry->in_deco = sample->in_deco; entry->cns = sample->cns; - entry->po2 = sample->po2 / 1000.0; + entry->po2 = sample->po2.mbar / 1000.0; /* FIXME! sensor index -> cylinder index translation! */ entry->cylinderindex = sample->sensor; SENSOR_PRESSURE(entry) = sample->cylinderpressure.mbar; @@ -843,7 +843,7 @@ struct plot_data *populate_plot_entries(struct dive *dive, struct divecomputer * else entry->temperature = lasttemp; entry->heartbeat = sample->heartbeat; - entry->bearing = sample->bearing; + entry->bearing = sample->bearing.degrees; /* skip events that happened at this time */ while (ev && ev->time.seconds == time) |