Repository navigation
edge fw: B1 2.8" ILI9341 TFT support + skip-SD + 240x320 reflow + HDOP/accuracy - #48
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
B1 (LC29HEAMD) bring-up firmware — adds a
BUILD_B1compile 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)
D2_*geometry constants (E values == originals); splash text resized.PQTMEPEin 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