Skip to content

Heinrichs Weikamp: Log the Remaining Scrubber Time on OSTC 4/5. #80

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

Open
wants to merge 2 commits into
base: Subsurface-DS9
Choose a base branch
from

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

@Copilot 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 2 times, most recently from c075e1a to d7eb110 Compare April 20, 2025 14:26
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]>
@mikeller mikeller force-pushed the add_ostc4_scrubber_logging branch from d7eb110 to 1103cce Compare April 22, 2025 01:39
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Michael Keller <[email protected]>
@mikeller mikeller force-pushed the add_ostc4_scrubber_logging branch from 1103cce to 8aeff74 Compare April 22, 2025 11:38
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