Analyze accelerometer vibration from a PX4 ULog, compute PSDs, spectrograms, identify notch filter targets, and compare Z velocity estimation. Use when the user wants to evaluate accel vibration or tune notch filter parameters.
Run the accel vibration analyzer on the given ULog file and interpret the results.
logs/ in this repo (by filename match).~/Downloads/.logs/<log-name>/, copy the .ulg there.logs/<log-name>/ directory.python3 scripts/accel_vibration.py <resolved-log-path> --output-dir <logs/log-name/>
xdg-open <output-dir>/analysis.pdf). It contains all plots plus an interpretation guide as the first page. Read specific pages from the PDF with the Read tool (pages parameter) to interpret them: page 1 = guide, page 2 = vibration summary, page 3 = spectrogram, page 4 = PSD, page 5 = Z velocity.IMU_ACC_DNF_EN (0=off, 1=ESC RPM, 2=FFT, 3=both)IMU_ACC_DNF_BW (bandwidth — wider catches offset peaks, narrower preserves signal)IMU_ACC_DNF_HMC (harmonics — set to cover all visible harmonic peaks)IMU_ACC_NF0_FRQ/BW, IMU_ACC_NF1_FRQ/BW (static notches for fixed resonances)IMU_ACCEL_CUTOFF (LPF — usually leave at 30 Hz unless specific reason to change)logs/<log-name>/README.md catalogue entry per the convention in CLAUDE.md.sensor_accel_fifo (raw pre-filter data) for the vibration spectrum. This shows what the filters need to deal with, not what passes through them.accel_vibration_metric between flights or look at EKF Z velocity error.logs/.