Skip to content

firmware: RC display — top clock + FW/battery footer (2026.06.08.02) - #44

Merged
avillach merged 1 commit into
mainfrom
firmware/rc-display-clock-footer
Jun 8, 2026
Merged

avillach merged 1 commit into
mainfrom
firmware/rc-display-clock-footer

Conversation

@avillach

@avillach avillach commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Compile-check PR — do not merge until eyeballed on an RC screen (merge auto-OTAs the fleet).

Adds to both RC panels (armed drawRcFleetPanel + idle drawRcPreRacePanel):

  • First row — time-of-day HH:MM:SS in the top bar (font 4). Local time via RC_CLOCK_TZ_OFFSET_MIN (default -240 = Boston EDT; set 0 for UTC, -300 for EST — manual, no auto-DST). --:--:-- until GPS time is valid.
  • Last row — footer bar: FW <version> (left) + BAT N% (right), font 2, white-on-black.

Shared drawRcClock() / drawRcFooter() helpers do their own change-detection (clock repaints on the second; footer on battery %), so they don't fight the panels' partial-redraw flicker control. maxRows reduced by the 28 px footer so peer rows never overlap it.

Heads-up: the static top-left RC FLEET / RC PRE-RACE labels are removed to make room for the clock — the right-side countdown / FIX gauge + column layout still signal armed vs idle. Say if you'd rather keep the label (I'd shrink the clock to fit both).

Brace-balanced (drawRcClock/Footer/Fleet/PreRace all OK); FW_VERSION → 2026.06.08.02.

Validate before merge

Flash one RC unit (E6 = rc_signal), confirm: clock top-left ticking in local time, FW 2026.06.08.02 + BAT N% footer, no row/footer overlap. Then merge to OTA the fleet.

🤖 Generated with Claude Code

Both RC panels (armed fleet view + pre-race roster) now show:
- First row (top bar, left): time-of-day HH:MM:SS, font 4. Local via a
  RC_CLOCK_TZ_OFFSET_MIN knob (default -240 = Boston EDT; 0 = UTC). Shows
  --:--:-- until GPS time is valid. Repaints only on the second change.
- Last row (footer bar): "FW <version>" left + "BAT N%" right, font 2,
  white-on-black. Repaints only when battery % changes.

Shared helpers drawRcClock()/drawRcFooter() handle their own change
detection so they don't disturb the panels' partial-redraw flicker
control. The static top-left "RC FLEET"/"RC PRE-RACE" labels are dropped
to make room for the clock — the countdown / FIX gauge on the right plus
the column layout still distinguish armed vs idle. maxRows in both panels
reduced by the 28 px footer so peer rows never overlap it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@avillach
avillach merged commit 4d0a816 into main Jun 8, 2026
1 check passed
@avillach
avillach deleted the firmware/rc-display-clock-footer branch June 8, 2026 14:16
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