Giter Club home page Giter Club logo

Comments (8)

Lauszus avatar Lauszus commented on June 19, 2024

Thanks :)
No I am not currently planning on it, but if you want to you are more than welcome to do so.

from launchpadflightcontroller.

PAk-CatchFire avatar PAk-CatchFire commented on June 19, 2024

Thanks @Lauszus. Finally I was able to port it for 129X and 123X devices. But unfortunatelly, the yaw, raw and theta I am getting are not correct.

Would you mind to take a look on it? All the code is on my Github

https://github.com/PAk-CatchFire/MPU9250-Tivaware

Regards

from launchpadflightcontroller.

Lauszus avatar Lauszus commented on June 19, 2024

@PAk-CatchFire what exactly do you want me to look at? If you want to use the driver for the MPU-9250, then you can just use mine. But you will have to change the I2C driver for the TM4C129x family: https://github.com/Lauszus/LaunchPadFlightController/blob/master/src/I2C.c.

from launchpadflightcontroller.

Lauszus avatar Lauszus commented on June 19, 2024

Btw the TM4c129x family is not the "latest family", but simply a different family, which purpose is to use it for IoT etc.

from launchpadflightcontroller.

PAk-CatchFire avatar PAk-CatchFire commented on June 19, 2024

Ok, the129x I2C driver is one part I already implemented.

In which file is located your MPU-9250 driver? Is it spreaded through some files?

Thanks

from launchpadflightcontroller.

Lauszus avatar Lauszus commented on June 19, 2024

As the MPU-9250 is the same sensor as the MPU-6500, but just with a AK8963 magnetometer inside. I simply use the MPU-6500 driver: https://github.com/Lauszus/LaunchPadFlightController/blob/master/src/MPU6500.c and then a dedicated driver for the magnetometer: https://github.com/Lauszus/LaunchPadFlightController/blob/master/src/AK8963.c.

Here is the commit that added support for the MPU-9250: 527d393.

You shouldn't have to modify the driver in any way, as I use the TivaWare librayr: https://github.com/Lauszus/LaunchPadFlightController/tree/master/lib. The part is then simply set in the Makefile: https://github.com/Lauszus/LaunchPadFlightController/blob/master/src/Makefile#L28.

You might want to use different pins for the I2C interface: https://github.com/Lauszus/LaunchPadFlightController/blob/master/src/I2C.c, that is all you might have to change.

from launchpadflightcontroller.

PAk-CatchFire avatar PAk-CatchFire commented on June 19, 2024

Thank you Lauszus, I was checking your drivers and they work fine for the accelerometer & gyro part, however the magnetometer gets stuck reading 0 values. So i used the function in my code:
https://github.com/PAk-CatchFire/MPU9250-Tivaware/blob/master/PAk_MPU9250_Tivaware/MPU9250/MPU9250.c#L472

I have improved my readings because I had some error on the scale, however my result is jittering (probably the filter is not good enough).

I haven't seen that you use any of the traditional Madgwick/Mahony QuaternionUpdate....are you using your own? Is it worth it?

Best Regards

from launchpadflightcontroller.

Lauszus avatar Lauszus commented on June 19, 2024

I am just using a complimentary filter: https://github.com/Lauszus/LaunchPadFlightController/blob/master/src/IMU.c.

from launchpadflightcontroller.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.