-
Notifications
You must be signed in to change notification settings - Fork 105
Separate the Reporting of 'bearing' vs. 'heading. #99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: Subsurface-DS9
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -1192,8 +1192,13 @@ uwatec_smart_parse (uwatec_smart_parser_t *parser, dc_sample_callback_t callback | |||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| if (have_bearing) { | ||||||||||||||||||||||
| sample.bearing = bearing; | ||||||||||||||||||||||
| if (callback) callback (DC_SAMPLE_BEARING, &sample, userdata); | ||||||||||||||||||||||
| dc_sample_value_t sample = { | ||||||||||||||||||||||
| .event.type = SAMPLE_EVENT_HEADING, | ||||||||||||||||||||||
| .event.flags = SAMPLE_FLAGS_SEVERITY_INFO, | ||||||||||||||||||||||
| .event.value = bearing, | ||||||||||||||||||||||
| }; | ||||||||||||||||||||||
|
Comment on lines
+1195
to
+1199
|
||||||||||||||||||||||
| dc_sample_value_t sample = { | |
| .event.type = SAMPLE_EVENT_HEADING, | |
| .event.flags = SAMPLE_FLAGS_SEVERITY_INFO, | |
| .event.value = bearing, | |
| }; | |
| sample.event.type = SAMPLE_EVENT_HEADING; | |
| sample.event.time = 0; | |
| sample.event.flags = SAMPLE_FLAGS_SEVERITY_INFO; | |
| sample.event.value = bearing; | |
| sample.event.name = NULL; |
Copilot
AI
Jan 14, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistent spacing: this callback invocation is missing a space before the opening parenthesis, unlike other callback invocations in this function (e.g., lines 1149, 1158, 1164, 1172, 1177, 1185, 1191, 1207).
| if (callback) callback(DC_SAMPLE_EVENT, &sample, userdata); | |
| if (callback) callback (DC_SAMPLE_EVENT, &sample, userdata); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistent spacing: this callback invocation is missing a space before the opening parenthesis, unlike most other callback invocations in this function (e.g., lines 984, 991, 997, 1003, 1009, 1068, 1102, etc.).