Skip to content

Commit cf5b5bc

Browse files
committed
Add Wing and Engine Anti ICE
Need to check the systems, may need a fix later. (depends on the button type)
1 parent d506fad commit cf5b5bc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/aircraft/FenixA320.ts

+9
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ export default class FenixA320 extends AircraftConfig {
6565
Any_Exit_open_L: FeatureType.Int,
6666
Any_Exit_open_R: FeatureType.Int,
6767
},
68+
[AircraftFeature.AntiIce]: {
69+
S_OH_PNEUMATIC_WING_ANTI_ICE: FeatureType.Int,
70+
S_OH_PNEUMATIC_ENG1_ANTI_ICE: FeatureType.Int,
71+
S_OH_PNEUMATIC_ENG2_ANTI_ICE: FeatureType.Int,
72+
},
6873
}
6974

7075
flapNames: FlapNames = {
@@ -139,4 +144,8 @@ export default class FenixA320 extends AircraftConfig {
139144
doors(exits_left: number, exits_right: number): FeatureState {
140145
return exits_left === 0 && exits_right === 0
141146
}
147+
148+
antiIce(wing: number, eng1: number, eng2: number): FeatureState {
149+
return wing === 1 || (eng1 === 1 && eng2 === 1)
150+
}
142151
}

0 commit comments

Comments
 (0)