Wednesday 4 April 2012

Frantic programming session...

Finished dry version of basic software. Now for lots of simulated dives...... sad to say the software is now far too big to fit into pinguino code model so going to have to grit my teeth and use the C18 compiler from microchip....

So far testing has got me agreement (within 1 or 2 minutes) with the BSAC tables although I'm not currently implementing any conservatism so not great for safety so far....


for a 30 minute dive to 30m, I'm getting 10 mins of ascent time with a ceiling of 2.9m at the end of the 30 mins before ascent starts. It's putting in one deco stop at 3m for 6mins and 44s. The rest of the ascent time comes from assuming a fixed ascent rate of 10m / minutes for 30m total ascent.

Given the less than 10cm between ceiling and stop depth I clearly need to build in a bit more caution in deciding the stop depth......

Here's a snippet of one of the generated tables...

dive depth 30m, gas EANx21

nostop time:  16mins (including 1 minute descent time to 30m - fast!)

Dive time is the end fo the square profile bottom time

Dive time (mins)           Ceiling (m)        Asc time    Stops
21                                    1.15                   4m 24s     3metres 1m26s
24                                    1.73                  5m 54s      3metres  - 2m 54s
29                                    2.72                  6m 08s      3metres  6m 08s
33                                    3.43                  12m 32s    6metres 43s, 3metres 8m 49s

lots more to do though...... like getting the code to fit into the pic, adding conservatism buil;ding in gas switching etc



No comments:

Post a Comment