@@ -24,6 +24,9 @@ export default class Toliss extends AircraftConfig {
24
24
[ AircraftFeature . LandingLights ] : {
25
25
'AirbusFBW/OHPLightSwitches' : FeatureType . IntArray ,
26
26
} ,
27
+ [ AircraftFeature . LogoLights ] : {
28
+ 'AirbusFBW/OHPLightSwitches' : FeatureType . IntArray ,
29
+ } ,
27
30
[ AircraftFeature . NavigationLights ] : {
28
31
'AirbusFBW/OHPLightSwitches' : FeatureType . IntArray ,
29
32
} ,
@@ -33,8 +36,27 @@ export default class Toliss extends AircraftConfig {
33
36
[ AircraftFeature . TaxiLights ] : {
34
37
'AirbusFBW/OHPLightSwitches' : FeatureType . IntArray ,
35
38
} ,
39
+ [ AircraftFeature . WingLights ] : {
40
+ 'AirbusFBW/OHPLightSwitches' : FeatureType . IntArray ,
41
+ } ,
42
+ [ AircraftFeature . EmergencyLights ] : {
43
+ 'AirbusFBW/OHPLightSwitches' : FeatureType . IntArray ,
44
+ } ,
45
+ [ AircraftFeature . Seatbelts ] : {
46
+ 'AirbusFBW/OHPLightSwitches' : FeatureType . IntArray ,
47
+ } ,
48
+ [ AircraftFeature . Battery ] : {
49
+ 'AirbusFBW/BatOHPArray' : FeatureType . IntArray ,
50
+ } ,
36
51
[ AircraftFeature . APU ] : {
37
- 'AirbusFBW/APUAvail' : FeatureType . Int ,
52
+ 'AirbusFBW/APUAvail' : FeatureType . Int ,
53
+ } ,
54
+ [ AircraftFeature . Packs ] : {
55
+ 'AirbusFBW/Pack1Flow' : FeatureType . Int ,
56
+ 'AirbusFBW/Pack2Flow' : FeatureType . Int ,
57
+ } ,
58
+ [ AircraftFeature . Doors ] : {
59
+ 'AirbusFBW/PaxDoorArray' : FeatureType . IntArray ,
38
60
} ,
39
61
}
40
62
@@ -58,10 +80,26 @@ export default class Toliss extends AircraftConfig {
58
80
return value [ 4 ] === 2 && value [ 5 ] === 2
59
81
}
60
82
83
+ logoLights ( value : number [ ] ) : FeatureState {
84
+ return value [ 2 ] === 1 || value [ 2 ] === 2
85
+ }
86
+
61
87
navigationLights ( value : number [ ] ) : FeatureState {
62
88
return value [ 2 ] === 1 || value [ 2 ] === 2
63
89
}
64
90
91
+ wingLights ( value : number [ ] ) : FeatureState {
92
+ return value [ 1 ] === 1
93
+ }
94
+
95
+ emergencyLights ( value : number [ ] ) : FeatureState {
96
+ return value [ 10 ] === 1 || value [ 10 ] === 2
97
+ }
98
+
99
+ seatbelts ( value : number [ ] ) : FeatureState {
100
+ return value [ 11 ] === 1
101
+ }
102
+
65
103
strobeLights ( value : number [ ] ) : FeatureState {
66
104
// Ignore if the switch is on AUTO position
67
105
if ( value [ 7 ] === 1 ) {
@@ -75,7 +113,19 @@ export default class Toliss extends AircraftConfig {
75
113
return value [ 3 ] === 1 || value [ 3 ] === 2
76
114
}
77
115
116
+ battery ( value : number [ ] ) : FeatureState {
117
+ return value [ 0 ] === 1 && value [ 1 ] === 1
118
+ }
119
+
78
120
APU ( value : number ) : FeatureState {
79
121
return value === 1
80
122
}
123
+
124
+ packs ( p1 : number , p2 : number ) : FeatureState {
125
+ return p1 > 0.5 || p2 > 0.5
126
+ }
127
+
128
+ doors ( doors : number [ ] ) : FeatureState {
129
+ return ! doors . includes ( 1 )
130
+ }
81
131
}
0 commit comments