You are on page 1of 2

Graphing Live Data

module load graph

A module to plot (graph) data in real!me from the UAV. It is useful for looking for !me-varying
pa"erns in the data

A#er loading, new plots can be created by:

graph dataname

Mul!ple items can be added at once. Use the :2 to specify using the right ver!cal axis.

graph VFR_HUD.alt VFR_HUD.airspeed:2

Arbitrary mathema!cal func!ons can also be used.

graph "(VFR_HUD.alt/1000.0)+5"

Addi!onally, the !mespan and !ck resolu!on of the graph window can be changed. Use graph

timespan X to change the !mespace to X seconds and graph tickresolution Y to change the !ck
resolu!on to Y seconds.

There are two global se$ngs for graphs: !mespan and !ckresolu!on.

To set the !mespan along the horizontal axis (in seconds):

graph timespan 20

To set the tickresolution along the horizontal axis (1/<number of ticks>):

graph timespan 0.2…

You might also like