Allow user to select dive mode (including PSCR)
Robert Helling
helling at atdotde.de
Fri Jan 16 06:13:52 PST 2015
Hi,
first of all, here are more patches towards the PSCR mode:
> On 12.01.2015, at 12:25, Davide DB <dbdavide at gmail.com> wrote:
>
> Hi Robert,
>
> Could you shed some light on how to use pSCR feature?
In logbook mode: Just turn it on using the combo box.
It implicitly also adds a set-point change at t=0 to the default stepping for CCR mode and 0 for all other modes. Similarly in planner.
> Which formula did you use?
The steady state formula. You find in dive.c lines 1689ff
if (divemode == PSCR) { /* The steady state approximation should be good enough */
pressures->o2 = get_o2(mix) / 1000.0 * amb_pressure - (1.0 - get_o2(mix) / 1000.0) * prefs.o2consumption / (sac * prefs.pscr_ratio / 1000.0);
pressures->he = (amb_pressure - pressures->o2) * get_he(mix) / (1000.0 - get_o2(mix));
pressures->n2 = (amb_pressure - pressures->o2) * (1000 - get_o2(mix) - get_he(mix)) / (1000.0 - get_o2(mix));
} else {
> Where I set needed constants?
Currently, there is no UI to set them unfortunately, there is only subsurfacestartup.c
.o2consumption = 720,
.pscr_ratio = 100,
The first is the O2 metabolization in ml/min the second the drop ration (in permille).
>
> I downloaded latest daily and I tried to set pSCR on one of my simplest dive.
>
> In the attachment before/after of the oxygen graph.
Could you try again? If it is still that strange, we need to look at the SAC calculation. Which gives me an idea. Too bad, I have to run. Could you mail me a file with that dive?
Thanks
Robert
--
.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oO
Robert C. Helling Elite Master Course Theoretical and Mathematical Physics
Scientific Coordinator
Ludwig Maximilians Universitaet Muenchen, Dept. Physik
Phone: +49 89 2180-4523 Theresienstr. 39, rm. B339
http://www.atdotde.de
Enhance your privacy, use cryptography! My PGP keys have fingerprints
A9D1 A01D 13A5 31FA 6515 BB44 0820 367C 36BC 0C1D and
DCED 37B6 251C 7861 270D 5613 95C7 9D32 9A8D 9B8F
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150116/2e5d7efa/attachment-0004.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Minor-PSCR-fixes.txt
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150116/2e5d7efa/attachment-0003.txt>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150116/2e5d7efa/attachment-0005.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0002-Save-predefined-SAC.txt
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150116/2e5d7efa/attachment-0004.txt>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150116/2e5d7efa/attachment-0006.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0003-Planner-rebreather-mode.txt
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150116/2e5d7efa/attachment-0005.txt>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150116/2e5d7efa/attachment-0007.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150116/2e5d7efa/attachment-0001.sig>
More information about the subsurface
mailing list