Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for reading quaternions #29

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

AnalyticEquestrian
Copy link

This branch added methods to the lib in the familiar style to read quaternions representing absolute orientation from the BNO055. Generally speaking, quaternions are a better choice for representing absolute orientation than Euler angles, since they don't suffer from gimbal lock. Code is inspired (much!) by Adafruit BNO055 lib.

Methods for quaternion, last poll var
Added methods for reading quaternion, inspired by Adafruit BNO055 lib
@CLAassistant
Copy link

CLAassistant commented Oct 11, 2024

CLA assistant check
All committers have signed the CLA.

@per1234 per1234 added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Oct 12, 2024
@per1234 per1234 mentioned this pull request Oct 12, 2024
Copy link

Memory usage change @ 722bcd9

Board flash % RAM for global variables %
arduino:mbed_portenta:envie_m7 N/A N/A N/A N/A
arduino:mbed_portenta:envie_m7:target_core=cm4 N/A N/A N/A N/A
arduino:samd:mkr1000 🔺 +32 - +32 +0.01 - +0.01 🔺 +4 - +4 +0.01 - +0.01
arduino:samd:mkrfox1200 🔺 +32 - +32 +0.01 - +0.01 🔺 +4 - +4 +0.01 - +0.01
arduino:samd:mkrgsm1400 🔺 +32 - +32 +0.01 - +0.01 🔺 +4 - +4 +0.01 - +0.01
arduino:samd:mkrnb1500 🔺 +32 - +32 +0.01 - +0.01 🔺 +4 - +4 +0.01 - +0.01
arduino:samd:mkrvidor4000 🔺 +32 - +32 +0.01 - +0.01 🔺 +4 - +4 +0.01 - +0.01
arduino:samd:mkrwan1300 🔺 +32 - +32 +0.01 - +0.01 🔺 +4 - +4 +0.01 - +0.01
arduino:samd:mkrwan1310 🔺 +32 - +32 +0.01 - +0.01 🔺 +4 - +4 +0.01 - +0.01
arduino:samd:mkrwifi1010 🔺 +32 - +32 +0.01 - +0.01 🔺 +4 - +4 +0.01 - +0.01
arduino:samd:mkrzero 🔺 +32 - +32 +0.01 - +0.01 🔺 +4 - +4 +0.01 - +0.01
Click for full report table
Board examples/SimpleAccelerometer
flash
% examples/SimpleAccelerometer
RAM for global variables
% examples/SimpleEulerAngles
flash
% examples/SimpleEulerAngles
RAM for global variables
% examples/SimpleGyroscope
flash
% examples/SimpleGyroscope
RAM for global variables
% examples/SimpleMagnetometer
flash
% examples/SimpleMagnetometer
RAM for global variables
%
arduino:mbed_portenta:envie_m7 N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A
arduino:mbed_portenta:envie_m7:target_core=cm4 N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A
arduino:samd:mkr1000 32 0.01 4 0.01 32 0.01 4 0.01 32 0.01 4 0.01 32 0.01 4 0.01
arduino:samd:mkrfox1200 32 0.01 4 0.01 32 0.01 4 0.01 32 0.01 4 0.01 32 0.01 4 0.01
arduino:samd:mkrgsm1400 32 0.01 4 0.01 32 0.01 4 0.01 32 0.01 4 0.01 32 0.01 4 0.01
arduino:samd:mkrnb1500 32 0.01 4 0.01 32 0.01 4 0.01 32 0.01 4 0.01 32 0.01 4 0.01
arduino:samd:mkrvidor4000 32 0.01 4 0.01 32 0.01 4 0.01 32 0.01 4 0.01 32 0.01 4 0.01
arduino:samd:mkrwan1300 32 0.01 4 0.01 32 0.01 4 0.01 32 0.01 4 0.01 32 0.01 4 0.01
arduino:samd:mkrwan1310 32 0.01 4 0.01 32 0.01 4 0.01 32 0.01 4 0.01 32 0.01 4 0.01
arduino:samd:mkrwifi1010 32 0.01 4 0.01 32 0.01 4 0.01 32 0.01 4 0.01 32 0.01 4 0.01
arduino:samd:mkrzero 32 0.01 4 0.01 32 0.01 4 0.01 32 0.01 4 0.01 32 0.01 4 0.01
Click for full report CSV
Board,examples/SimpleAccelerometer<br>flash,%,examples/SimpleAccelerometer<br>RAM for global variables,%,examples/SimpleEulerAngles<br>flash,%,examples/SimpleEulerAngles<br>RAM for global variables,%,examples/SimpleGyroscope<br>flash,%,examples/SimpleGyroscope<br>RAM for global variables,%,examples/SimpleMagnetometer<br>flash,%,examples/SimpleMagnetometer<br>RAM for global variables,%
arduino:mbed_portenta:envie_m7,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A
arduino:mbed_portenta:envie_m7:target_core=cm4,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A
arduino:samd:mkr1000,32,0.01,4,0.01,32,0.01,4,0.01,32,0.01,4,0.01,32,0.01,4,0.01
arduino:samd:mkrfox1200,32,0.01,4,0.01,32,0.01,4,0.01,32,0.01,4,0.01,32,0.01,4,0.01
arduino:samd:mkrgsm1400,32,0.01,4,0.01,32,0.01,4,0.01,32,0.01,4,0.01,32,0.01,4,0.01
arduino:samd:mkrnb1500,32,0.01,4,0.01,32,0.01,4,0.01,32,0.01,4,0.01,32,0.01,4,0.01
arduino:samd:mkrvidor4000,32,0.01,4,0.01,32,0.01,4,0.01,32,0.01,4,0.01,32,0.01,4,0.01
arduino:samd:mkrwan1300,32,0.01,4,0.01,32,0.01,4,0.01,32,0.01,4,0.01,32,0.01,4,0.01
arduino:samd:mkrwan1310,32,0.01,4,0.01,32,0.01,4,0.01,32,0.01,4,0.01,32,0.01,4,0.01
arduino:samd:mkrwifi1010,32,0.01,4,0.01,32,0.01,4,0.01,32,0.01,4,0.01,32,0.01,4,0.01
arduino:samd:mkrzero,32,0.01,4,0.01,32,0.01,4,0.01,32,0.01,4,0.01,32,0.01,4,0.01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants