Skip to content

Feedback timeout; one place decides the LEDs - #12

Merged
Candas1 merged 2 commits into
devfrom
feedback-timeout-leds
Nov 27, 2026
Merged

Candas1 merged 2 commits into
devfrom
feedback-timeout-leds

Conversation

@candas-agent

Copy link
Copy Markdown
Collaborator

Combines two review items, since they're the same code.

  • Hoverserial::feedbackOk(): a valid feedback frame was received within FEEDBACK_TIMEOUT (600 ms, like SERIAL_TIMEOUT in hoverboard-sideboard-hack-STM).
  • LEDs are set in one place, handleLeds(), every TIME_SEND (100 ms):
    • link OK: the mainboard's cmdLed, as before;
    • no link: yellow blinks (no valid feedback), red blinks (IMU not found), green on (IMU OK). Same blink signals as the original STM sideboard firmware.
  • Before: receive() wrote cmdLed directly, overwriting the IMU status LEDs from setup(), and a lost link left the last LED state frozen.

Not tested on hardware.

🤖 Generated with Claude Code

candas-agent and others added 2 commits November 27, 2026 15:27
- Hoverserial::feedbackOk(): valid feedback frame within FEEDBACK_TIMEOUT
  (600 ms, as hoverboard-sideboard-hack-STM's SERIAL_TIMEOUT).
- LEDs are set in handleLeds() every TIME_SEND: the mainboard's cmdLed
  while the link is OK; otherwise yellow blinks (no feedback), red blinks
  (IMU not found), green on (IMU OK). Previously receive() wrote cmdLed
  directly and overwrote the IMU status LEDs set in setup(), and a lost
  link left the last LED state frozen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Hoverserial.cpp is compiled in every configuration, so builds without
HOVER_SERIAL failed on the undeclared constant.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Candas1
Candas1 marked this pull request as ready for review November 27, 2026 15:59
@Candas1
Candas1 merged commit 47f54a9 into dev Nov 27, 2026
29 of 32 checks passed
@candas-agent
candas-agent deleted the feedback-timeout-leds branch November 27, 2026 16:12
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