1
0
Fork 0
A320-family/Models/Instruments/ND/canvas/map/APS.symbol

20 lines
551 B
Text
Raw Normal View History

2019-10-14 16:48:35 +00:00
# See: http://wiki.flightgear.org/MapStructure
# Class things:
var name = 'APS';
var parents = [SVGSymbol];
var __self__ = caller(0)[0];
DotSym.makeinstance( name, __self__ );
var svg_path = "Nasal/canvas/map/Images/boeingAirplane.svg";
var element_id = "airplane";
# 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 {
2020-02-07 16:10:54 +00:00
var rot = getprop("orientation/heading-deg");
2019-10-14 16:48:35 +00:00
rot -= me.layer.map.getHdg();
me.element.setRotation(rot*D2R);
};