feat: BME280 baro pressure & ambient temp (Issue #672) #673
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "sl-firmware/issue-672-bme280-baro-temp"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Test plan
Generated with Claude Code
- 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>ca0098a403to4318589496