Repository navigation
Add ICP-201xx barometer driver - #12249
Target0815 wants to merge 2 commits into
Conversation
Driver for the TDK InvenSense ICP-201xx (ICP-20100) barometer, ported from the ArduPilot driver (AP_Baro_ICP201XX). - I2C, address configurable per target (default 0x63) - runs the A1-silicon OTP boot sequence when needed - continuous mode (operation mode 1: 120 Hz ODR, 30 Hz bandwidth), FIFO read out at ~60 Hz and averaged - timeouts on all wait loops Enabled per target with USE_BARO_ICP201XX (optionally ICP201XX_I2C_BUS and ICP201XX_I2C_ADDR). New baro_hardware value: ICP201XX. Tested on a SIYI UniFC 6 PICO (onboard ICP-20100 on I2C3). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PRdGUnvzUZYkaXNehajWs8
|
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing |
PR Summary by QodoAdd ICP-201xx I2C barometer driver
AI Description
Merge Risk
|
Code Review by Qodo
1.
|
- A1 boot sequence: OTP setup writes are checked before the trim values are read; the cleanup (OTP off, lock, standby) is always attempted and its result is part of the return value - fail configuration if the FIFO flush after FIR settling fails - read the first measurement during detection, so no uninitialised value is ever published Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PRdGUnvzUZYkaXNehajWs8
|
Thanks – fixed in 5722af6: Re-tested on the UniFC 6 PICO. |
Summary
Driver for the TDK InvenSense ICP-201xx barometer (ICP-20100), ported from the ArduPilot driver (
AP_Baro_ICP201XX).Enabled per target with
USE_BARO_ICP201XX(optionallyICP201XX_I2C_BUSandICP201XX_I2C_ADDR).New
baro_hardwarevalueICP201XX, appended at the end of the list so existing values are unchanged.Why
The ICP-20100 is used on the SIYI UniFC 6 PICO (#12248). The driver is submitted separately so the target PR only contains the board definition.
Testing
The Configurator dropdown for
baro_hardwarewill need the newICP201XXentry; I can open a Configurator PR for that.