| 1 |
# Copyright (C) 2015 Juan Vera |
| 2 |
# |
| 3 |
# This program is free software: you can redistribute it and/or modify |
| 4 |
# it under the terms of the GNU General Public License as published by |
| 5 |
# the Free Software Foundation; either version 2 of the License, or |
| 6 |
# (at your option) any later version. |
| 7 |
# |
| 8 |
# This program is distributed in the hope that it will be useful, |
| 9 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 |
# GNU General Public License for more details. |
| 12 |
# |
| 13 |
# You should have received a copy of the GNU General Public License |
| 14 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 |
|
| 16 |
ki266.new(0); |
| 17 |
aircraft.data.add("engines/engine[0]/egt-bug-norm"); |
| 18 |
|
| 19 |
var headingNeedleDeflection = "/instrumentation/nav/heading-needle-deflection"; |
| 20 |
var gsNeedleDeflection = "/instrumentation/nav/gs-needle-deflection-norm"; |
| 21 |
var staticPressure = "systems/static/pressure-inhg"; |
| 22 |
|
| 23 |
# Save the state of the avionics Radio control panel (according to its |
| 24 |
# documentation) |
| 25 |
aircraft.data.add( |
| 26 |
"instrumentation/kma20/test", |
| 27 |
"instrumentation/kma20/auto", |
| 28 |
"instrumentation/kma20/com1", |
| 29 |
"instrumentation/kma20/com2", |
| 30 |
"instrumentation/kma20/nav1", |
| 31 |
"instrumentation/kma20/nav2", |
| 32 |
"instrumentation/kma20/adf", |
| 33 |
"instrumentation/kma20/dme", |
| 34 |
"instrumentation/kma20/mkr", |
| 35 |
"instrumentation/kma20/sens", |
| 36 |
"instrumentation/kma20/knob" |
| 37 |
); |
| 38 |
|
| 39 |
# NAV/COMM1 (according to its documentation) |
| 40 |
aircraft.data.add( |
| 41 |
"instrumentation/comm[0]/power-btn", |
| 42 |
"instrumentation/comm[0]/volume-selected", |
| 43 |
"instrumentation/comm[0]/volume-knobmode", |
| 44 |
"instrumentation/comm[0]/cutoff-signal-quality", |
| 45 |
"instrumentation/comm[0]/frequencies/selected-mhz", |
| 46 |
"instrumentation/comm[0]/frequencies/standby-mhz", |
| 47 |
"instrumentation/comm[0]/frequencies/dial-khz", |
| 48 |
"instrumentation/comm[0]/frequencies/dial-mhz", |
| 49 |
"instrumentation/comm[0]/test-btn", |
| 50 |
"instrumentation/comm[0]/channel-mode-selector", |
| 51 |
"instrumentation/nav[0]/ident-audible", |
| 52 |
"instrumentation/nav[0]/power-btn", |
| 53 |
"instrumentation/nav[0]/volume", |
| 54 |
"instrumentation/nav[0]/frequencies/selected-mhz", |
| 55 |
"instrumentation/nav[0]/frequencies/standby-mhz", |
| 56 |
"instrumentation/nav[0]/frequencies/dial-khz", |
| 57 |
"instrumentation/nav[0]/frequencies/dial-mhz", |
| 58 |
"instrumentation/nav[0]/radials/selected-deg", |
| 59 |
); |
| 60 |
|
| 61 |
# NAV/COMM2 (according to its documentation) |
| 62 |
aircraft.data.add( |
| 63 |
"instrumentation/comm[1]/power-btn", |
| 64 |
"instrumentation/comm[1]/volume-selected", |
| 65 |
"instrumentation/comm[1]/volume-knobmode", |
| 66 |
"instrumentation/comm[1]/cutoff-signal-quality", |
| 67 |
"instrumentation/comm[1]/frequencies/selected-mhz", |
| 68 |
"instrumentation/comm[1]/frequencies/standby-mhz", |
| 69 |
"instrumentation/comm[1]/frequencies/dial-khz", |
| 70 |
"instrumentation/comm[1]/frequencies/dial-mhz", |
| 71 |
"instrumentation/comm[1]/test-btn", |
| 72 |
"instrumentation/comm[0]/channel-mode-selector", |
| 73 |
"instrumentation/nav[1]/ident-audible", |
| 74 |
"instrumentation/nav[1]/power-btn", |
| 75 |
"instrumentation/nav[1]/volume", |
| 76 |
"instrumentation/nav[1]/frequencies/selected-mhz", |
| 77 |
"instrumentation/nav[1]/frequencies/standby-mhz", |
| 78 |
"instrumentation/nav[1]/frequencies/dial-khz", |
| 79 |
"instrumentation/nav[1]/frequencies/dial-mhz", |
| 80 |
"instrumentation/nav[1]/radials/selected-deg", |
| 81 |
); |
| 82 |
|
| 83 |
aircraft.data.add( |
| 84 |
"instrumentation/dme/switch-position", |
| 85 |
"instrumentation/dme/frequencies/source", |
| 86 |
"instrumentation/dme/frequencies/selected-mhz", |
| 87 |
); |
| 88 |
|
| 89 |
# Instruments |
| 90 |
aircraft.data.add( |
| 91 |
"sim/realism/instruments/realistic-instruments", |
| 92 |
"instrumentation/altimeter/setting-inhg", |
| 93 |
"instrumentation/attitude-indicator/horizon-offset-deg", |
| 94 |
"autopilot/settings/heading-bug-deg", |
| 95 |
"orientation/heading-deg-saved", |
| 96 |
"instrumentation/heading-indicator/align-deg", |
| 97 |
"instrumentation/heading-indicator/caged-flag", |
| 98 |
"instrumentation/heading-indicator/latitude-nut-setting", |
| 99 |
"instrumentation/heading-indicator/offset-deg-saved", |
| 100 |
"instrumentation/heading-indicator/error-deg-saved", |
| 101 |
"instrumentation/adf[0]/rotation-deg", |
| 102 |
"instrumentation/adf[0]/frequencies/dial-1-khz", |
| 103 |
"instrumentation/adf[0]/frequencies/dial-100-khz", |
| 104 |
); |
| 105 |
|
| 106 |
# DME saves power-btn in ki266.nas |
| 107 |
# ADF saves its properties in ki87.nas |
| 108 |
# TRANSPONDER (KT76A) |
| 109 |
aircraft.data.add( |
| 110 |
"instrumentation/transponder/inputs/digit[0]", |
| 111 |
"instrumentation/transponder/inputs/digit[1]", |
| 112 |
"instrumentation/transponder/inputs/digit[2]", |
| 113 |
"instrumentation/transponder/inputs/digit[3]", |
| 114 |
"instrumentation/transponder/inputs/dimming-norm", |
| 115 |
); |
| 116 |
|
| 117 |
# Hobbs meter is saved in Nasal/engine.nas |
| 118 |
# Save switches |
| 119 |
aircraft.data.add( |
| 120 |
"/controls/lighting/beacon", |
| 121 |
"/controls/lighting/landing-lights", |
| 122 |
"/controls/lighting/nav-lights", |
| 123 |
"/controls/lighting/strobe", |
| 124 |
"/controls/lighting/taxi-light", |
| 125 |
"/controls/switches/magnetos", |
| 126 |
"/controls/switches/master-bat", |
| 127 |
"/controls/switches/master-alt", |
| 128 |
"/controls/switches/master-avionics", |
| 129 |
"/controls/switches/dome-red", |
| 130 |
"/controls/switches/dome-white", |
| 131 |
"/controls/lighting/gearled", |
| 132 |
"/controls/lighting/instruments-norm", |
| 133 |
"/controls/lighting/radio-norm", |
| 134 |
"/controls/lighting/dome-white-norm", |
| 135 |
); |
| 136 |
|
| 137 |
# Other controls |
| 138 |
aircraft.data.add( |
| 139 |
"/controls/anti-ice/engine/carb-heat", |
| 140 |
"/controls/anti-ice/pitot-heat", |
| 141 |
"/consumables/fuel/tank/selected", |
| 142 |
"/consumables/fuel/tank[1]/selected", |
| 143 |
"/consumables/fuel/tank[2]/selected", |
| 144 |
"/consumables/fuel/tank[3]/selected", |
| 145 |
"/controls/gear/brake-parking", |
| 146 |
"/controls/flight/flaps", |
| 147 |
"/controls/flight/elevator-trim", |
| 148 |
"/controls/engines/engine[0]/throttle", |
| 149 |
"/controls/engines/engine[1]/throttle", |
| 150 |
"/controls/engines/current-engine/mixture", |
| 151 |
"/controls/engines/engine[0]/primer-lever", |
| 152 |
); |
| 153 |
|
| 154 |
# Circuit breakers |
| 155 |
aircraft.data.add( |
| 156 |
#"/controls/circuit-breakers/aircond", |
| 157 |
"/controls/circuit-breakers/autopilot", |
| 158 |
"/controls/circuit-breakers/bcnlt", |
| 159 |
"/controls/circuit-breakers/flaps", |
| 160 |
"/controls/circuit-breakers/instr", |
| 161 |
"/controls/circuit-breakers/intlt", |
| 162 |
"/controls/circuit-breakers/landing", |
| 163 |
"/controls/circuit-breakers/master", |
| 164 |
"/controls/circuit-breakers/navlt", |
| 165 |
"/controls/circuit-breakers/pitot-heat", |
| 166 |
"/controls/circuit-breakers/radio1", |
| 167 |
"/controls/circuit-breakers/radio2", |
| 168 |
"/controls/circuit-breakers/radio3", |
| 169 |
"/controls/circuit-breakers/radio4", |
| 170 |
"/controls/circuit-breakers/radio5", |
| 171 |
"/controls/circuit-breakers/strobe", |
| 172 |
"/controls/circuit-breakers/turn-coordinator", |
| 173 |
"/controls/circuit-breakers/cabin", |
| 174 |
"/controls/circuit-breakers/gear-select", |
| 175 |
"/controls/circuit-breakers/gear-advisory", |
| 176 |
"/controls/circuit-breakers/hydraulic-pump", |
| 177 |
); |