Fwd: [CCR PATCH] Allow for diluent cylinder pressure calculation [3 and 4]

Willem Ferguson willemferguson at zoology.up.ac.za
Thu Sep 11 04:09:31 PDT 2014


These are two patches with CCR code updates, discussed on this forum 
during the past 10 days.
They are hereby resubmitted.
The first patch deals with code modification.
The second patch does whitespace cleanup of the first path.

 From 4954cffec322c54f21b122c5c26e42cb1c099c41 Mon Sep 17 00:00:00 2001
From: willem ferguson <willemferguson at zoology.up.ac.za>
Date: Sat, 30 Aug 2014 17:46:47 +0200
Subject: [PATCH] CCR patch: adapt code for diluent cylinder pressures (3 
of 4)

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

1) Add two lines to try_to_fill_sample() in parse-xml.c 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.

Two function calls dealing with oxygen pressure are currently commented out.
They will be activated in the following patch that
attends to CCR oxygen partial pressure calculation.

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

 From 3e9260c09bb5e09946b5edaf2a2c68960fbd5e13 Mon Sep 17 00:00:00 2001
From: willem ferguson <willemferguson at zoology.up.ac.za>
Date: Fri, 5 Sep 2014 18:30:56 +0200
Subject: [PATCH 2/2] Subject: [PATCH] CCR patch: adapt code for diluent
  cylinder pressures (3)
Subject: [PATCH 4/4] Subject: [PATCH] CCR patch: adapt code for diluent
   cylinder pressures (4 of 4)

This is the fourth patch in a series of four, dealing with the
calculation of cylinder pressures of diluent gas in CCR dives.

1) Do whitespace cleanup on CCR PATCH commit
3e9260c09bb5e09946b5edaf2a2c68960fbd5e13
      
Signed-off-by: willem ferguson <willemferguson at zoology.up.ac.za>

Diluent gas calculation is now complete and activated for Poseidon CCR dive logs.
The following two patches will deal with O2 partial pressures.

Kind regards,
willem



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-CCR-patch-adapt-code-for-diluent-cylinder-pressures-.patch
Type: text/x-diff
Size: 11420 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140911/5552e600/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Subject-PATCH-CCR-patch-adapt-code-for-diluent-cylin.patch
Type: text/x-diff
Size: 2092 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140911/5552e600/attachment-0001.patch>


More information about the subsurface mailing list