Debian Codegraph @

Aircraft/Instruments-3d/FG1000/Nasal/Interfaces/GFC700Publisher.nas

raw
1 # Copyright 2019 Stuart Buchanan
2 # This file is part of FlightGear.
3 #
4 # FlightGear is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation, either version 2 of the License, or
7 # (at your option) any later version.
8 #
9 # FlightGear is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with FlightGear. If not, see <http://www.gnu.org/licenses/>.
16 #
17 # Emesary interface to publish autopilot configuration.
18 #
19
20 var GFC700Publisher = {
21
22 new : func ()
23 {
24 var obj = { parents : [
25 GFC700Publisher,
26 TriggeredPropertyPublisher.new(notifications.PFDEventNotification.FMSData) ] };
27
28 obj.addPropMap("AutopilotEnabled", "/autopilot/annunciator/autopilot-enabled");
29 obj.addPropMap("AutopilotFDEnabled", "/autopilot/annunciator/flight-director-enabled");
30 obj.addPropMap("AutopilotHeadingMode", "/autopilot/annunciator/lateral-mode");
31 obj.addPropMap("AutopilotHeadingModeArmed", "/autopilot/annunciator/lateral-mode-armed");
32 obj.addPropMap("AutopilotAltitudeMode", "/autopilot/annunciator/vertical-mode");
33 obj.addPropMap("AutopilotAltitudeModeArmed", "/autopilot/annunciator/vertical-mode-armed");
34 obj.addPropMap("AutopilotTargetPitch", "/autopilot/settings/target-pitch-deg");
35 obj.addPropMap("AutopilotTargetRoll", "/autopilot/settings/target-roll-deg");
36 obj.addPropMap("AutopilotTargetSpeed", "/autopilot/settings/target-speed-kt");
37 obj.addPropMap("AutopilotTargetVertical", "/autopilot/annunciator/vertical-mode-target");
38
39 return obj;
40 },
41
42 };