This is a tiny MATLAB plotting tool for PX4 ULog data, inspired by matulog. It allows you to customize and visualize the signals you are interested in. This tool has been tested on macOS and Windows 10, using MATLAB. Early versions can be obtained from SCUT-DuctedFan.
- MATLAB
The Python environment is managed automatically by the project. No separate Python or pyulog installation is required.
- Clone or download this repository.
- Copy your
.ulgfiles to/data
For the first use, initialize the required environment.
[KEY]: The setup script must be run from the project root directory
PX4_ulog_plottools (the folder that contains scripts/), not from inside
scripts/. It only has to be run once; the environment it creates is reused on
every later run.
Windows:
cd PX4_ulog_plottools .\scripts\setup_env.ps1
Linux:
cd PX4_ulog_plottools
./scripts/setup_env.shmacOS:
cd PX4_ulog_plottools
./scripts/setup_env_macos.shIf PowerShell refuses to run the script, allow it for the current terminal only and retry:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
- Open
load_data_main.min MATLAB and modify the User Configuration Area:
% --- User Configuration Area --------------------------------------------------------- % Specify filename here (can be relative path 'data/09_49_18' or absolute path) % [KEY]: If left empty (i.e. specifiedFileName = '';), a dialog will pop up for selection when the script runs. specifiedFileName = 'data/09_49_18'; % Supports with or without extension
Where 09_49_18 is the file name of ulog.
- Run the main plotting script
plot_setpoint_response.m.
An example of plotting the flight log of a dual tailsitter:











