Skip to content

feat: add manual OPS243 radar recovery from debug UI - #312

Merged
jewbetcha merged 2 commits into
open-flight:mainfrom
Reillybags:feat/manual-radar-recovery
Oct 27, 2026
Merged

jewbetcha merged 2 commits into
open-flight:mainfrom
Reillybags:feat/manual-radar-recovery

Conversation

@Reillybags

Copy link
Copy Markdown

Summary

Adds a manual radar recovery button to OpenFlight's Debug Status panel for OPS243 rolling-buffer operation.

The button allows users to reinitialise the radar's rolling-buffer configuration without restarting OpenFlight or power-cycling the radar.

Why was this required?

During hardware testing, repeated sound triggers occasionally caused the OPS243-A to stop delivering capture data even though OpenFlight remained running.

Previously, recovering from this condition required restarting OpenFlight.

This feature provides an operator-controlled recovery method directly in the interface.

Recovery stops the capture monitor, reapplies the persisted rolling-buffer configuration, resets the trigger and restarts capture using the existing callbacks.

Automated tests

  • 352 Python tests passed, 1 skipped.
  • Four new recovery tests covering successful reinitialisation, unsupported trigger modes, stopped monitors and capture threads that fail to stop.
  • UI formatting check passed.
  • UI production build passed.
  • ESLint passed.

Manual (human) testing

Tested on a Raspberry Pi with an OPS243-A radar using sound-triggered rolling-buffer capture.

  • Reproduced an unresponsive radar following repeated sound triggers.
  • Used the Reinitialise Radar button in the Debug Status panel.
  • Confirmed that reinitialisation commands completed without restarting OpenFlight.
  • Confirmed that subsequent sound triggers produced new radar captures.

Screenshot:
image

Scope and limitations

  • Manual recovery only; no automatic watchdog.
  • Available for real rolling-buffer radar operation using sound-trigger mode.
  • Recovery does not write persistent radar flash settings.
  • The interface reports completion of configuration commands; a subsequent trigger is needed to verify successful capture.
  • This PR is independent of the touchscreen sleep/wake and clubhead-speed diagnostics changes.

@jewbetcha jewbetcha left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👌

@jewbetcha
jewbetcha merged commit 45665fc into open-flight:main Oct 27, 2026
12 checks passed
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.

2 participants