[PATCH] Calculate deco stops, TTS and NDL

Dirk Hohndel dirk at hohndel.org
Wed Jun 19 16:11:17 PDT 2013


On Thu, 2013-06-20 at 00:59 +0200, Anton Lundin wrote:
> > So let's assume I am misunderstanding the constant names / comments :-)
> 
> Yep, commend should have bin 12 m/min.

:-)

> Did some clarifications of the comments and the constant names. Also did
> some separation of accent speed up to first deco stop and accent speed
> between deco stops.

Good.

> > > +			int next_stop;
> > > +			int accent_depth;
> > > +			int stepsize = prefs.calc_ceiling_3m_incr ? 3000 : 1000;
> > 
> > Why a minimum step of 1m? When calculating ceilings I'd do 10cm (which
> > works well for both metric and imperial people). But for actual stops I
> > think everyone does 10ft / 3m multiples... and the calc_ceiling_3m_incr
> > definitely should NOT be used to determine the stop depths for the tts
> > calculation.
> 
> This is for actual stops. I switched to 10ft / 3m steps now.

Yes, let's hardcode to 10ft / 3m

> > Even 3m seems aggressive :-)
> > That's hours and hours and hours... and if people dive on EAN50 your
> > likely to run into O2 toxicity before running into deco...
> 
> Thats why theres a max_ndl of 2h =)

So for depth < 3m we simply set ndl of 2h? Hmm.

We should set it to 2h1s and display ">2h" for anything larger than 2h

> Anyway its more if a optimization rather than a real-world limit. We
> could change it to something else if someone comes up with a less
> arbitrary value =)

2h sounds fine to me.

> > Would you mind sending a new rev?
> 
> Found some more things to clean up, so a new rev is comming.

Thank you

/D



More information about the subsurface mailing list