Commit f93a3fa
committed
Separate the Reporting of 'bearing' vs. 'heading.
There seems to be two different ways that dive computers report
directional information:
1. report headings that are set by the user by pointing the device in
the desired direction, then pressing a button;
2. report the direction that the device is pointing in at set intervals
(like every 10 seconds) during the dive.
For a user-friendly visualisation, these two approaches need to be shown
in different ways in Subsurface:
1. show an event in the profile every time the user executes the 'set
heading' operation (and potentially at the start of the dive for the
initial heading);
2. show the current bearing in the information box in the profile when
the mouse pointer traverses the profile.
Subsurface will be using different ways for libdivecomputer backends to
import this data:
1. using `DC_SAMPLE_EVENT` samples with `SAMPLE_EVENT_HEADING` type;
2. using `DC_SAMPLE_BEARING` samples.
This changeset updates the following dive computers to use 1. to match
their type of reporting:
- Heinrichs Weikamp OSTC3 / 4 / 5
- ScubaPro / Uwatec Smart
The following dive computers are already using 1. correctly:
- Suunto EON Steel
- Suunto D9
And the following dive computer seems to be using 2. correctly:
- Divesoft Freedom / Liberty
The following dive computers are currently using 2., but we don't have
any information if this is correct:
- DiveSystem iDive
- Shearwater Predator
- Halcyon Symbios
Signed-off-by: Michael Keller <[email protected]>1 parent 71a80b6 commit f93a3fa
2 files changed
+10
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1184 | 1184 | | |
1185 | 1185 | | |
1186 | 1186 | | |
1187 | | - | |
1188 | 1187 | | |
1189 | 1188 | | |
1190 | 1189 | | |
| |||
1194 | 1193 | | |
1195 | 1194 | | |
1196 | 1195 | | |
| 1196 | + | |
1197 | 1197 | | |
1198 | 1198 | | |
1199 | | - | |
1200 | | - | |
| 1199 | + | |
1201 | 1200 | | |
1202 | 1201 | | |
1203 | | - | |
1204 | 1202 | | |
1205 | 1203 | | |
1206 | 1204 | | |
1207 | 1205 | | |
1208 | 1206 | | |
1209 | 1207 | | |
1210 | 1208 | | |
1211 | | - | |
| 1209 | + | |
1212 | 1210 | | |
1213 | 1211 | | |
1214 | 1212 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1192 | 1192 | | |
1193 | 1193 | | |
1194 | 1194 | | |
1195 | | - | |
1196 | | - | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
1197 | 1202 | | |
1198 | 1203 | | |
1199 | 1204 | | |
| |||
0 commit comments