adafruit / Adafruit_CircuitPython_BNO055

CircuitPython driver for BNO055 absolute orientation sensor
MIT License
85 stars 51 forks source link

Add axis_remap getter and setter #77

Closed ViennaMike closed 3 years ago

ViennaMike commented 3 years ago

The board may be mounted with various orientations in a project. Axis remap allows the axes to be remapped to align with the project axes. This was present in the pre-CircuitPython version of the driver, but not in the CircuitPython version. This adds it back.

The various parameters are added near the top of the code (at then end of the existing definitions) and the getter and adder functions added, along with comments on how the axis_remap works and a reference to the appropriate section of the datasheet.

tannewt commented 3 years ago

This PR looks empty. Have you pushed the commits?

ViennaMike commented 3 years ago

This PR looks empty. Have you pushed the commits?

Well, I sure thought I had! That said, obviously not. I've done that now, but I get a "Error: Process completed with exit code 1." in the checks, but I don't see any specific errors listed to know what failed and why. I need some help on that. Thanks!

tannewt commented 3 years ago

Looks like black reformatted the main library file. The simplest way to fix it is to install pre-commit: https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/check-your-code