From 30139a4ac4b6755509dce2ecddffbfc2f30829cd Mon Sep 17 00:00:00 2001 From: "B.Fatih KOZ" Date: Thu, 7 Nov 2024 20:35:59 +0300 Subject: [PATCH] Update iFly B737-8 MAX Fix wrong LVAR definitions and aircraft ICAO code --- src/aircraft/IFly_B38M_MSFS.ts | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/aircraft/IFly_B38M_MSFS.ts b/src/aircraft/IFly_B38M_MSFS.ts index caee6b7..66fd500 100644 --- a/src/aircraft/IFly_B38M_MSFS.ts +++ b/src/aircraft/IFly_B38M_MSFS.ts @@ -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 } }