Mercurial > public > ostc4
annotate RefPrj/Firmware/.project @ 250:822416168585 bm-2
Buelmann: new implementation for ceiling
Since my first functional fix in the ceiling computation in
commit ceecabfddb57, I noticed that the computation used a
linear search, that became rather computational expensive after
that commit. The simple question is: why not a binary search?
So, this commit implements the binary search. But there is a long
story attached to this. Comparing ceiling results from hwOS and this
OSTC4 code were very different. Basically, the original OSTC4
algorithm computed the ceiling using the same GFlow to GFhigh
slope, in such a way, that the ceiling was in sync with the
presented deco stops, where the hwOS code presents a GFhigh
based ceiling.
This said, it is more logical when the OSTC4 and hwOS code give
similar results. This new recursive algorithm gives very similar
results for the ceiling compared to hwOS.
To be complete here, the Buelmann ceiling is the depth to which
you can ascend, so that the leading tissue reaches GFhigh. This
also explains why the deepest deco stop is normally deeper than
the ceiling (unless one dives with GF like 80/80).
The code implemented here is rather straightforward recursion.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author | Jan Mulder <jlmulder@xs4all.nl> |
---|---|
date | Thu, 11 Apr 2019 17:48:48 +0200 |
parents | d24395f7c939 |
children |
rev | line source |
---|---|
52 | 1 <?xml version="1.0" encoding="UTF-8"?> |
2 <projectDescription> | |
3 <name>OSTC4_Firmware</name> | |
4 <comment></comment> | |
5 <projects> | |
6 </projects> | |
7 <buildSpec> | |
8 <buildCommand> | |
9 <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> | |
10 <triggers>clean,full,incremental,</triggers> | |
11 <arguments> | |
12 </arguments> | |
13 </buildCommand> | |
14 <buildCommand> | |
15 <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> | |
16 <triggers>full,incremental,</triggers> | |
17 <arguments> | |
18 </arguments> | |
19 </buildCommand> | |
20 </buildSpec> | |
21 <natures> | |
22 <nature>org.eclipse.cdt.core.cnature</nature> | |
23 <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> | |
24 <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> | |
25 <nature>fr.ac6.mcu.ide.core.MCUProjectNature</nature> | |
26 <nature>fr.ac6.mcu.ide.core.MCUSingleCoreProjectNature</nature> | |
27 </natures> | |
28 <linkedResources> | |
29 <link> | |
30 <name>Common</name> | |
31 <type>2</type> | |
32 <locationURI>OSTC4/Common</locationURI> | |
33 </link> | |
34 <link> | |
35 <name>Discovery</name> | |
36 <type>2</type> | |
37 <locationURI>OSTC4/Discovery</locationURI> | |
38 </link> | |
39 </linkedResources> | |
40 <variableList> | |
41 <variable> | |
42 <name>OSTC4</name> | |
43 <value>$%7BWORKSPACE_LOC%7D/ostc4</value> | |
44 </variable> | |
45 </variableList> | |
46 </projectDescription> |