# 飞行报告
PX4 logs detailed aircraft state and sensor data, which can be used to analyze performance issues. This topic explains how you can download and analyse logs, and share them with the development team for review.
Tip 在一些司法管辖区,保留飞行日志是一项法律规定。
# 从飞行控制器下载日志
Logs can be downloaded using QGroundControl: Analyze View > Log Download.
# 分析日志
Upload the log file to the online Flight Review tool (http://logs.px4.io). After upload you'll emailed a link to the analysis page for the log.
Log Analysis using Flight Review 解释了怎样分析图形,这可以帮你确认/排除一些常见的问题:过大的震动、很差的PID调优、控制器饱和、车辆不平衡、GPS 噪声、等等。
Note There are many other great tools for visualising and analysing PX4 Logs. For more information see: Flight Analysis.
Tip If you have a constant high-rate MAVLink connection to the vehicle (not just a telemetry link) then you can use QGroundControl to automatically upload logs directly to Flight Review. For more information see Settings > MAVLink Settings > MAVLink 2 Logging (PX4 only).
# 给 PX4 开发人员共享日志文件
The Flight Review log file link can be shared for discussion in the support forums or a Github issue.
# Log Configuration
The logging system is configured by default to collect sensible logs for use with Flight Review.
Logging may further be configured using the SD Logging parameters. The parameters you are most likely to change are listed below.
参数 | 描述 |
---|---|
SDLOG_MODE | 日志模式定义日志何时开始和停止。 |
0
:解锁时开始记录直到加锁 (默认)。1
:系统启动开始记录直到加锁。2
:系统启动时开始记录直到断电。 | | SDLOG_PROFILE | 日志配置文件。 使用此功能可以进行不太常见的日志/分析 (例如,用于 EKF2 重放、用于 PID 和过滤器调优的高速率日志记录、热温度校准)。 | | SDLOG_MISSION | 创建非常小的额外“任务日志”。
此日志不 能使用 Flight Review,但当您需要一个用于地理标记或法规遵从性的小日志时,该日志非常有用。 |
Note Developers can further configure what information is logged via the logger module (you would use this, for example, if you want to log your own topics). For more information see: Logging (PX4 Developer Guide).