Allow user to select dive mode (including PSCR)

Robert Helling helling at atdotde.de
Sat Jan 10 16:08:42 PST 2015


Hi,

this set of patches allows the user to set a dive mode (OC, PSCR, CCR, Freedive).

OC is what we used to do,

PSCR should use the oxygen drop formula (please test!!!!)

CCR should start the dive with a default set-point (can be set in preferences)

Freedive is not really implemented, yet.

Since we introduced two ways to tell if a dive is CCR in the past (dive computer.dctype and the existence of a non-zero set-point), this not only sets dctype but also inserts a manual set-point change at time zero (with value 0 for all non-CCR-modes).

Finally, the element dctype is renamed to a more appropriate divemode in a last patch.

I had been working on this since before christmas thus mailing this required an extensive rebase (thanks to all you guys coding like mad!), so there is also some repair done in the last patch. Sorry about this.

Best
Robert
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Rebreather-type-selector-UI.txt
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150111/1fb4955a/attachment-0007.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0002-Prepare-for-PSCR-calculations.txt
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150111/1fb4955a/attachment-0008.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0003-Maintab-combobox-to-set-dive-type.txt
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150111/1fb4955a/attachment-0009.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0004-Add-setpoint-events-according-to-divetype.txt
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150111/1fb4955a/attachment-0010.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0005-Add-preferences-field-for-default-set-point.txt
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150111/1fb4955a/attachment-0011.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0006-Replot-after-changing-divetype.txt
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150111/1fb4955a/attachment-0012.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0007-Refactor-dctype-divemode.txt
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150111/1fb4955a/attachment-0013.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150111/1fb4955a/attachment-0001.sig>


More information about the subsurface mailing list