Mercurial > public > ostc4
annotate RefPrj/Firmware/.project @ 306:2f43419102c8 cleanup-4
bugfix, cleanup: do not clip depth to 0
A real dive with the previous commits shows that testing from the simulator
cannot be fully trusted in relation to logic that is close to the depth
sensor (that is obviously bypassed using the simulator). So 1) there is
3 second interval between the stopwatch and the divetime, and 2) the depth
flips from 1m depth to surface 0m depth, and that is visible in the
profile data.
Point 2) is definitely caused by the removed code in this commit. It likely
is not right to clip the depth value at all. It is fine to base decisions like is
done in is_ambient_pressure_close_to_surface on it, but clipping the depth value
itself is seems wrong. This has become more prominent with commit eba8d1eb5bef
where the clipping depth changed from 40cm of depth to 1m of depth. When
comparing profiles from an OSTC Plus, it shows that no depth clipping is
present there, so that is one more argument to remove it here.
Point 1) The 3 sec interval is likely not a coincidence. It is the time
to travel for 1m depth with a default descend speed of 20m/min.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author | Jan Mulder <jlmulder@xs4all.nl> |
---|---|
date | Wed, 22 May 2019 14:39:04 +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> |