commit initial
|
1 |
var knobsClass = { |
2 |
new : func (node) { |
|
3 |
var m = { parents: [ knobsClass ] }; |
|
4 |
m.node = node; |
|
5 |
return m; |
|
6 |
}, |
|
7 | ||
8 |
ALT : func (x) { |
|
9 |
fgcommand('property-adjust', props.Node.new({ |
|
10 |
property: '/instrumentation/zkv1000/afcs/selected-alt-ft', |
|
11 |
step: x, |
|
12 |
min: 0, |
|
13 |
max: 16000, |
|
14 |
wrap: 0 |
|
15 |
})); |
|
16 |
}, |
|
17 | ||
18 |
HDG : func (x) { |
|
19 |
fgcommand('property-adjust', props.Node.new({ |
|
20 |
property: '/instrumentation/zkv1000/afcs/heading-bug-deg', |
|
21 |
step: x, |
|
22 |
min: 0, |
|
23 |
max: 360, |
|
24 |
wrap: 1 |
|
25 |
})); |
|
26 |
}, |
|
27 | ||
28 |
CRS : func (x) { |
|
29 |
if (x) fgcommand('property-adjust', props.Node.new({ |
|
30 |
property: '/instrumentation/zkv1000/cdi/course', |
|
31 |
step: x, |
|
32 |
min: 0, |
|
33 |
max: 360, |
|
34 |
wrap: 1 |
|
35 |
})); |
|
36 |
else fgcommand('property-assign', props.Node.new({ |
|
37 |
property: '/instrumentation/zkv1000/cdi/course', |
|
38 |
property: '/instrumentation/zkv1000/cdi/radial' |
|
39 |
})); |
|
40 |
}, |
|
41 | ||
42 |
BARO : func (x) { |
|
43 |
fgcommand('property-adjust', props.Node.new({ |
|
44 |
property: '/instrumentation/altimeter/setting-inhg', |
|
45 |
step: x, |
|
46 |
min: 28.50, |
|
47 |
max: 33.00, |
|
48 |
warp: 0 |
|
49 |
})); |
|
50 |
}, |
|
51 | ||
52 |
NAV : func (x) { |
|
53 |
fgcommand('property-adjust', props.Node.new({ |
|
54 |
property: '/instrumentation/zkv1000/radios/nav-freq-mhz', |
|
55 |
step: x, |
|
56 |
min: 108.00, |
|
57 |
max: 118.00, |
|
58 |
wrap: 1 |
|
59 |
})); |
|
60 |
}, |
|
61 | ||
62 |
COM : func (x) { |
|
63 |
fgcommand('property-adjust', props.Node.new({ |
|
64 |
property: '/instrumentation/zkv1000/radios/comm-freq-mhz', |
|
65 |
step: x, |
|
66 |
min: 118.00, |
|
67 |
max: 137.975, |
|
68 |
wrap: 1 |
|
69 |
})); |
|
70 |
}, |
|
71 | ||
72 |
VolNAV : void, |
|
73 |
VolCOM : void, |
|
74 |
FmsInner : void, |
|
75 |
FmsOuter : void |
|
76 |
}; |