Main Content

Flight Log Analyzer

Analyze UAV autopilot flight logs

Description

Flight Log Analyzerapp enables you to load and analyze UAV autopilot flight log data, as well as create a customized series of plots.

To use the app:

点击New Sessionto create a new session.

you can open saved app sessions by clickingOpen Session

you can save your progress to a MAT-file (。垫) by clickingSave Session

To load a ULOG file (。ulg) or MAT-file containing aulogreader对象,选择Import>From ULOG

加载tlog文件(。tlog) or MAT-file containing amavlinktlog对象,选择Import>来自Tlog.

选择Import>来自工作区to load aulogreaderobject,mavlinktlogobject, or custom log data and aflighthrogsignalmappping来自工作区的对象。

点击添加图to add a new figure for plotting.

您可以将一个或多个预定义或自定义图添加到绘图库的图形中。要查看绘图库中的所有可用图,请单击图库的右侧的向下箭头。

预定义的地块

  • 态度— Adds plots for roll, pitch, yaw angles, as well as body rotation rates

  • IMU— Adds plots for an accelerometer and gyroscope

  • Trajectory— Adds a 3-D plot for the UAV trajectory and reference trajectory

  • Velocity— Adds plots for velocity in theX-,y-, 和Z.-directions, as well as groundspeed and airspeed

  • Compass- 为磁力计,估计的偏航和课程角度添加图

  • Height— Adds a plot for GPS, a barometer, and estimated altitude

Custom Plots

  • 时间序列— Adds a blank plot for timeseries data

  • Xy- 为2-D数据添加一个空白图

  • XyZ.— Adds a blank plot for 3-D data

您可以通过单击删除所选的数字或绘图删除

点击地图视图to view or hide the satellite image map with logged GPS data.

笔记

这app requires internet access to retrieve satellite imagery.

选择世博会rt>世博会rt Figureto export the currently selected figure as a。figfile.

选择世博会rt>世博会rt Signal将信号导出为Matlab的时间表®workspace or a MAT-file (。垫).

打开飞行日志分析仪应用程序

  • MATLAB Toolstrip: On the应用标签,下面Control System Design and Analysis那点击Flight Log Analyzer

  • MATLAB command prompt: EnterflightLogAnalyzer

Examples

expand all

使用Flight Log Analyzer应用程序加载和分析从utog文件中的UAV自动驾驶仪飞行日志数据。

打开飞行日志分析仪应用程序

In the应用标签,下面Control System Design and Analysis,点击Flight Log Analyzer

Alternatively, you can use theflightLogAnalyzerfunction from the MATLAB command prompt:

flightLogAnalyzer

导入ulog文件

选择Import>From ULOG从ulog加载UAV飞行日志数据(。ulg) 文件。

Import ULOG file

By default, the app displays a satellite map with logged GPS data and the flight modes as a table. The flight modes, along with their corresponding start and end times, are tabulated in the飞行模式窗格。

带记录的GPS数据和飞行模式表的卫星地图

创建数字和图

  1. 要为绘图创建新图形,请单击添加图。该应用程序将空数字添加到绘图窗格中。

    Create figure

    您可以使用此过程继续添加其他数据。

  2. 这app adds a figure item corresponding to the new figure to the list in theFigures窗格。选择the check box to the left of the listed figure item to show all plots in the figure. Clear the check box to hide them.

  3. To rename a figure, select the associated figure item in theFigurespane, click the名称box in the细节pane, and type a new name.

  4. To delete a figure, select the figure item in theFigures窗格并点击删除在App ToolStrip上。删除图形删除图中的所有图。

创建图形启用绘图库。您可以将一个或多个预定义的图或自定义图添加到绘图库的图形中。

添加预定义的绘图

  1. 要将预定义的图添加到图形,请从绘图库中选择六个预定义图中的一个。

    Predefined plot gallery

  2. 例如,点击态度为图中添加旋转角度和旋转速率的图。

    姿态情节

    you can continue adding additional plots to a figure using this process.

  3. 该应用程序添加了与关联的数字项目下的新绘图对应的绘图项目Figures窗格。选择the check box to the left of the listed plot item to show the plot in the figure. Clear the check box to hide the plot.

  4. To rename a plot, select the associated plot item in theFigurespane, click the名称box in the细节pane, and type a new name.

  5. 选择theShow Legendcheck box in the细节窗格在情节上展示图例。清除复选框以隐藏图例。

  6. 删除一个阴谋,选择项Figures窗格并点击删除在App ToolStrip上。

Edit Plot Signals

  1. Signals窗格显示所选绘图中的信号作为表。这Signal Namecolumn contains the names of the signals. The subsequent columns each contain the data associated with that signal for a specific axis.

  2. 选择the check box in front of a signal item to show that signal in the plot, and clear the check box to hide the signal. The color around the check box is the color of the signal in the plot.

  3. To add a new signal to the selected plot, clickAdd Signal

    Signal pane

    要重命名信号,请双击信号Signal Namecolumn and type a new name.

  4. 要添加或更新信号数据,请双击相应列中所需信号的数据字段以启用Signal Browser窗格。从可用信号中选择。

  5. 从中选择其中一个信号Signal Browser窗格并点击Update

    信号浏览器窗格

  6. To delete a signal, select a signal from theSignals窗格并点击删除信号

Change the Plot Focus Using the Panner

  1. 对于TimeSeries Plots,使用Pannerto focus on data segments in theX-axis范围。这Panner是主图下方的条带绘图。要关注主图的一部分,请分别将红色和蓝色手柄拖动到所需数据段的开始和结束位置。

    泛纳窗格

  2. 您还可以通过键入新值来移动句柄剩下andRightboxes, beneath the strip plot. To reset the handles to their default values, clickReset Limits

  3. 这color next to each flight mode in the飞行模式窗格代表在条形图下的彩色条中的飞行模式Panner窗格。

添加自定义情节

  1. 要将自定义添加到图形,请从绘图库中选择三个自定义图中的一个。您可以将新图添加到以前创建的数字或新图形。

    Custom plot gallery

  2. 例如,点击XyZ.to add a blank plot for 3-D data.

    自定义XYZ图

  3. 要将信号添加到图中,请单击Add Signalin theSignals窗格。

  4. 要重命名信号,请双击信号Signal Namecolumn and type a new name.

  5. 将信号数据添加到X轴y轴那andZ.-Axis列,双击相应列中所需信号的数据字段以启用Signal Browser窗格。从可用信号中选择。

  6. For example, to create a trajectory plot in local east-north-up (ENU) Cartesian coordinates:

    1. 双击X轴所需信号的数据字段并找到localenu.信号组Signal Browser窗格。

    2. Expand the group and select the signalX

    3. 点击Updateto update the signal withX轴数据。

    4. Repeat these steps to update they轴andZ.-Axis田野yandZ.data, respectively, to create a 3-D trajectory plot.

    自定义三维轨迹图

选择世博会rt>世博会rt Signal将信号导出为The Matlab Workspace或Mat文件的时间表(。垫).

you can save theFlight Log Analyzer点击应用程序会话Save Session。该应用程序将应用程序的当前状态写入a。垫file that you can load by clickingOpen Session

相关例子

程序使用

expand all

flightLogAnalyzer打开Flight Log Analyzerapp, which enables you to analyze UAV autopilot flight logs.

更多关于

expand all

Introduced in R2020b