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
Log size
Large logs (>100 MB) may parse slowly, but everything runs locally — no server bandwidth is consumed. Start with a small log (10-30 MB) to get familiar.

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:
  1. Start with severity

    critical findings first — they point to direct causes of potential crashes.
  2. 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).

  3. 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

FindingPossible causeCheck
Vibration highUnbalanced props, worn motor bearings, loose frameCheck prop balance, motor temp, FC damping
EKF innovation failurePoor GPS signal, mag interference, IMU driftCheck GPS satellites, mag placement, IMU warmup
Cell voltage lowBattery aging, cold weather, excessive loadCompare flight time, resting voltage, internal resistance
CPU load highHigh logging rate, too many sensors, bad firmware configReduce logging rate, check sensor redundancy
Failsafe triggeredRC/telemetry loss, GPS loss, low batteryCheck flight state before/after trigger time

Step 4 — Export and share

Reports can be shared via link without login. Each finding links to official docs for deeper understanding. Full report data supports team retrospectives, firmware tuning, and flight controller selection.

Next step

Want to add your own check rules? Go to Write rules.