Repository navigation
B1: self-power latch firmware + battery cal + dual-variant CI/OTA - #52
Merged
Merged
Conversation
Validated on v0.13 hardware (survives multi-lift off the Qi pad on battery at full radio load, FW 2026.06.29.01). Firmware (sailframes_edge.ino, all #ifdef BUILD_B1 — E build byte-identical except version string, verified): - PWR_HOLD (GPIO19) self-power latch: driven HIGH first thing in setup() so the unit holds its own power when lifted off the Qi pad; QI_PRESENT (GPIO15) sense. - Power-off triggers: low-batt off-pad, `poweroff` serial/telnet cmd, and charged+uploaded+idle-on-pad 30 min. "Parked" is a non-blocking loop state (never a halt — a spin would trip the Core-1 loop watchdog into a restart that re-latches power on). - On-pad charging screen; `power`/`poweroff` commands. - Battery: B1 divider ratio 2.09 (E1 stays 2.25; multimeter 4.096 V read 4.41 V at 2.25) + sanity filter rejecting impossible reads. bring-up sketch (b1_bringup.ino): drive GPIO19 HIGH to engage the v0.13 latch (was still using the v0.12 read-only LATCH_Q_RB semantics). CI (firmware-edge.yml): build BOTH variants (E default + B1 with -DBUILD_B1) and route each fleet's OTA manifest to its own binary — the two are NOT interchangeable (GPIO19 = backlight on E vs PWR_HOLD latch on B). E1..E6 -> E build; B1 -> B1 build. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
On the button-less sealed B unit, docking on the Qi pad now means "the sail is over": if recording when QI_PRESENT goes high, stop the session (same as stoprec) so the stationary-upload path ships it and the unit charges. Auto-start is speed-gated, so a stationary on-pad unit won't re-start. Without this the unit logs indefinitely on the pad (Qi keeps it powered) with no way to stop it short of opening the box for USB. B-only (#ifdef BUILD_B1); E unaffected. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The B publish list only had B1, so B2 would 404 on firmware/B2/latest.json and never receive OTA. Add B2; future B units join the same list. 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.
What
Adds the B1 (LC29HEA) variant to CI/OTA and lands the validated B1 self-power-latch firmware.
CI now builds two binaries from one source — E (default) and B1 (
-DBUILD_B1) — and points each fleet's OTA manifest at its own binary. They are not interchangeable: GPIO19 is the TFT backlight on E but the PWR_HOLD self-power latch on B, and the TFT driver differs.E1..E6 → E build,B1 → B1 build.Firmware (all
#ifdef BUILD_B1)QI_PRESENT(GPIO15) sense.poweroffcmd, charged+uploaded+idle-on-pad 30 min. "Parked" is a non-blocking loop state (a halt would trip the loop watchdog → restart → re-latch).power/poweroffserial/telnet cmds.2.09(E1 stays2.25) + sanity filter. Verified against a 4.096 V multimeter reading.Validation
2026.06.29.01).LATCH_DBG:LATCH_Q=3.269 V (R28 is a true 0 ohm jumper),MOSFET_GATE=12.6 mV.2026.06.08.03except the version string (0 code/data diffs viacmp -l).Merging to
mainruns CI, which on a green build will:firmware/B1/latest.json→ B1 board OTAs to2026.06.29.01(it's already on it via USB, so likely a no-op).E1..E6manifests to2026.06.29.01→ the E fleet OTA-updates from06.08.03. This is a functional no-op (E binary is byte-identical), but the 6 boats will reboot to apply on their next WiFi cycle.If you'd rather not disturb the E fleet right now, hold the merge or say so and I'll gate the E-fleet republish.
🤖 Generated with Claude Code