Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.17 KB

File metadata and controls

40 lines (31 loc) · 1.17 KB

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.