...
|
...
|
@@ -129,48 +129,49 @@ var APClass = {
|
129
|
129
|
}
|
130
|
130
|
},
|
131
|
131
|
L: [
|
|
132
|
+ func,
|
132
|
133
|
func {
|
133
|
|
- var ap_master_sw = '/it-stec55x/input/ap-master-sw';
|
134
|
|
- setprop(ap_master_sw, !getprop(ap_master_sw));
|
135
|
|
- },
|
136
|
|
- func {
|
137
|
|
- var apfd_master_sw = '/it-stec55x/input/apfd-master-sw';
|
138
|
|
- setprop(apfd_master_sw, !getprop(apfd_master_sw));
|
|
134
|
+# var apfd_master_sw = '/it-stec55x/input/apfd-master-sw';
|
|
135
|
+# setprop(apfd_master_sw, !getprop(apfd_master_sw));
|
139
|
136
|
},
|
140
|
137
|
func {
|
141
|
|
- call(stec55x.button.NAV, [], nil, stec55x);
|
|
138
|
+# call(stec55x.button.NAV, [], nil, stec55x);
|
142
|
139
|
},
|
143
|
140
|
func {
|
144
|
|
- call(stec55x.button.ALT, [], nil, stec55x);
|
|
141
|
+# call(stec55x.button.ALT, [], nil, stec55x);
|
145
|
142
|
},
|
146
|
143
|
func {
|
147
|
|
- call(stec55x.button.VS, [], nil, stec55x);
|
|
144
|
+# stec55x.vs.setValue(math.round(data.vsi, 100));
|
|
145
|
+# call(stec55x.button.VS, [], nil, stec55x);
|
148
|
146
|
},
|
149
|
147
|
func,
|
150
|
148
|
],
|
151
|
149
|
R: [
|
152
|
150
|
func {
|
153
|
|
- var yaw_dumper_sw = '/it-stec55x/input/yaw-damper-sw';
|
154
|
|
- setprop(yaw_dumper_sw, !getprop(yaw_dumper_sw));
|
|
151
|
+# var yaw_dumper_sw = '/it-stec55x/input/yaw-damper-sw';
|
|
152
|
+# setprop(yaw_dumper_sw, !getprop(yaw_dumper_sw));
|
155
|
153
|
},
|
156
|
154
|
func {
|
157
|
|
- call(stec55x.button.HDG, [], nil, stec55x);
|
|
155
|
+ if (stec55x.roll.getValue() == 0)
|
|
156
|
+ stec55x.roll.setValue(-1);
|
|
157
|
+ else
|
|
158
|
+ call(stec55x.button.HDG, [], nil, stec55x);
|
158
|
159
|
},
|
159
|
160
|
func {
|
160
|
|
- call(stec55x.button.APR, [], nil, stec55x);
|
|
161
|
+# call(stec55x.button.APR, [], nil, stec55x);
|
161
|
162
|
},
|
162
|
163
|
func,
|
163
|
164
|
func { # UP (trim)
|
164
|
|
- if (autopilot.systems.STEC55X.trimTarget > -15)
|
165
|
|
- autopilot.systems.STEC55X.trimTarget -= 1;
|
166
|
|
- fgcommand('property-assign', {property: '/it-stec55x/input/man-trim', value: -1});
|
167
|
|
- fgcommand('property-assign', {property: '/it-stec55x/input/man-trim', value: 0});
|
|
165
|
+# if (autopilot.systems.STEC55X.trimTarget > -15)
|
|
166
|
+# autopilot.systems.STEC55X.trimTarget -= 1;
|
|
167
|
+# fgcommand('property-assign', {property: '/it-stec55x/input/man-trim', value: -1});
|
|
168
|
+# fgcommand('property-assign', {property: '/it-stec55x/input/man-trim', value: 0});
|
168
|
169
|
},
|
169
|
170
|
func { # DN (trim)
|
170
|
|
- if (autopilot.systems.STEC55X.trimTarget < 20)
|
171
|
|
- autopilot.systems.STEC55X.trimTarget += 1;
|
172
|
|
- fgcommand('property-assign', {property: '/it-stec55x/input/man-trim', value: 1});
|
173
|
|
- fgcommand('property-assign', {property: '/it-stec55x/input/man-trim', value: 0});
|
|
171
|
+# if (autopilot.systems.STEC55X.trimTarget < 20)
|
|
172
|
+# autopilot.systems.STEC55X.trimTarget += 1;
|
|
173
|
+# fgcommand('property-assign', {property: '/it-stec55x/input/man-trim', value: 1});
|
|
174
|
+# fgcommand('property-assign', {property: '/it-stec55x/input/man-trim', value: 0});
|
174
|
175
|
},
|
175
|
176
|
],
|
176
|
177
|
}
|