sl-firmware
4318589496
feat: BME280 baro pressure & ambient temp driver (Issue #672)
- New baro module (include/baro.h, src/baro.c): reads BME280/BMP280
at 1 Hz on I2C1, computes pressure altitude (ISA formula), publishes
JLINK_TLM_BARO (0x8D) telemetry to Orin. Runs entirely on Mamba F722S
with no Orin dependency. baro_get_alt_cm() exposes altitude to balance
PID slope compensation.
- New JLink telemetry frame 0x8D (jlink_tlm_baro_t, 12 bytes packed):
pressure_pa (int32), temp_x10 (int16), alt_cm (int32),
humidity_pct_x10 (int16; -1 = BMP280/absent).
- Wire into main.c: baro_init() after bmp280_init(), baro_tick(now)
each ms (self-rate-limits to 1 Hz).
- Unit tests (test/test_baro.c): 31 tests, all pass. Build:
gcc -I include -I test/stubs -DTEST_HOST -lm -o /tmp/test_baro test/test_baro.c
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-18 08:25:07 -04:00
..
2026-03-17 21:41:19 -04:00
2026-03-02 10:34:35 -05:00
2026-03-18 08:25:07 -04:00
2026-03-07 10:01:02 -05:00
2026-03-02 09:40:18 -05:00
2026-03-02 12:51:42 -05:00
2026-03-02 08:35:48 -05:00
2026-03-15 16:34:38 -04:00
2026-03-06 10:27:36 -05:00
2026-03-02 13:29:18 -05:00
2026-03-18 08:10:10 -04:00
2026-03-02 11:51:26 -05:00
2026-03-02 09:22:34 -05:00
2026-03-02 11:06:13 -05:00
2026-03-02 09:56:18 -05:00
2026-03-14 11:51:11 -04:00
2026-03-02 10:53:02 -05:00
2026-03-02 20:49:26 -05:00
2026-03-02 11:44:56 -05:00
2026-03-14 15:04:58 -04:00
2026-03-15 10:11:05 -04:00
2026-03-02 12:22:09 -05:00
2026-03-17 21:41:19 -04:00
2026-03-02 21:09:17 -05:00