BMA456 accelerometer (U43) has no firmware, so the part on the board has no use yet
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 28/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- arduino, cpp
- 领域
- embedded-iot
调研方向
Read the existing LIS3DH implementation in Apis_Library, especially getPitch() and getRoll(), and the library design rule on sharing code. Then consult the BMA456 datasheet to determine whether plain acceleration reads require Bosch’s feature-engine configuration blob. The work is complete when the driver, shared orientation reduction, data-row and status-snapshot fields are implemented and a hardware test passes.
由索引模型根据 Issue 内容生成。
描述
The Okapi redesign (Project-Okapi v0.6.0, the KiCad board) carries a BMA456 accelerometer, U43, on the on-board I2C segment at 0x18, powered from 3V3_AUX. Nothing in this library or anywhere else in the workspace talks to it, so a built board would have a part that does nothing.
What it is for (Andy, 2026-11-05): the board's orientation when desired, read at a wake. Not continuous sampling and not motion or impulse events, which is why its INT pin is a no-connect on the board.
What the firmware needs:
- A BMA456 driver from its datasheet: power mode, the acceleration registers, and whether Bosch's feature-engine configuration blob is needed for plain acceleration reads (to confirm before writing to the part; the plain registers may not need it).
- The orientation reduction, pitch and roll against a stored zero, which
Apis_Libraryalready does for its LIS3DH (getPitch(),getRoll()) and which should be shared rather than copied, per the library design's rule on copies. - The reading's place in the data row and in the status snapshot.
A hardware test on a board closes it. No milestone here; the hardware side is Project-Okapi v0.7.0.
🤖 Generated with Claude Code
- 主要语言
- C++
- 星标
- 1
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NorthernWidget/Okapi_Library 的其他 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 1/5 1 小时以内 新手友好度 88/100
-
难度 4/5 3-5 天 新手友好度 48/100
-
enhancement
难度 4/5 3-5 天 新手友好度 25/100
查看 NorthernWidget/Okapi_Library 的全部 Issue
相似的 Issue
-
ai_p2
难度 2/5 1-3 小时 新手友好度 82/100
ClickHouse/ClickHouse#130006 ·
维护者通常 1 天内回复
-
DepotMaintain: EN longer string moves the hint popup buttons out of reach // WpfGUI English Language未关闭client: WpfGui module: depot question
难度 2/5 1-3 小时 新手友好度 64/100
MaaAssistantArknights/MaaAssistantArknights#19169 · 2 条评论 ·
维护者通常 1 天内回复
-
area: certificates bug outdated-version
难度 1/5 1 小时以内 新手友好度 65/100
RafaelNGP/xbox-cloud-gaming-ps5#381 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
apache/iceberg-cpp#1103 ·
维护者通常 2 天内回复