Skip to content

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

License

Notifications You must be signed in to change notification settings

VictorAlulema/Analysis-of-Mission-Planner-log-files

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages