From f12f9ae8c3b3ed8631254c65572eb76462ec0de9 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 8 Jan 2014 21:46:27 +0800 Subject: 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 --- dives/test0.xml | 4 ++-- dives/test0b.xml | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 dives/test0b.xml (limited to 'dives') diff --git a/dives/test0.xml b/dives/test0.xml index 1d15fac85..6ade06519 100644 --- a/dives/test0.xml +++ b/dives/test0.xml @@ -1,6 +1,6 @@ - + - \ No newline at end of file + diff --git a/dives/test0b.xml b/dives/test0b.xml new file mode 100644 index 000000000..30e6f34b6 --- /dev/null +++ b/dives/test0b.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + -- cgit v1.2.3-70-g09d2