sl-firmware
ca0098a403
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-17 18:35:20 -04:00
..
2026-03-02 10:34:35 -05:00
2026-03-14 15:04:58 -04:00
2026-03-17 18:35:20 -04:00
2026-03-07 10:01:02 -05:00
2026-03-03 17:35:34 -05:00
2026-02-28 19:43:48 -05:00
2026-03-02 09:40:18 -05:00
2026-03-02 12:51:42 -05:00
2026-03-14 15:58:13 -04:00
2026-03-15 16:34:38 -04:00
2026-03-03 17:35:34 -05:00
2026-03-03 17:35:34 -05:00
2026-03-15 16:34:38 -04:00
2026-03-04 10:36:35 -05:00
2026-03-06 10:27:36 -05:00
2026-03-06 10:27:36 -05:00
2026-03-06 10:27:36 -05:00
2026-03-02 13:29:18 -05:00
2026-03-14 13:37:14 -04:00
2026-03-14 10:38:06 -04:00
2026-03-06 22:35:24 -05:00
2026-02-28 17:48:53 -05:00
2026-02-28 11:58:23 -05:00
2026-03-02 11:51:26 -05:00
2026-02-28 21:07:15 -05:00
2026-03-06 22:35:24 -05:00
2026-03-17 18:35:20 -04:00
2026-03-02 11:06:13 -05:00
2026-03-15 11:04:38 -04:00
2026-02-28 17:48:53 -05:00
2026-02-28 21:06:26 -05:00
2026-03-14 12:25:29 -04:00
2026-02-28 17:15:40 -05:00
2026-03-15 10:11:05 -04:00
2026-03-02 09:56:18 -05:00
2026-03-14 12:25:29 -04:00
2026-03-14 11:51:11 -04:00
2026-03-07 10:01:02 -05:00
2026-03-02 20:49:26 -05:00
2026-03-01 04:55:54 -05:00
2026-03-14 10:38:06 -04:00
2026-03-03 19:00:12 -05:00
2026-03-14 15:04:58 -04:00
2026-03-01 04:55:54 -05:00
2026-03-15 10:11:05 -04:00
2026-03-15 14:41:00 -04:00
2026-03-02 12:22:09 -05:00
2026-03-02 21:09:17 -05:00