[CCR PATCH] Perform diluent gas cylinder pressure calculations (3)

Willem Ferguson willemferguson at zoology.up.ac.za
Sat Aug 30 09:09:51 PDT 2014


CCR patch: adapt code for diluent cylinder pressures (3)

     This patch implements the cylinder pressure calculations for diluent
     gas in CCR dive computers. This is the third patch for achieving this.
     The following was performed:

     1) Add two lines to try_to_fill_sample() in parse-xml so that
        diluent cylinder pressures are stored from XML dive log file
        into structures of sample.
     2) Add one line to populate_plot_entries() in profile.c so that
        the diluent cylinder pressures are copied from structures of
        sample to structures of plot_info.
     3) add three constant #defines in profile.h
     4) change populate_pressure_information() in gaspressures.c in
        order to take into account pressure calculations for the
        diluent cylinder, calling subordinate functions in the
        appropriate way.
     5) change create_plot_info_new() in profile.c in order to initiate
        the pressure calculations for the diluent cylinder.
     6) Implement two debugging functions (one in profile.c, another
        in gaspressures.c). These debugging functions are activated
        by means of #defines.

Altogether only about 30 lines of code change, the rest constitutes
comments/descriptions and the 2 debugging functions.

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-CCR-patch-adapt-code-for-diluent-cylinder-pressures-.patch
Type: text/x-diff
Size: 11238 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140830/a557b419/attachment.patch>


More information about the subsurface mailing list