Difference between revisions of "Plotter"
HectoPascal (talk | contribs) |
HectoPascal (talk | contribs) (→Try it) |
||
Line 17: | Line 17: | ||
[[Image:plot_phi.png|Plotter desired and measured pitch]] | [[Image:plot_phi.png|Plotter desired and measured pitch]] | ||
The curve can be scaled by a factor by entering a value in the "Scale next by" entry. For example, to compare the desired and the measured pitch attitude, select "theta" from the "ATTITUDE" message with a (default) scale of 1., then set 57.3 (to convert radians into degrees) in the scale box and select "pitch" field from the "DESIRED" message. | The curve can be scaled by a factor and an offset (separated with a "+") can be added by entering a value in the "Scale next by" entry. For example the value "1.8+32" translates degrees Celcius into degrees Fahrenheit. For example, to compare the desired and the measured pitch attitude, select "theta" from the "ATTITUDE" message with a (default) scale of 1., then set 57.3 (to convert radians into degrees) in the scale box and select "pitch" field from the "DESIRED" message. | ||
To zoom on the curve, unselect the "Auto Scale" checkbox and choose the appropriate time/Y min and max. | To zoom on the curve, unselect the "Auto Scale" checkbox and choose the appropriate time/Y min and max. |
Revision as of 02:39, 27 November 2008
Basic Log Plotter
The plot program (in sw/logalizer/) is a facility to plot data recorded in a log. Main features:
- Multi-logs, multi-windows
- Multi-curves, constant curves
- Auto and manual display scaling
- Value scaling
- PNG snapshot
- Export of the flight track as a KML file for Google Earth
Try it
Launch the plotter with (or from the Paparazzi Center)
sw/logalizer/plot
from a shell. Open (CTRL-O) a log (from the var/logs directory). A menu for each aircraft is inserted in the menubar. Select a field from this menu to plot it.
The curve can be scaled by a factor and an offset (separated with a "+") can be added by entering a value in the "Scale next by" entry. For example the value "1.8+32" translates degrees Celcius into degrees Fahrenheit. For example, to compare the desired and the measured pitch attitude, select "theta" from the "ATTITUDE" message with a (default) scale of 1., then set 57.3 (to convert radians into degrees) in the scale box and select "pitch" field from the "DESIRED" message.
To zoom on the curve, unselect the "Auto Scale" checkbox and choose the appropriate time/Y min and max.
A curve can be deleted from the "Curves" menu.
Open another window from the File menu (CTRL-N): the log menu will be inserted into any new window.
Save a screenshot of the window as a PNG image from the File menu (CTRL-S).
Export a KML file from the log menu.