Giter VIP home page Giter VIP logo

flightrecordparsinglib's Introduction

DJIFlightRecord

What is DJIFlightRecord?

Flight record parsing library can parse version 13 flight log files. Convert DJI protocol data into time frame objects for presentation and analysis. An App Key is required to run the flight record parsing library.

How to apply for my App Key?

  1. Log in to the DJI Developer Technologies, click "CREATE APP", select "Open API" for App Type, fill in the "App Name", "Category" and "Description" by yourself, and click "CREATE".

  2. Activate the App through your personal email. After activation, click on the corresponding App information on your developer user page. The App Key is the SDK key parameter you need for the next steps.

Where does the app create the version 13 flight log?

  • App using Mobile SDK version 4.12

Architectural relationship

  • FRSample: Used to introduce how to call interfaces and parse data
  • FlightRecordStandardizationCpp: Used to convert C++ structure objects into Protobuf objects for cross-platform data transfer
  • FlightRecordStandardization: Used to record the raw data in 10 HZ, and present a view model of aircraft status
  • FlightRecordEngine: Used to parse cryptographic data to plaintext data
  • libtomcrypt/libtommath: Used to decrypt original documents
  • curl/openssl: Used to communicate with DJIService to get the decryption key

Folder structure

Here is an introduction to the role of file directories:

  • FR-V1.0.0/third-party/source: Source files storage location of the dependent third-party platform libraries. The specific compilation method needs to be solved by yourself.
  • FR-V1.0.0/third-party/header: Header files storage location of the dependent third-party platform libraries
  • FR-V1.0.0/third-party/cmake: For CMake to compile custom functions
  • FR-V1.0.0/third-party/build: Storage location of compiled products of third-party libraries, and it can only run on certain platforms
  • FR-V1.0.0/dji-flightrecord-engine/build: Compilation products for each platform used to house the dji-flightrecordengine library
  • FR-V1.0.0/dji-flightrecord-engine/source: Source code for the dji-flightrecordengine library
  • FR-V1.0.0/dji-flightrecord-kit/build: Compilation products for each platform used to house the dji-flightrecord-kit library
  • FR-V1.0.0/dji-flightrecord-kit/protoc: Protobuf files that house standardized data structures and can be used for cross-platform data transfer
  • FR-V1.0.0/dji-flightrecord-kit/source: Source code for the dji-flightrecord-kit library
  • FR-V1.0.0/images:Photo resources cited in README

How to run the sample?

Running the sample in Docker

Get docker

https://docs.docker.com/get-docker

Build docker image

docker build --build-arg SDK_KEY=your_app_key -t pf .

Docker run

docker run -v host_dir:container_dir pf "container_flight_record_dir"

Sample code: docker run -v $(pwd):/tmp pf "/tmp/V132_DJIFlightRecord_2020-06-18_[19-01-24].txt" > json_result.json

"> json_result.json" Redirecting the running result to a specified file

Running the Sample in Mac

Here is the Mac version of the Sample run creation process.

cd dji-flightrecord-kit/build/Mac/FRSample
sh generate.sh

// Which do you want to build? Please Input the number:
// 0: Executable 1: Project        input:
// input 1 can create a xcode project.
  1. Open dji-flightrecord-kit/build/Mac/FRSample/FRSample.xcodeproj
  2. Go to the main.cc file and configure the path of the file you want to parse to the variable file_path
  3. Configure the SDK key parameter of the "startRequestParser" interface and you are able to parse the file for the version of Flight Record 13

Running the sample in Ubuntu

cd dji-flightrecord-kit/build/Ubuntu/FRSample
sh generate.sh
./FRSample
  1. Go to the main.cc file and configure the path of the file you want to parse to the variable file_path
  2. Configure the SDK key parameter of the "startRequestParser" interface and you will be able to parse the file for the version of Flight Record 13
  3. Run the above script

How to compile the library?

Mac

cd dji-flightrecord-kit/build/Mac/FlightRecordStandardizationCpp
sh generate.sh
./FRSample
  1. Run the above script
  2. Get the library you want, the header files are stored in the dji-flightrecord-kit/source/FlightRecordStandardizationCpp/parser/DJIFRProtoParser.hpp

Ubuntu

cd dji-flightrecord-kit/build/Ubuntu/FlightRecordStandardizationCpp
sh generate.sh
./FRSample
  1. Run the above script
  2. Get the library you want, the header files are stored in the dji-flightrecord-kit/source/FlightRecordStandardizationCpp/parser/DJIFRProtoParser.hpp

Credits

FlightRecord is owned and maintained by DJI SDK.

Support

Expect more customized data, please let us know your data needs and application scenarios. You can get support from DJI with the following methods:

License

DJIFlightRecord is available under the MIT license. See the LICENSE.txt file for more info.

flightrecordparsinglib's People

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.