I'm developing an app that processes Phantom 4 flight logs autonomously in the background using Python, and I've run into a problem with the flight log formats. While DJI apps save flight logs in a folder called "DJI" that other apps can access, alternative apps like Litchi store the logs in CSV format within the Android/data folder, which is restricted to other applications. This means that I can only use a DJI app (DJ Go/ Pilot) for this purpose, but the flight logs are saved in an encrypted .DAT format that Python can't directly read.
I've tried using the DROP code from GitHub (GitHub - dumbledrone/DROP) to convert the .DAT into .CSV data, but the files it produces are incomplete—they lack some parameters for every timestamp, and the specific timestamp for each measurement isn't available. What I'm really after is a Python-based solution that can convert the encrypted .DAT files from the Phantom 4 into a fully detailed CSV (or JSON) format, similar to what the Litchi app outputs.
If anyone has any ideas, suggestions, or code that can achieve this conversion, I'd greatly appreciate your help.
I've tried using the DROP code from GitHub (GitHub - dumbledrone/DROP) to convert the .DAT into .CSV data, but the files it produces are incomplete—they lack some parameters for every timestamp, and the specific timestamp for each measurement isn't available. What I'm really after is a Python-based solution that can convert the encrypted .DAT files from the Phantom 4 into a fully detailed CSV (or JSON) format, similar to what the Litchi app outputs.
If anyone has any ideas, suggestions, or code that can achieve this conversion, I'd greatly appreciate your help.