Repository navigation
feat(bno055): add BNO055 9-axis absolute orientation IMU component - #858
Merged
Merged
Conversation
Add espp::Bno055, a BasePeripheral-based I2C driver for the Bosch BNO055. It resets the sensor, waits for the chip ID, selects SI units (m/s^2, rad/s, rad, uT), optionally enables the external 32 kHz crystal, and enters the configured operating mode (IMU fusion by default). update() reads every sensor and fusion output in one 46-byte burst. Add an example that prints one CSV row per sample at 100 Hz, docs pages, and the Doxygen entries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
✅Static analysis result - no issues found! ✅ |
4 of 12 tasks
alexchunlin
marked this pull request as ready for review
October 22, 2026 21:22
alexchunlin
added a commit
to rammp-org/RAMMP-mib-fw
that referenced
this pull request
Oct 22, 2026
Drop components/Bno055 and depend on espp/bno055 (esp-cpp/espp#858), which is the same driver upstreamed. Pinned to the PR branch on the alexchunlin/espp fork until the next espp release; replace the git dependency in main/idf_component.yml with the released version before merging. Bench: IMU initializes and Diagnostics rows I1/I2 arrive over RTPS as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
finger563
approved these changes
Oct 22, 2026
alexchunlin
added a commit
to rammp-org/RAMMP-mib-fw
that referenced
this pull request
Oct 23, 2026
esp-cpp/espp#858 shipped in espp v1.3.10, unchanged from the branch this PR was tested against. Replace the git dependency on the fork with the registry release. A clean resolve moves every espp component to 1.3.10. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds
espp::Bno055, a driver for the Bosch BNO055 9-axis absolute-orientation IMU over I2C, plus an example and docs. espp has no BNO055 driver today. It follows the sameBasePeripheralpattern as the ICM20948 and BMI270 drivers: the caller passes inprobe,writeandwrite_then_read, so the driver runs on any espp I2C bus.0xA0, selects normal power mode, sets SI units (m/s², rad/s, rad, °C), optionally enables the external 32 kHz crystal, then switches to the configured fusion mode. The default isIMUmode, accel + gyro fusion with heading relative to power-on.NDOFand the non-fusion modes are available.update(): reads accel, mag, gyro, Euler angles, quaternion, linear acceleration, gravity, temperature and calibration status in a single 46-byte burst, and caches the result.data()returns a copy under a mutex.components/bno055/exampleprints a CSV row at 100 Hz. Pins and address are set in menuconfig. The defaults are SDA 7 / SCL 8 on esp32p4 (the ESP32-P4-ETH internal bus) and 21 / 22 elsewhere, at address 0x28.doc/en/imu/bno055.rst, the example page, and the Doxyfile andimu/index.rstentries.Axis remapping is left out on purpose. On an earlier robot the BNO055's register-level axis remap scrambled the quaternion axes, and doing the mounting correction in software was more reliable.
Motivation and Context
We use a BNO055 on the RAMMP MIB, an ESP32-P4-ETH wheelchair base controller (rammp-org/RAMMP-mib-fw#38). The driver started life there. This PR moves it upstream so the MIB can depend on
espp/bno055instead of carrying a local copy.How has this been tested?
Example build: ESP-IDF v6.0.1, esp32p4. No warnings. clang-format clean.
Hardware: the example on an ESP32-P4-ETH (rev v1.3) with a BNO055 breakout on GPIO7/8, board still on a desk.
In-application: the same driver, under
mib::instead ofespp::, has run in the MIB firmware at 100 Hz alongside Ethernet and RTPS.Tilt by hand, in the MIB firmware (same driver):
init()again), not part of this component.Types of changes
Checklist:
Software
🤖 Generated with Claude Code