From d9f2b537afcefb57e224a6d1527537a54bb60688 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Mon, 29 Oct 2018 23:55:38 +0100 Subject: Fixed get_gas_at_time for equal times This fixes a subtle bug introduced in 5c4569247a31c which unified two functions finding the gasmix at a given time during the dive. There was a slight difference, though: Does a gaschange exactly at that time count or not? For the planner to work, the answer has to be in the affirmative. Signed-off-by: Robert C. Helling --- dives/test51.xml | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 dives/test51.xml (limited to 'dives') diff --git a/dives/test51.xml b/dives/test51.xml new file mode 100644 index 000000000..38c9ce8c7 --- /dev/null +++ b/dives/test51.xml @@ -0,0 +1,76 @@ + + + + + + + + + + This dive demostrates a planner bug. Edit this dive in planner. If the dive turns red for a ceiling violation, there is a bug in detecting the correct gasmix at times. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3-70-g09d2