Skip to content

Conversation

@mycosd
Copy link

@mycosd mycosd commented Jul 27, 2024

This adds orientation arguments to the calibrate function, as discussed in #58

I've had to add an additional bool inverted, to tell it, that the MPU is upside down. This keeps it compatible to the getAngleX and getAngleY which only report in a +/-90° range.
Alternatively the user can add 180° themselve to the X/Y argument of calibrate and ignore inverted.

@RobTillaart RobTillaart linked an issue Jul 29, 2024 that may be closed by this pull request
@RobTillaart
Copy link
Owner

Quick review looks ok, (not tested with HW by me

@RobTillaart RobTillaart self-assigned this Aug 5, 2024
@RobTillaart RobTillaart added documentation Improvements or additions to documentation enhancement New feature or request labels Aug 5, 2024
@RobTillaart RobTillaart merged commit 579dea8 into RobTillaart:develop Aug 14, 2024
RobTillaart added a commit that referenced this pull request Aug 16, 2024
Co-authored-by: Maik Menz 
- redo of **calibrate()** function, Kudos to Maik Menz.
- Fix #59 Added orientation arguments to calibrate function (#59)
- Fix #57 calibration error scaling
- update library.json
- improve initialization of gax, gay and gaz
- add **readRaw()** to improve calibrate()
- update readme.md 
- improve initialization
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

calibrate call offsets internal integration

2 participants