2015-06-16 21:20:54 +00:00
|
|
|
# Copyright (C) 2015 Juan Vera
|
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
ki266.new(0);
|
|
|
|
aircraft.data.add("engines/engine[0]/egt-bug-norm");
|
|
|
|
|
|
|
|
var headingNeedleDeflection = "/instrumentation/nav/heading-needle-deflection";
|
|
|
|
var gsNeedleDeflection = "/instrumentation/nav/gs-needle-deflection-norm";
|
|
|
|
var staticPressure = "systems/static/pressure-inhg";
|
|
|
|
|
|
|
|
# Save the state of the avionics Radio control panel (according to its
|
|
|
|
# documentation)
|
|
|
|
aircraft.data.add(
|
|
|
|
"instrumentation/kma20/test",
|
|
|
|
"instrumentation/kma20/auto",
|
|
|
|
"instrumentation/kma20/com1",
|
|
|
|
"instrumentation/kma20/com2",
|
|
|
|
"instrumentation/kma20/nav1",
|
|
|
|
"instrumentation/kma20/nav2",
|
|
|
|
"instrumentation/kma20/adf",
|
|
|
|
"instrumentation/kma20/dme",
|
|
|
|
"instrumentation/kma20/mkr",
|
|
|
|
"instrumentation/kma20/sens",
|
|
|
|
"instrumentation/kma20/knob"
|
|
|
|
);
|
|
|
|
|
2018-05-17 11:58:44 +00:00
|
|
|
# NAV/COMM1 (according to its documentation)
|
2015-06-16 21:20:54 +00:00
|
|
|
aircraft.data.add(
|
|
|
|
"instrumentation/comm[0]/power-btn",
|
2018-05-17 11:58:44 +00:00
|
|
|
"instrumentation/comm[0]/volume-selected",
|
2015-06-16 21:20:54 +00:00
|
|
|
"instrumentation/comm[0]/frequencies/selected-mhz",
|
|
|
|
"instrumentation/comm[0]/frequencies/standby-mhz",
|
2015-07-24 17:37:16 +00:00
|
|
|
"instrumentation/comm[0]/frequencies/dial-khz",
|
|
|
|
"instrumentation/comm[0]/frequencies/dial-mhz",
|
2015-06-16 21:20:54 +00:00
|
|
|
"instrumentation/comm[0]/test-btn",
|
2019-06-18 20:31:13 +00:00
|
|
|
"instrumentation/comm[0]/channel-mode-selector",
|
2018-05-17 11:58:44 +00:00
|
|
|
"instrumentation/nav[0]/ident-audible",
|
2015-06-16 21:20:54 +00:00
|
|
|
"instrumentation/nav[0]/power-btn",
|
2015-07-24 17:37:16 +00:00
|
|
|
"instrumentation/nav[0]/volume",
|
2015-06-16 21:20:54 +00:00
|
|
|
"instrumentation/nav[0]/frequencies/selected-mhz",
|
|
|
|
"instrumentation/nav[0]/frequencies/standby-mhz",
|
2015-07-24 17:37:16 +00:00
|
|
|
"instrumentation/nav[0]/frequencies/dial-khz",
|
|
|
|
"instrumentation/nav[0]/frequencies/dial-mhz",
|
|
|
|
"instrumentation/nav[0]/radials/selected-deg",
|
2015-06-16 21:20:54 +00:00
|
|
|
);
|
|
|
|
|
2018-05-17 11:58:44 +00:00
|
|
|
# NAV/COMM2 (according to its documentation)
|
2015-06-16 21:20:54 +00:00
|
|
|
aircraft.data.add(
|
|
|
|
"instrumentation/comm[1]/power-btn",
|
2018-05-17 11:58:44 +00:00
|
|
|
"instrumentation/comm[1]/volume-selected",
|
2015-06-16 21:20:54 +00:00
|
|
|
"instrumentation/comm[1]/frequencies/selected-mhz",
|
|
|
|
"instrumentation/comm[1]/frequencies/standby-mhz",
|
2015-07-24 17:37:16 +00:00
|
|
|
"instrumentation/comm[1]/frequencies/dial-khz",
|
|
|
|
"instrumentation/comm[1]/frequencies/dial-mhz",
|
2015-06-16 21:20:54 +00:00
|
|
|
"instrumentation/comm[1]/test-btn",
|
2019-06-18 20:31:13 +00:00
|
|
|
"instrumentation/comm[0]/channel-mode-selector",
|
2018-05-17 11:58:44 +00:00
|
|
|
"instrumentation/nav[1]/ident-audible",
|
2015-06-16 21:20:54 +00:00
|
|
|
"instrumentation/nav[1]/power-btn",
|
2015-07-24 17:37:16 +00:00
|
|
|
"instrumentation/nav[1]/volume",
|
2015-06-16 21:20:54 +00:00
|
|
|
"instrumentation/nav[1]/frequencies/selected-mhz",
|
|
|
|
"instrumentation/nav[1]/frequencies/standby-mhz",
|
2015-07-24 17:37:16 +00:00
|
|
|
"instrumentation/nav[1]/frequencies/dial-khz",
|
|
|
|
"instrumentation/nav[1]/frequencies/dial-mhz",
|
|
|
|
"instrumentation/nav[1]/radials/selected-deg",
|
|
|
|
);
|
|
|
|
|
|
|
|
aircraft.data.add(
|
|
|
|
"instrumentation/dme/switch-position",
|
|
|
|
"instrumentation/dme/frequencies/source",
|
|
|
|
"instrumentation/dme/frequencies/selected-mhz",
|
|
|
|
);
|
|
|
|
|
|
|
|
# Instruments
|
|
|
|
aircraft.data.add(
|
|
|
|
"instrumentation/altimeter/setting-inhg",
|
|
|
|
"instrumentation/attitude-indicator/horizon-offset-deg",
|
|
|
|
"autopilot/settings/heading-bug-deg",
|
|
|
|
"instrumentation/heading-indicator/offset-deg",
|
|
|
|
"instrumentation/adf[0]/rotation-deg",
|
|
|
|
"instrumentation/adf[0]/frequencies/dial-1-khz",
|
|
|
|
"instrumentation/adf[0]/frequencies/dial-100-khz",
|
2015-06-16 21:20:54 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
# DME saves power-btn in ki266.nas
|
|
|
|
# ADF saves its properties in ki87.nas
|
|
|
|
# TRANSPONDER (KT76A)
|
|
|
|
aircraft.data.add(
|
|
|
|
"instrumentation/transponder/inputs/knob-mode",
|
|
|
|
"instrumentation/transponder/inputs/ident-btn",
|
|
|
|
"instrumentation/transponder/inputs/digit[0]",
|
|
|
|
"instrumentation/transponder/inputs/digit[1]",
|
|
|
|
"instrumentation/transponder/inputs/digit[2]",
|
|
|
|
"instrumentation/transponder/inputs/digit[3]",
|
|
|
|
"instrumentation/transponder/inputs/dimming-norm",
|
|
|
|
);
|
|
|
|
|
|
|
|
# Hobbs meter is saved in Nasal/engine.nas
|
|
|
|
# Save switches
|
|
|
|
aircraft.data.add(
|
|
|
|
"/controls/lighting/beacon",
|
|
|
|
"/controls/lighting/landing-lights",
|
|
|
|
"/controls/lighting/nav-lights",
|
|
|
|
"/controls/lighting/strobe",
|
2015-07-24 17:37:16 +00:00
|
|
|
"/controls/lighting/taxi-light",
|
|
|
|
"/controls/switches/magnetos",
|
|
|
|
"/controls/switches/master-bat",
|
|
|
|
"/controls/switches/master-alt",
|
|
|
|
"/controls/switches/master-avionics",
|
2018-09-02 19:58:05 +00:00
|
|
|
"/controls/switches/dome-red",
|
|
|
|
"/controls/switches/dome-white",
|
|
|
|
"/controls/lighting/gearled",
|
|
|
|
"/controls/lighting/instruments-norm",
|
|
|
|
"/controls/lighting/radio-norm",
|
|
|
|
"/controls/lighting/dome-white-norm",
|
2015-06-16 21:20:54 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
# Other controls
|
|
|
|
aircraft.data.add(
|
|
|
|
"/controls/anti-ice/engine/carb-heat",
|
|
|
|
"/controls/anti-ice/pitot-heat",
|
|
|
|
"/consumables/fuel/tank/selected",
|
2015-07-24 17:37:16 +00:00
|
|
|
"/consumables/fuel/tank[1]/selected",
|
2021-09-14 18:34:27 +00:00
|
|
|
"/consumables/fuel/tank[2]/selected",
|
|
|
|
"/consumables/fuel/tank[3]/selected",
|
|
|
|
"/controls/gear/brake-parking",
|
2015-07-24 17:37:16 +00:00
|
|
|
"/controls/flight/flaps",
|
|
|
|
"/controls/flight/elevator-trim",
|
|
|
|
"/controls/engines/current-engine/throttle",
|
|
|
|
"/controls/engines/current-engine/mixture",
|
|
|
|
"/controls/engines/engine[0]/primer-lever",
|
|
|
|
);
|
|
|
|
|
|
|
|
# Circuit breakers
|
|
|
|
aircraft.data.add(
|
2021-09-14 18:34:27 +00:00
|
|
|
#"/controls/circuit-breakers/aircond",
|
2015-07-24 17:37:16 +00:00
|
|
|
"/controls/circuit-breakers/autopilot",
|
|
|
|
"/controls/circuit-breakers/bcnlt",
|
|
|
|
"/controls/circuit-breakers/flaps",
|
|
|
|
"/controls/circuit-breakers/instr",
|
|
|
|
"/controls/circuit-breakers/intlt",
|
|
|
|
"/controls/circuit-breakers/landing",
|
|
|
|
"/controls/circuit-breakers/master",
|
|
|
|
"/controls/circuit-breakers/navlt",
|
|
|
|
"/controls/circuit-breakers/pitot-heat",
|
|
|
|
"/controls/circuit-breakers/radio1",
|
|
|
|
"/controls/circuit-breakers/radio2",
|
|
|
|
"/controls/circuit-breakers/radio3",
|
|
|
|
"/controls/circuit-breakers/radio4",
|
|
|
|
"/controls/circuit-breakers/radio5",
|
|
|
|
"/controls/circuit-breakers/strobe",
|
|
|
|
"/controls/circuit-breakers/turn-coordinator",
|
2018-09-02 19:58:05 +00:00
|
|
|
"/controls/circuit-breakers/cabin",
|
2020-04-01 17:43:35 +00:00
|
|
|
"/controls/circuit-breakers/gear-select",
|
|
|
|
"/controls/circuit-breakers/gear-advisory",
|
|
|
|
"/controls/circuit-breakers/hydraulic-pump",
|
2015-06-16 21:20:54 +00:00
|
|
|
);
|