GithubHelp home page GithubHelp logo

Blackbox data import about gyroflow HOT 6 CLOSED

elvinc avatar elvinc commented on May 24, 2024
Blackbox data import

from gyroflow.

Comments (6)

ElvinC avatar ElvinC commented on May 24, 2024

Hey,

The purpose of blackbox_extract.py is to take in a path to a .bbl file, and extract the timestamped gyro data. The exact format isn't that important since everything can be converted/scaled, but the format I've been using is an Nx4 numpy array, where each of the N rows consists of [time, gyroX,gyroY,gyroZ], where time is in seconds and rate in rad/s. Feel free to implement it if you want :)

Also, since orangebox and crisp (as suggested here) are GPL licensed, the same has to be the case for this project for compatibility. I'll change it shortly.

Thanks

from gyroflow.

Nikel9O avatar Nikel9O commented on May 24, 2024

Hi,
i've finally made a flight with my new (used) hero 6. i thought this might be intresting/useful to you:
immagine
It's the shape of gopro gyro x data (extracted using your script) and blackbox gyro x data from the same flight.
they seem to be quite different

while z seems relatively similar:
immagine

from gyroflow.

ElvinC avatar ElvinC commented on May 24, 2024

That's very interesting! Thanks a lot. I believe the coordinate system used for the gopro data is oriented differently compared to the standard betaflight one. The spikes in the blue gopro datapoints in your first graph seem to correspond the betaflight data in the second graph, just reversed. You can try to match those up to see how close they are. From a glance they do seem rather similar, so fingers crossed that it's close enough to be useful. The camera uptilt means that there's a coupling of yaw and roll in the unprocessed data, so I guess looking at the pitch axis gives the most fair comparison between the data.

I'll also try to make some further progress in the image processing code this weekend.

from gyroflow.

Nikel9O avatar Nikel9O commented on May 24, 2024

You're right! Seems that the data just needs to be rotated (gopro x):
immagine

the scheme between gopro gpmf and betaflight seems to be:
x => -y
y => z
z => -x

this is y:
immagine

and this is y accounting for a -25 degree rotation on the data (my camera angle):
immagine

I'd say they're pretty close!

from gyroflow.

ElvinC avatar ElvinC commented on May 24, 2024

That's awesome and really encouraging. Nice work! Also, I think I'm getting close to having the gyro video synchronization stuff working.

from gyroflow.

b020 avatar b020 commented on May 24, 2024

Woa. Really nice job. I am subscribed to this project because I am really interested to see it working and use it on my weekend hobby flights footages. Unfortunately I am out of time to help with data and coding, since I am working a lot lately, I would have to learn python(currently I am a java dev), and I have a new born baby at home that drains out almost every spare minute I have left (lol).

Greetings from Brazil.
Keep up the good work, guys.

from gyroflow.

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.