[CCR PATCH] reorganise po2 calculations

Willem Ferguson willemferguson at zoology.up.ac.za
Mon Oct 13 13:24:36 PDT 2014

CCR patch. Reorganise the oxygen partial pressure calculations.

This patch responds to the side effects that the CCR code has had with
respect to ceilings in OC dives and dive plans. Dive ceilings are now
calculated apparently correctly. The following were performed:
1) remove the oxygen sensor and setpoint fields from the gas_pressures 
2) Re-insert setpoint and oxygen sensor fields in the plot_data structure.
3) Remove the algorithm that reads the o2 sensor data and calculates the 
    value from function fill_pressures() in dive.c and save it as a 
separate function
    calc_ccr_po2() in profile.c.
4) Activate calc_ccr_po2 from function fill_pressures() in profile.c.
5) Move the relative position of the call to fill_pressures() within the
    function create_polt_info_new() in profile.c.

Signed-off-by: willem ferguson <willemferguson at zoology.up.ac.za>

I have carefully attended to whitespace issues. I hope this is ok.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20141013/91d77696/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-CCR-patch.-Reorganise-the-oxygen-partial-pressure-ca.patch
Type: text/x-diff
Size: 20308 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20141013/91d77696/attachment-0001.patch>

More information about the subsurface mailing list