2014-04-29 02:26:32 +00:00
|
|
|
# See: http://wiki.flightgear.org/MapStructure
|
|
|
|
# Class things:
|
|
|
|
var name = 'APS';
|
2014-05-25 18:11:13 +00:00
|
|
|
var parents = [SVGSymbol];
|
2014-04-29 02:26:32 +00:00
|
|
|
var __self__ = caller(0)[0];
|
|
|
|
DotSym.makeinstance( name, __self__ );
|
|
|
|
|
2022-01-14 07:12:26 +00:00
|
|
|
var svg_path = "Nasal/canvas/map/Images/outlinedAirplane.svg";
|
2014-04-29 02:26:32 +00:00
|
|
|
var element_id = "airplane";
|
|
|
|
|
2014-05-25 18:11:13 +00:00
|
|
|
# Rotate with the main aircraft.
|
|
|
|
# Will have to be adapted if intended for use with other aircraft
|
|
|
|
# (but one could simply copy the layer for that).
|
|
|
|
var draw = func {
|
|
|
|
var rot = getprop("/orientation/heading-deg");
|
|
|
|
rot -= me.layer.map.getHdg();
|
|
|
|
me.element.setRotation(rot*D2R);
|
2014-04-29 02:26:32 +00:00
|
|
|
};
|
|
|
|
|