Log analysis guide
Upload PX4 / ArduPilot logs, read analysis reports, troubleshoot flight issues — from zero to independent diagnosis.
Log analysis is NextPilot's built-in core capability: upload a PX4 .ulg or ArduPilot .bin, the engine runs
deterministic parsing in your browser, rule checks (currently covering PX4) and fault-knowledge-base matching
produce structured findings, and the LLM translates them into a readable report. The raw
log never leaves your browser.
How it works
.ulg / .bin 上传 → Pyodide 解析(浏览器端) → 规则引擎逐条检查 → 结构化 findings
↓
服务器 LLM → 中文报告 → 页面展示
Key point: the LLM only translates — it never touches a number. Every finding's logic, threshold, and tag are computed by the deterministic rule engine in the browser. This guarantees the same log always produces the same results.
Step 1 — Upload
Open the analysis page and drag or select a log file. Currently supported log types:
- PX4 .ulg — Full support with 31 built-in rules covering vibration, EKF, power, GPS, attitude, airspeed, and more
- ArduPilot .bin — Parsing and structured report supported (system info, params, mode/arming intervals, GPS track); rule checks are being extended
Step 2 — Read the report
The report consists of:Findings
Each finding has:| 字段 | Meaning |
|---|---|
| 严重度 | critical(严重)/ warning(警告)/ info(信息) |
| 检查项 | Which rule it maps to (e.g. ekf_innovations, vibration) |
| 标题 | One-line summary of the issue |
| 建议 | Actionable troubleshooting direction |
| 数值 | The specific data that triggered the finding (e.g. CPU peak 97%, cell min 3.2V) |
Flight track map
A map of the flight track from GPS data — flight path, altitude changes, and potential anomaly zones.Parameter charts
Time-series charts for key parameters: vibration, attitude, battery voltage, EKF innovation test ratios, etc. Hover for values.
Step 3 — Diagnose
After getting the report, troubleshoot in this order:-
Start with severity
criticalfindings first — they point to direct causes of potential crashes. -
Cross-validate
A single finding may be a symptom. "Cell voltage low" could be aging battery, cold weather, or excessive load. Cross-check against flight phase (arm → takeoff → cruise → land).
-
Compare with healthy logs
A healthy log from the same aircraft and firmware version is the best baseline. Put two reports side by side — the differences usually point to the problem.
Common findings and remedies
| Finding | Possible cause | Check |
|---|---|---|
| Vibration high | Unbalanced props, worn motor bearings, loose frame | Check prop balance, motor temp, FC damping |
| EKF innovation failure | Poor GPS signal, mag interference, IMU drift | Check GPS satellites, mag placement, IMU warmup |
| Cell voltage low | Battery aging, cold weather, excessive load | Compare flight time, resting voltage, internal resistance |
| CPU load high | High logging rate, too many sensors, bad firmware config | Reduce logging rate, check sensor redundancy |
| Failsafe triggered | RC/telemetry loss, GPS loss, low battery | Check flight state before/after trigger time |