Skip to content

Fix fusion modes #76

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

Merged
merged 3 commits into from
Apr 6, 2021
Merged

Conversation

ViennaMike
Copy link
Contributor

Fixes issue #75 that I opened. When doing so, I found that the outputs mismatched what they should be for some additional modes as well, so I fixed them too:

  • Old code returned magnetometer values when in ACCONLY_Mode, fixed to add to excluded list
  • Old code only returned Euler angles, quaternions, linear acceleration, and gravity values when in absolute orientation fusion modes. They are also valid and should be returned for relative orientation fusion modes (IMUPLUS and M4G). Fixed.
  • The modes to output table in the comments was incomplete, as it did not list the relative orientation fusion modes. I added that column, clarified the language, and added a reference to the table in the datasheet to help maintainers and users.

@ViennaMike
Copy link
Contributor Author

My first time making a proposed change. When I look into the checks, the only details I see are "Consider using a generator instead 'tuple" for lines I haven't changed. If I need to change something, let me know what's needed. Thanks!

@ladyada ladyada requested a review from evaherrada April 2, 2021 22:43
@evaherrada
Copy link
Collaborator

@ViennaMike Yeah, so that's a check that recently got added to pylint. I'll fix that for you since it's something that I should have done anyway and then just run black.

If you do want to learn more about pylint and black go here: https://learn.adafruit.com/improve-your-code-with-pylint

Copy link
Collaborator

@evaherrada evaherrada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@evaherrada evaherrada merged commit 4a601ae into adafruit:master Apr 6, 2021
@ViennaMike
Copy link
Contributor Author

ViennaMike commented Apr 7, 2021 via email

@ViennaMike ViennaMike deleted the fix_fusion_modes branch April 7, 2021 19:39
@evaherrada
Copy link
Collaborator

No problem. Sweet. That sounds like a great addition.

adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Apr 9, 2021
Updating https://github.com/adafruit/Adafruit_CircuitPython_BNO055 to 5.2.6 from 5.2.5:
  > Merge pull request adafruit/Adafruit_CircuitPython_BNO055#76 from ViennaMike/fix_fusion_modes
  > "Increase duplicate code check threshold "

Updating https://github.com/adafruit/Adafruit_CircuitPython_AzureIoT to 2.3.5 from 2.3.4:
  > Moved a function around
  > Merge pull request adafruit/Adafruit_CircuitPython_AzureIoT#28 from jimbobbennett/master
  > "Increase duplicate code check threshold "

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bitmap_Font to 1.4.0 from 1.3.7:
  > Merge pull request adafruit/Adafruit_CircuitPython_Bitmap_Font#42 from FoamyGuy/add_forkawesome_example
  > "Increase duplicate code check threshold "

Updating https://github.com/adafruit/Adafruit_CircuitPython_BLE_Heart_Rate to 1.1.8 from 1.1.7:
  > Merge pull request adafruit/Adafruit_CircuitPython_BLE_Heart_Rate#13 from adafruit/tannewt-patch-1
  > "Increase duplicate code check threshold "

Updating https://github.com/adafruit/Adafruit_CircuitPython_BLE_iBBQ to 1.2.5 from 1.2.4:
  > Merge pull request adafruit/Adafruit_CircuitPython_BLE_iBBQ#5 from adafruit/tannewt-patch-1
  > "Increase duplicate code check threshold "

Updating https://github.com/adafruit/Adafruit_CircuitPython_BLE_MIDI to 1.0.5 from 1.0.4:
  > Merge pull request adafruit/Adafruit_CircuitPython_BLE_MIDI#7 from adafruit/tannewt-patch-1
  > "Increase duplicate code check threshold "

Updating https://github.com/adafruit/Adafruit_CircuitPython_Debouncer to 1.3.11 from 1.3.10:
  > Merge pull request adafruit/Adafruit_CircuitPython_Debouncer#27 from adafruit/linting
  > "Increase duplicate code check threshold "

Updating https://github.com/adafruit/Adafruit_CircuitPython_DisplayIO_Layout to 1.9.1 from 1.9.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_DisplayIO_Layout#33 from makermelissa/main

Updating https://github.com/adafruit/Adafruit_CircuitPython_FeatherWing to 1.14.2 from 1.14.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_FeatherWing#71 from makermelissa/master

Updating https://github.com/adafruit/Adafruit_CircuitPython_FunHouse to 1.1.0 from 1.0.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_FunHouse#6 from makermelissa/main
  > Merge pull request adafruit/Adafruit_CircuitPython_FunHouse#5 from makermelissa/main
  > Merge pull request adafruit/Adafruit_CircuitPython_FunHouse#3 from makermelissa/main

Updating https://github.com/adafruit/Adafruit_CircuitPython_HID to 4.3.0 from 4.2.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_HID#63 from JPEWdev/consumer-press-release

Updating https://github.com/adafruit/Adafruit_CircuitPython_MatrixPortal to 2.2.2 from 2.2.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_MatrixPortal#71 from makermelissa/master
  > "Increase duplicate code check threshold "

Updating https://github.com/adafruit/Adafruit_CircuitPython_MIDI to 1.3.5 from 1.3.4:
  > Merge pull request adafruit/Adafruit_CircuitPython_MIDI#32 from jepler/update-simpletest

Updating https://github.com/adafruit/Adafruit_CircuitPython_PIOASM to 0.4.0 from 0.3.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_PIOASM#20 from adafruit/jepler-frequency-too-low
  > Merge pull request adafruit/Adafruit_CircuitPython_PIOASM#17 from gamblor21/mov_operators

Updating https://github.com/adafruit/Adafruit_CircuitPython_Requests to 1.9.9 from 1.9.8:
  > Merge pull request adafruit/Adafruit_CircuitPython_Requests#76 from askpatrickw/fix-48
  > "Increase duplicate code check threshold "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants