Coder Social home page Coder Social logo

victoralulema / analysis-of-mission-planner-log-files Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 2.0 12.7 MB

Python code to read, analyze and visualize *.log files containing flight data recorded by a Pixhawk autopilot

License: MIT License

Python 100.00%
pixhawk-controller pixhawk4 missionplanner python3 logfile-parser flight-controller pixhawk-mini uav drones uavs

analysis-of-mission-planner-log-files's Introduction

Analysis-of-Mission-Planner-log-files

Python code to read, analyze and visualize *.log files containing flight data recorded by a Pixhawk autopilot

Usage

From FileProcessing import LogFileProcessing

# Create a new instance for the LogFileProcessing class
analysis = LogFileProcessing('00000039.log')

# Enjoy, you can plot any Parameter and Subparameter VS Time
analysis.Plot('GPS', 'Alt')
analysis.Plot('GPS', 'Spd')
analysis.Plot('BARO', 'Alt')
analysis.Plot('BAT', 'Volt')
analysis.Plot('POWR', 'VServo')

# Get data for further analysis
y = analysis.Data['GPS']['Alt'][1:]     # This is the variable of interest
x = np.linspace(0, 100, len(y))         # This is the variable Time

Sample plots

  • Plot 1: Absolute flight altitude during the flight missionm, recorded by GPS alt text

  • Plot 2: Oscillation of battery voltage during the flight mission alt text

  • Plot 3: 3D Plot of the flight data: Mission profile VS power consumed alt text

Language

Python 3

Requirements

  • Numpy
  • Matplotlib

Example of log file

An example of a log file is provided as a compressed file. Uncompress the 00000039.7z file.

analysis-of-mission-planner-log-files's People

Contributors

victoralulema avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

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.