-
Notifications
You must be signed in to change notification settings - Fork 568
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
examples/sensor_fusion: Support for Madgwick Fusion lib and example #2113
Conversation
@fdcavalcanti Mixed case could be ignored for the 3rd party library. But please fix other ci issue. |
c3b9758
to
5dbdf8e
Compare
Thanks for the code review! |
5dbdf8e
to
4b26e98
Compare
4b26e98
to
7b3c73f
Compare
Thanks again for the review @xiaoxiang781216 |
please add Kconfig to the .gitignore like other similar folder to fix the following warning:
|
7b3c73f
to
5390344
Compare
Gitignore added. |
Working read from mpu6050 - fixed makefile issues Succesfull yaw pitch roll reads Linter fixes - still erroring on mixed case Added inertial lib Fixed makefile to use inertial lib Kconfig fix
5390344
to
4915468
Compare
Summary
This PR adds support for the Madgwick Algorithm (Sensor Fusion Library) and adds an example that uses this lib with the MPU6050.
The library is under Application Configuration -> Inertial Libraries Support and requires MIT licenses to be enabled.
The example is available under Application Configuration -> Examples -> Sensor Fusion Example.
On compilation, it downloads the Fusion library from Github and the header files can be accessed using:
#include "Fusion/Fusion.h""
Next PRs should add board example and the example code will support other IMUs.
Shout out to @acassis for helping to set up the library entries!
Impact
New entry on Application Configuration and new example is available. This can be useful for those who use NuttX to control drones.
Testing
Testing works fine using MPU6050 on a Tiva-C development board.
I need some assistance on linter issues. Not sure how to solve the following error due to the Fusion library naming convention:
On
sensor_fusion_main.c
Any ideas on how to fix this?