Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update iFly B737-8 MAX
Browse files Browse the repository at this point in the history
Fix wrong LVAR definitions and aircraft ICAO code
FatihKoz committed Nov 7, 2024

Verified

This commit was signed with the committer’s verified signature.
amindadgar Mohammad Amin Dadgar
1 parent ab807ba commit 30139a4
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/aircraft/IFly_B38M_MSFS.ts
Original file line number Diff line number Diff line change
@@ -20,31 +20,31 @@ export default class IFlyB38M_MSFS extends AircraftConfig {

features: FeatureAddresses = {
[AircraftFeature.BeaconLights]: {
VC_Beacon_Light_SW: FeatureType.Int,
VC_Beacon_Light_SW_VAL: FeatureType.Int,
},
[AircraftFeature.LandingLights]: {
VC_Landing_Light_1_SW: FeatureType.Int,
VC_Landing_Light_2_SW: FeatureType.Int,
VC_Landing_Light_1_SW_VAL: FeatureType.Int,
VC_Landing_Light_2_SW_VAL: FeatureType.Int,
},
[AircraftFeature.LogoLights]: {
VC_Logo_Light_SW: FeatureType.Int,
VC_Logo_Light_SW_VAL: FeatureType.Int,
},
[AircraftFeature.NavigationLights]: {
VC_Position_Light_SW: FeatureType.Int,
VC_Position_Light_SW_VAL: FeatureType.Int,
},
[AircraftFeature.StrobeLights]: {
VC_Position_Light_SW: FeatureType.Int,
VC_Position_Light_SW_VAL: FeatureType.Int,
},
[AircraftFeature.TaxiLights]: {
VC_Taxi_Light_SW: FeatureType.Int,
VC_Taxi_Light_SW_VAL: FeatureType.Int,
},
[AircraftFeature.WingLights]: {
VC_Wing_Light_SW: FeatureType.Int,
VC_Wing_Light_SW_VAL: FeatureType.Int,
},
}

match(title: string, icao: string, config_path: string): boolean {
this.flapNames = GetDefaultFlaps('', 'b737', '')
this.flapNames = GetDefaultFlaps('', 'b38m', '')
return ['ifly', '737-max8'].every((w) => title.includes(w))
}

@@ -65,11 +65,10 @@ export default class IFlyB38M_MSFS extends AircraftConfig {
}

taxiLights(value: number): FeatureState {
// Off = 0 , On = 10
return value === 10
}

wingLights(value: number): FeatureState {
// Off = 0 , On = 10
return value === 10
}
}

0 comments on commit 30139a4

Please sign in to comment.