Skip to content

Conversation

@mikeller
Copy link
Member

Log the remaining scrubber run time, and warnings and errors when
reaching the limits.

image

Also add the compass heading value to compass heading messages.

Requires mikeller/ostc4#32 to work.

Signed-off-by: Michael Keller [email protected]

@mikeller mikeller requested a review from Copilot April 20, 2025 14:17
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds functionality to log the remaining scrubber run time along with warnings and errors upon reaching scrubber limits, and it enhances compass heading messages to include the heading value.

  • Introduces new fields in the parser structure to track scrubber times and error/warning flags.
  • Implements new switch-case handling for scrubber time reporting and updates compass heading event processing.
  • Adjusts error messaging to correctly detect buffer underflow conditions.
Comments suppressed due to low confidence (1)

src/hw_ostc_parser.c:819

  • [nitpick] The use of literal case numbers (6 and 7) for scrubber time reporting can reduce code clarity. Consider defining constants or an enumeration for these cases to improve maintainability.
case 6:

@mikeller mikeller force-pushed the add_ostc4_scrubber_logging branch 4 times, most recently from 1103cce to 8aeff74 Compare April 22, 2025 11:38
mikeller and others added 2 commits June 8, 2025 15:16
Log the remaining scrubber run time, and warnings and errors when
reaching the limits.
Also add the compass heading value to compass heading messages.

Requires mikeller/ostc4#32 to work.

Signed-off-by: Michael Keller <[email protected]>
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Michael Keller <[email protected]>
@mikeller mikeller force-pushed the add_ostc4_scrubber_logging branch from 8aeff74 to 9efc929 Compare June 8, 2025 03:16
@mikeller
Copy link
Member Author

mikeller commented Jun 8, 2025

Verified against OSTC 4/5 firmware 1.7.2.

@mikeller mikeller merged commit 2e6aab2 into subsurface:Subsurface-DS9 Jun 8, 2025
8 checks passed
@mikeller mikeller deleted the add_ostc4_scrubber_logging branch June 8, 2025 03:23
theCarlG pushed a commit to theCarlG/libdc that referenced this pull request Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant