Skip to content

edge fw: B1 2.8" ILI9341 TFT support + skip-SD + 240x320 reflow + HDOP/accuracy - #48

Merged
avillach merged 2 commits into
mainfrom
b1/firmware-2.8tft-sd
Jun 17, 2026
Merged

avillach merged 2 commits into
mainfrom
b1/firmware-2.8tft-sd

Conversation

@avillach

Copy link
Copy Markdown
Contributor

B1 (LC29HEAMD) bring-up firmware — adds a BUILD_B1 compile variant. Fleet-safe: every change is #ifdef BUILD_B1-gated, the E build is byte-identical (Sketch uses 1592255 unchanged), and FW_VERSION is unchanged so the OTA version-equality gate is a no-op for the 6 E boats. B1 is flashed locally (CI builds the E binary only).

Changes (all BUILD_B1)

  • ILI9341V 2.8" 240×320 driver (User_Setup conditional; no TFT_BL define → keeps TFT_eSPI off GPIO19=PWR_HOLD).
  • Skip SD-fault halt → degraded boot (no logging, boat_id=UNCFG) since B1.0 has a dead microSD (fixed in v0.13 hw).
  • 240×320 layout reflow — D2 nav via conditional D2_* geometry constants (E values == originals); splash text resized.
  • invertDisplay(true) (IPS colors).
  • HDOP + GNSS accuracy on screen; accuracy (gps.hacc_m) enabled via PQTMEPE in the RTK-off path (kept out of configureLG290P so E stays byte-identical).

Validated

Flashed to B1; open-field test → 40 sats, HDOP 0.4, EPE 1.6 m autonomous. Confirms the GNSS RF front-end works on B1 hardware. (Fix = "GPS" not "SBAS": the LC29HEA EA variant has no SBAS — AA-only.)

🤖 Generated with Claude Code

avillach and others added 2 commits June 17, 2026 10:33
B1.0 uses a 2.8" 240x320 ILI9341V display (TFT_eSPI driver is compile-time,
so B needs its own build) and has a dead microSD (J5 pinout bug, fixed in
v0.13 hw). All changes are gated behind -DBUILD_B1; the E fleet build's
preprocessor output is byte-identical (0 ungated lines; User_Setup #else ==
original ST7796 config).

- User_Setup.h: #ifdef BUILD_B1 -> ILI9341_DRIVER 240x320, TFT_MISO=-1, and
  NO TFT_BL define (GPIO19 is PWR_HOLD on B1; TFT_eSPI must not touch it —
  the .ino PWMs the real backlight on GPIO25). #else -> ST7796 480x320 (E).
- SCREEN_WIDTH/HEIGHT -> 240x320 for B1.
- g_hw default HW_B1 + hardware_platform "b1" so a no-SD boot uses the LC29H
  path (platform normally comes from SD config, which B1.0 can't read).
- TFT init: ILI9341 messages; invertDisplay(false) (bench-tunable).
- SD-fault gate: B1 skips the while(true) halt -> boots DEGRADED (no logging,
  boat_id=UNCFG sentinel, non-colliding). E keeps the identity-safety halt.

Verified: B1 build compiles clean, 1,592,208 B = 81% of the 1.9MB OTA
partition. NOT merged / NOT OTA — B1 is flashed locally for bring-up.
Layout reflow for 240x320 + bench color/rotation tuning still to do.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
All BUILD_B1-gated; E build verified byte-identical (Sketch uses 1592255,
unchanged from pre-change). FW_VERSION unchanged (2026.06.08.03) so the fleet
OTA gate (version-equality, line ~6249) is a no-op for the E boats.

- D2 nav layout reflowed for 240x320 via conditional D2_* geometry constants
  (COG/SOG fonts 8x2 -> 8x1, top bar repacked, HDOP moved out of the top bar);
  the #else (E) values equal the original literals, so E is unchanged.
- Splash: device-id text size 8 -> 3, FW version size 2 -> 1 (fit 240 px).
- invertDisplay(true) on B1 (bench-confirmed IPS colors were inverted).
- HDOP + GNSS accuracy (gps.hacc_m) drawn in the COG/SOG label rows. Accuracy
  enabled via PQTMEPE in gnssConfigure()'s RTK-off path (kept OUT of
  configureLG290P so the E/LG290P path stays byte-identical).

Flashed + FIELD-VALIDATED on B1 hardware: open field -> 40 sats, HDOP 0.4,
EPE 1.6 m autonomous. Confirms the GNSS RF front-end (antenna/RF_IN/VDD_RF
bias-tee + custom 24-pin footprint) works. Fix shows "GPS" not "SBAS" because
the LC29HEA (EA variant) has no SBAS hardware (AA-only); it uses RTK instead.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@avillach
avillach merged commit c53ef9e into main Jun 17, 2026
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