Read-only mirror of https://github.com/ethz-asl/fw_px4_plottools — ETHZ ASL. Issues & pull requests at the source.
  • HTML 53.8%
  • MATLAB 46.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2023-01-05 10:44:30 +01:00
01_draw_functions Adding dynamic airflow calibration 2023-01-05 10:44:30 +01:00
02_helper_functions Add output plots to airflow calibration 2023-01-05 10:44:30 +01:00
03_kmltoolbox_v2.6 Add first version of the plotting tools. 2017-10-05 17:16:11 +02:00
04_log_files Add first version of the plotting tools. 2017-10-05 17:16:11 +02:00
05_csv_files Add first version of the plotting tools. 2017-10-05 17:16:11 +02:00
06_mat_files Add first version of the plotting tools. 2017-10-05 17:16:11 +02:00
07_kmz_files Add first version of the plotting tools. 2017-10-05 17:16:11 +02:00
08_analysis_tools Support plotting either two or three flight paths in the flight path animation 2023-01-05 10:44:30 +01:00
.gitignore Fix pressure loss compensation and topic matching. 2017-10-27 10:12:34 +02:00
logconv.m import logged params 2019-04-30 19:12:43 +02:00
README.md Update README 2017-11-14 13:03:58 +01:00

fw_px4_plottools

Plotting tools for reading and showing Pixhawk uLog logs in Matlab.

Installation

  1. The pyulog package needs to be installed: pip install pyulog

logconv.m

Script to convert .ulg files first to .csv files and then import it to matlab. Adjust the necessary parameters such as file name, loading mode or if the plots should be displayed. The log file must be placed in the 04_log_files folder. If any plots should be displayed adjust the necessary parameters in 01_draw_functions/DisplayPX4LogData.m. A successful run of the script produces following outputs:

  1. The desired plots
  2. The .csv files in the 05_csv_files folder if they should be kept
  3. The saved sysvector in the 06_mat_files folder
  4. The generated .kmz file for Google Earth in 07_kmz_files folder if the global position estimation plots are executed.

Adding new Plots

  1. Generate the plotting function in 01_draw_functions/01_subfunctions
  2. Add the function call and parameters, if required, in the DisplayPX4LogData.m script.
  3. If the axes should be linked to other figures add the figure indexes in the LinkFigureAxes.m function.