JuanIrache / DJI_SRT_Parser

Parses and interprets some data from DJI's Drones SRT metadata files.
https://tailorandwayne.com/dji-srt-viewer/
MIT License
47 stars 4 forks source link

Get Heading / Direction #78

Closed yeldarby closed 2 years ago

yeldarby commented 2 years ago

Hi, is it possible to get the compass heading at a given timestamp from the SRT files? And if not, maybe compute it from the direction of travel?

Also any possibility of getting the gimbal inclination?

JuanIrache commented 2 years ago

Generally, the subtitle logs don't include orientation. I think on some models they do, and they are labelled as F.PRY and G.PRY (PRY is pith, roll, yaw, and I suppose G stanfs for gimbal).

This library just extracts the data, but you could compute direction of travel in your own code by comparing consecutive coordinates.

Juan Irache Independent Software Developer https://goprotelemetryextractor.com/ https://prototyping.barcelona/

On Wed, 7 Sept 2022 at 05:57, Brad Dwyer @.***> wrote:

Hi, is it possible to get the compass heading at a given timestamp from the SRT files? And if not, maybe compute it from the direction of travel?

Also any possibility of getting the gimbal inclination?

— Reply to this email directly, view it on GitHub https://github.com/JuanIrache/DJI_SRT_Parser/issues/78, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABIX773XO7LXPFR676UIQFLV5AHBXANCNFSM6AAAAAAQGMATY4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

yeldarby commented 2 years ago

Thanks! I ended up pulling flight logs via Airdata which had the full telemetry that let me match up my video with a map.

https://user-images.githubusercontent.com/870796/189566872-7fd4bf61-cbe2-417d-80f3-51083a05e3a7.mp4

JuanIrache commented 2 years ago

Really nice result!