mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Change fake profile behavior
If no average depth is known the current fake profile behavior is rather unintuitive (we make up an average depth). Instead we should assume that this is a PADI style dive log and give the user a "rectangular" profile (actually, it's a trapecoid as we at least try to enforce a sane ascent / descent speed). If the dive is somewhat longer or deeper (10 min / 10 m) we even add a 3m safety stop at 5m. Added a new dives/test0b that tries to capture the typical cases to test this. Fixes #398 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
fef4d15965
commit
f12f9ae8c3
3 changed files with 52 additions and 5 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<dives>
|
||||
<program name='subsurface' version='1'></program>
|
||||
<dive number='0' date='2011-01-01' time='08:00:00' duration='30:00 min'>
|
||||
<dive number='0' date='2011-01-01' time='07:00:00' duration='30:00 min'>
|
||||
<depth max='30.00 m' mean='15.00 m' />
|
||||
</dive>
|
||||
</dives>
|
||||
</dives>
|
||||
|
|
|
|||
15
dives/test0b.xml
Normal file
15
dives/test0b.xml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<dives>
|
||||
<program name='subsurface' version='1'></program>
|
||||
<dive number='0' date='2011-01-01' time='08:00:00' duration='20:00 min'>
|
||||
<depth max='30.00 m' />
|
||||
</dive>
|
||||
<dive number='0' date='2011-01-01' time='08:25:00' duration='8:00 min'>
|
||||
<depth max='11.00 m' />
|
||||
</dive>
|
||||
<dive number='0' date='2011-01-01' time='08:35:00' duration='10:00 min'>
|
||||
<depth max='8.00 m' />
|
||||
</dive>
|
||||
<dive number='0' date='2011-01-01' time='08:50:00' duration='3:00 min'>
|
||||
<depth max='20.00 m' />
|
||||
</dive>
|
||||
</dives>
|
||||
Loading…
Add table
Add a link
Reference in a new issue