Code Monkey home page Code Monkey logo

Comments (8)

superjax avatar superjax commented on June 18, 2024

I completely agree. Being able to use the newest hardware is definitely something I would like to get to, and you're right the baseflight/cleanflight hardware drivers are pretty tangled.

I'm actually currently working on rebuilding the entire hardware library in hopes of replacing Breezy. So far, it's a lot cleaner than cleanflight (lol), and I have been able to at least get printf support on F1, F3, and F4 boards. This weekend, I'll finish I2C, and over the holidays I expect to finish the drivers for all three boards. This would include the SPI driver for the MPU 6500.

The primary motivation for the move is to eliminate the crazy baseflight drivers with something less confusing/more extensible with a noticable reduction of #defines. I would also especially like to move to an MIT/BSD3 license, so I can use it at work and in proprietary projects without any possible legal ramifications.

Unfortunately, I don't see myself working on modifying Breezy to support the rev6. I can, however, make sure we support rev6 on the newest driver implementation.

Where did you get your rev6 board? I don't actually have one, but I should probably buy one because you're not the first who has requested support.

from rosflight_firmware.

aokholm avatar aokholm commented on June 18, 2024

I will experiment a bit to see how difficult it is to get working, I'm still learning about the STM32 family. If I get anywhere with the Rev6 I will share what I learned! I also just ordered a Rev. 5 to makes things easier in the meantime :)

I'm currently in Shenzhen, China to work on this project (for one week more). So the best option here is to pickup the boards from Taobao - the local eBay.

Thanks!

from rosflight_firmware.

superjax avatar superjax commented on June 18, 2024

I just did some reading, and it looks like the MPU6500 is on the I2C lines, not SPI like I suspected. In that case, then there is almost no difference. In fact, I've used the 6500 in another project over I2C and I am pretty sure that I used exactly the same code as the 6050. Pretty sure that the rev6 has a different EXTI pin though. You'll notice in the code, I specify a board rev to the configuration, this is because that external interrupt pin from the MPU moves around from revision to revision.

I'd be happy to help out if you get stuck, but based on that, it shouldn't be super hard.

from rosflight_firmware.

pryre avatar pryre commented on June 18, 2024

Hi all, I've been looking into a solution for a university project later on in 2017, definitely leaning towards getting a heap of Naze32r6 boards an working with them. Hopefully I can get my hands on a few in the new year to help out with debugging and any other business that comes up.

from rosflight_firmware.

aokholm avatar aokholm commented on June 18, 2024

The interface of the 6500 is indeed very similar to the 6050. Even the interrupt pin has stayed the same between V5 and V6. So I did get it to run with interrupt functionality on with a simple modified Breezy example. I'm not sure what has actually changed in terms of the interface. Haven't tested with ROSflight yet, since I ran into a bit of trouble with ROS as well. I will probably continue working with the rev5 I acquired until the whole setup is working :)

from rosflight_firmware.

superjax avatar superjax commented on June 18, 2024

I just read this and thought it was pertinent to this discussion: I hadn't realized that the MPU6050 was actually a better sensor than the 6500 for most UAV purposes.

original link

The MPU-6050 is higher power, lower noise, and larger package versus the MPU-6500. Most of your code should port over, but some low power features are different and will need to be recoded in. Basic data acquisitions shouldn’t have changed.

from rosflight_firmware.

superjax avatar superjax commented on June 18, 2024

Has this been resolved?

from rosflight_firmware.

aokholm avatar aokholm commented on June 18, 2024

Haven't made any progress since my last message. Did get the 6500 to work (at least some simple test scripts), but then got stuck getting ROS running on our OrangePi's.

Here is my commit that adds support for the 6500 MPU (to Breezy). It's a fork on BreezySTM32 repository. kitextech/BreezySTM32@6143015

We ultimately decided to try our luck with the PX4 system, since it could be more compact and it did have some useful features :). Still hope this project takes off!

from rosflight_firmware.

Related Issues (20)

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.