@@ -40,10 +40,31 @@ export default class FenixA320 extends AircraftConfig {
40
40
[ AircraftFeature . WingLights ] : {
41
41
S_OH_EXT_LT_WING : FeatureType . Int ,
42
42
} ,
43
+ [ AircraftFeature . EmergencyLights ] : {
44
+ S_OH_INT_LT_EMER : FeatureType . Int ,
45
+ } ,
46
+ [ AircraftFeature . Seatbelts ] : {
47
+ S_OH_SIGNS : FeatureType . Int ,
48
+ } ,
49
+ [ AircraftFeature . Battery ] : {
50
+ S_OH_ELEC_BAT1 : FeatureType . Int ,
51
+ S_OH_ELEC_BAT2 : FeatureType . Int ,
52
+ I_OH_ELEC_EXT_PWR_L : FeatureType . Int ,
53
+ } ,
43
54
[ AircraftFeature . APU ] : {
44
55
S_OH_ELEC_APU_MASTER : FeatureType . Int ,
45
56
S_OH_ELEC_APU_START : FeatureType . Int ,
46
57
} ,
58
+ [ AircraftFeature . Packs ] : {
59
+ S_OH_PNEUMATIC_PACK_1 : FeatureType . Int ,
60
+ I_OH_PNEUMATIC_PACK_1_U : FeatureType . Int ,
61
+ S_OH_PNEUMATIC_PACK_2 : FeatureType . Int ,
62
+ I_OH_PNEUMATIC_PACK_2_U : FeatureType . Int ,
63
+ } ,
64
+ [ AircraftFeature . Doors ] : {
65
+ Any_Exit_open_L : FeatureType . Int ,
66
+ Any_Exit_open_R : FeatureType . Int ,
67
+ } ,
47
68
}
48
69
49
70
flapNames : FlapNames = {
@@ -87,15 +108,35 @@ export default class FenixA320 extends AircraftConfig {
87
108
return value === 2
88
109
}
89
110
111
+ taxiLights ( value : number ) : FeatureState {
112
+ return value === 1 || value === 2
113
+ }
114
+
90
115
wingLights ( value : number ) : FeatureState {
91
116
return value === 1
92
117
}
93
118
94
- taxiLights ( value : number ) : FeatureState {
119
+ emergencyLights ( value : number ) : FeatureState {
95
120
return value === 1 || value === 2
96
121
}
97
122
123
+ seatbelts ( value : number ) : FeatureState {
124
+ return value === 1
125
+ }
126
+
127
+ battery ( b1 : number , b2 : number , extpwr : number ) : FeatureState {
128
+ return ( b1 === 1 && b2 === 1 ) || extpwr === 1
129
+ }
130
+
98
131
APU ( mastersw : number , startsw : number ) : FeatureState {
99
132
return mastersw === 1 && startsw === 2
100
133
}
134
+
135
+ packs ( left_switch : number , left_message : number , right_switch : number , right_message : number ) : FeatureState {
136
+ return ( left_switch === 1 && left_message === 0 ) || ( right_switch === 1 && right_message === 0 )
137
+ }
138
+
139
+ doors ( exits_left : number , exits_right : number ) : FeatureState {
140
+ return exits_left === 0 && exits_right === 0
141
+ }
101
142
}
0 commit comments