Skip to content

Commit

Permalink
Fix /update enum for taxi/wing lights
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeelio committed Sep 20, 2024
1 parent dbe7e34 commit 225c20f
Show file tree
Hide file tree
Showing 30 changed files with 60 additions and 133 deletions.
2 changes: 1 addition & 1 deletion src/aircraft/AerosoftA333.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default class AerosoftA333Airbus extends AircraftConfig {
[AircraftFeature.LandingLights]: false,
[AircraftFeature.NavigationLights]: false,
[AircraftFeature.StrobeLights]: false,
[AircraftFeature.TaxiLight]: false,
[AircraftFeature.TaxiLights]: false,
}

flapNames: FlapNames = {
Expand Down
4 changes: 2 additions & 2 deletions src/aircraft/Felis742.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ export default class Felis742 extends AircraftConfig {
'B742/ext_light/landing_outbd_L_sw': FeatureType.Int,
'B742/ext_light/landing_outbd_R_sw': FeatureType.Int,
},
[AircraftFeature.LogoLight]: {
[AircraftFeature.LogoLights]: {
'B742/ext_light/logo_sw': FeatureType.Int,
},
[AircraftFeature.NavigationLights]: false,
[AircraftFeature.StrobeLights]: false,
[AircraftFeature.TaxiLight]: {
[AircraftFeature.TaxiLights]: {
'B742/ext_light/runway_turnoff_L_sw': FeatureType.Int,
'B742/ext_light/runway_turnoff_R_sw': FeatureType.Int,
},
Expand Down
4 changes: 2 additions & 2 deletions src/aircraft/FenixA320.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default class FenixA320 extends AircraftConfig {
S_OH_EXT_LT_LANDING_L: FeatureType.Int,
S_OH_EXT_LT_LANDING_R: FeatureType.Int,
},
[AircraftFeature.LogoLight]: {
[AircraftFeature.LogoLights]: {
S_OH_EXT_LT_NAV_LOGO: FeatureType.Int,
},
[AircraftFeature.NavigationLights]: {
Expand All @@ -34,7 +34,7 @@ export default class FenixA320 extends AircraftConfig {
[AircraftFeature.StrobeLights]: {
S_OH_EXT_LT_STROBE: FeatureType.Int,
},
[AircraftFeature.TaxiLight]: {
[AircraftFeature.TaxiLights]: {
S_OH_EXT_LT_NOSE: FeatureType.Int,
},
[AircraftFeature.WingLights]: {
Expand Down
4 changes: 2 additions & 2 deletions src/aircraft/FlightFactor757.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default class FlightFactor757 extends AircraftConfig {
[AircraftFeature.LandingLights]: {
'sim/cockpit2/switches/landing_lights_switch': FeatureType.NumberArray,
},
[AircraftFeature.LogoLight]: {
[AircraftFeature.LogoLights]: {
'sim/cockpit2/switches/generic_lights_switch': FeatureType.NumberArray,
},
[AircraftFeature.NavigationLights]: {
Expand All @@ -32,7 +32,7 @@ export default class FlightFactor757 extends AircraftConfig {
[AircraftFeature.StrobeLights]: {
'sim/cockpit2/switches/strobe_lights_on': FeatureType.Int,
},
[AircraftFeature.TaxiLight]: {
[AircraftFeature.TaxiLights]: {
'sim/cockpit2/switches/landing_lights_switch': FeatureType.NumberArray,
},
[AircraftFeature.WingLights]: {
Expand Down
2 changes: 1 addition & 1 deletion src/aircraft/FlightFactorA320.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default class FlightFactorA320 extends AircraftConfig {
[AircraftFeature.StrobeLights]: {
'model/controls/light_strobe': FeatureType.Number,
},
[AircraftFeature.TaxiLight]: {
[AircraftFeature.TaxiLights]: {
'model/controls/light_nose': FeatureType.Number,
},
[AircraftFeature.WingLights]: {
Expand Down
4 changes: 2 additions & 2 deletions src/aircraft/FlyJSim727.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default class FlyJSim727 extends AircraftConfig {
'FJS/727/lights/OutboundLLSwitch_L': FeatureType.Int,
'FJS/727/lights/OutboundLLSwitch_R': FeatureType.Int,
},
[AircraftFeature.LogoLight]: {
[AircraftFeature.LogoLights]: {
'FJS/727/lights/LogoLightSwitch': FeatureType.Int,
},
[AircraftFeature.NavigationLights]: {
Expand All @@ -35,7 +35,7 @@ export default class FlyJSim727 extends AircraftConfig {
[AircraftFeature.StrobeLights]: {
'FJS/727/lights/StrobeLightSwitch': FeatureType.Int,
},
[AircraftFeature.TaxiLight]: {
[AircraftFeature.TaxiLights]: {
'FJS/727/lights/TaxiLightSwitch': FeatureType.Int,
},
[AircraftFeature.WingLights]: {
Expand Down
4 changes: 2 additions & 2 deletions src/aircraft/FlyJSim732.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default class FlyJSim732 extends AircraftConfig {
'FJS/732/lights/OutBoundLLightSwitch1': FeatureType.Int,
'FJS/732/lights/OutBoundLLightSwitch2': FeatureType.Int,
},
[AircraftFeature.LogoLight]: {
[AircraftFeature.LogoLights]: {
'FJS/732/lights/LogoLightSwitch': FeatureType.Int,
},
[AircraftFeature.NavigationLights]: {
Expand All @@ -35,7 +35,7 @@ export default class FlyJSim732 extends AircraftConfig {
[AircraftFeature.StrobeLights]: {
'FJS/732/lights/StrobeLightSwitch': FeatureType.Int,
},
[AircraftFeature.TaxiLight]: {
[AircraftFeature.TaxiLights]: {
'FJS/732/lights/TaxiLightSwitch': FeatureType.Int,
},
[AircraftFeature.WingLights]: {
Expand Down
4 changes: 2 additions & 2 deletions src/aircraft/FsLabsAirbus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ export default class FsLabsAirbus extends AircraftConfig {
features: FeatureAddresses = {
[AircraftFeature.BeaconLights]: false,
[AircraftFeature.LandingLights]: false,
[AircraftFeature.LogoLight]: false,
[AircraftFeature.LogoLights]: false,
[AircraftFeature.NavigationLights]: false,
[AircraftFeature.StrobeLights]: false,
[AircraftFeature.TaxiLight]: false,
[AircraftFeature.TaxiLights]: false,
[AircraftFeature.WingLights]: false,
}

Expand Down
4 changes: 2 additions & 2 deletions src/aircraft/IXEG733.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default class IXEG733 extends AircraftConfig {
'ixeg/733/lighting/l_outboard_ll_act': FeatureType.Int,
'ixeg/733/lighting/r_outboard_ll_act': FeatureType.Int,
},
[AircraftFeature.LogoLight]: {
[AircraftFeature.LogoLights]: {
'ixeg/733/lighting/logo_lt_act': FeatureType.Int,
},
[AircraftFeature.NavigationLights]: {
Expand All @@ -35,7 +35,7 @@ export default class IXEG733 extends AircraftConfig {
[AircraftFeature.StrobeLights]: {
'ixeg/733/lighting/strobe_lt_act': FeatureType.Int,
},
[AircraftFeature.TaxiLight]: {
[AircraftFeature.TaxiLights]: {
'ixeg/733/lighting/taxi_lt_act': FeatureType.Int,
},
[AircraftFeature.WingLights]: {
Expand Down
2 changes: 1 addition & 1 deletion src/aircraft/JarDesignA330.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default class JarDesignA330 extends AircraftConfig {
[AircraftFeature.StrobeLights]: {
'sim/custom/xap/extlight/strobe_sw': FeatureType.Int,
},
[AircraftFeature.TaxiLight]: {
[AircraftFeature.TaxiLights]: {
'sim/custom/xap/extlight/nose_sw': FeatureType.Int,
},
}
Expand Down
4 changes: 2 additions & 2 deletions src/aircraft/PMDG_737_FSUIPC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ export default class PMDG_737_FSUIPC extends AircraftConfig {
[AircraftFeature.LandingLights]: {
'0x64F6': FeatureType.Int,
},
[AircraftFeature.LogoLight]: false,
[AircraftFeature.LogoLights]: false,
[AircraftFeature.NavigationLights]: {
'0x6500': FeatureType.Int,
},
[AircraftFeature.StrobeLights]: {
'0x6500': FeatureType.Int,
},
[AircraftFeature.TaxiLight]: {
[AircraftFeature.TaxiLights]: {
'0x64FA': FeatureType.Int,
},
[AircraftFeature.WingLights]: false,
Expand Down
4 changes: 2 additions & 2 deletions src/aircraft/PMDG_737_MSFS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class PMDG_737_MSFS extends AircraftConfig {
switch_113_73X: FeatureType.Int,
switch_114_73X: FeatureType.Int,
},
[AircraftFeature.LogoLight]: {
[AircraftFeature.LogoLights]: {
switch_122_73X: FeatureType.Int,
},
[AircraftFeature.NavigationLights]: {
Expand All @@ -33,7 +33,7 @@ export default class PMDG_737_MSFS extends AircraftConfig {
[AircraftFeature.StrobeLights]: {
switch_123_73X: FeatureType.Int,
},
[AircraftFeature.TaxiLight]: {
[AircraftFeature.TaxiLights]: {
switch_117_73X: FeatureType.Int,
},
[AircraftFeature.WingLights]: {
Expand Down
4 changes: 2 additions & 2 deletions src/aircraft/PMDG_747_FSUIPC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ export default class PMDG_747_FSUIPC extends AircraftConfig {
[AircraftFeature.LandingLights]: {
'0x6506': FeatureType.Int,
},
[AircraftFeature.LogoLight]: false,
[AircraftFeature.LogoLights]: false,
[AircraftFeature.NavigationLights]: {
'0x650B': FeatureType.Int,
},
[AircraftFeature.StrobeLights]: {
'0x6511': FeatureType.Int,
},
[AircraftFeature.TaxiLight]: {
[AircraftFeature.TaxiLights]: {
'0x6510': FeatureType.Int,
},
[AircraftFeature.WingLights]: false,
Expand Down
4 changes: 2 additions & 2 deletions src/aircraft/PMDG_777_FSUIPC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ export default class PMDG_777_FSUIPC extends AircraftConfig {
[AircraftFeature.LandingLights]: {
'0x6485': FeatureType.Int,
},
[AircraftFeature.LogoLight]: false,
[AircraftFeature.LogoLights]: false,
[AircraftFeature.NavigationLights]: {
'0x650B': FeatureType.Int,
},
[AircraftFeature.StrobeLights]: {
'0x648F': FeatureType.Int,
},
[AircraftFeature.TaxiLight]: {
[AircraftFeature.TaxiLights]: {
'0x648E': FeatureType.Int,
},
[AircraftFeature.WingLights]: false,
Expand Down
4 changes: 2 additions & 2 deletions src/aircraft/PMDG_777_MSFS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default class PMDG_777_MSFS extends AircraftConfig {
switch_23_a: FeatureType.Int,
switch_24_a: FeatureType.Int,
},
[AircraftFeature.LogoLight]: {
[AircraftFeature.LogoLights]: {
switch_116_a: FeatureType.Int,
},
[AircraftFeature.NavigationLights]: {
Expand All @@ -34,7 +34,7 @@ export default class PMDG_777_MSFS extends AircraftConfig {
[AircraftFeature.StrobeLights]: {
switch_122_a: FeatureType.Int,
},
[AircraftFeature.TaxiLight]: {
[AircraftFeature.TaxiLights]: {
switch_121_a: FeatureType.Int,
},
[AircraftFeature.WingLights]: {
Expand Down
2 changes: 1 addition & 1 deletion src/aircraft/ProSim737.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default class ProSim737 extends AircraftConfig {
[AircraftFeature.LandingLights]: false,
[AircraftFeature.NavigationLights]: false,
[AircraftFeature.StrobeLights]: false,
[AircraftFeature.TaxiLight]: false,
[AircraftFeature.TaxiLights]: false,
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/aircraft/QualityWings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default class QualityWings extends AircraftConfig {
[AircraftFeature.LandingLights]: false,
[AircraftFeature.NavigationLights]: false,
[AircraftFeature.StrobeLights]: false,
[AircraftFeature.TaxiLight]: false,
[AircraftFeature.TaxiLights]: false,
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/aircraft/RotateMD11.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class RotateMD11 extends AircraftConfig {
'Rotate/aircraft/controls/ldg_l_lts': FeatureType.Int,
'Rotate/aircraft/controls/ldg_r_lts': FeatureType.Int,
},
[AircraftFeature.LogoLight]: {
[AircraftFeature.LogoLights]: {
'Rotate/aircraft/controls/logo_lts': FeatureType.Int,
},
[AircraftFeature.NavigationLights]: {
Expand All @@ -33,7 +33,7 @@ export default class RotateMD11 extends AircraftConfig {
[AircraftFeature.StrobeLights]: {
'Rotate/aircraft/controls/strobe_lts': FeatureType.Int,
},
[AircraftFeature.TaxiLight]: {
[AircraftFeature.TaxiLights]: {
'Rotate/aircraft/controls/nose_lts': FeatureType.Int,
},
[AircraftFeature.WingLights]: {
Expand Down
4 changes: 2 additions & 2 deletions src/aircraft/RotateMD80.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class RotateMD80 extends AircraftConfig {
'Rotate/md80/lights/wing_ldg_light_switch_r': FeatureType.Int,
'Rotate/md80/lights/wing_ldg_light_switch_l': FeatureType.Int,
},
[AircraftFeature.LogoLight]: {
[AircraftFeature.LogoLights]: {
'Rotate/md80/lights/logo_light_switch': FeatureType.Int,
},
[AircraftFeature.NavigationLights]: {
Expand All @@ -33,7 +33,7 @@ export default class RotateMD80 extends AircraftConfig {
[AircraftFeature.StrobeLights]: {
'Rotate/md80/lights/pos_strobe_light_switch': FeatureType.Int,
},
[AircraftFeature.TaxiLight]: {
[AircraftFeature.TaxiLights]: {
'Rotate/md80/lights/nose_light_switch': FeatureType.Int,
},
[AircraftFeature.WingLights]: {
Expand Down
2 changes: 1 addition & 1 deletion src/aircraft/Toliss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default class Toliss extends AircraftConfig {
[AircraftFeature.StrobeLights]: {
'AirbusFBW/OHPLightSwitches': FeatureType.IntArray,
},
[AircraftFeature.TaxiLight]: {
[AircraftFeature.TaxiLights]: {
'AirbusFBW/OHPLightSwitches': FeatureType.IntArray,
},
}
Expand Down
4 changes: 2 additions & 2 deletions src/aircraft/Zibo738.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ export default class Zibo738 extends AircraftConfig {
}

features: FeatureAddresses = {
[AircraftFeature.LogoLight]: {
[AircraftFeature.LogoLights]: {
'laminar/B738/toggle_switch/logo_light': FeatureType.Int,
},
[AircraftFeature.TaxiLight]: {
[AircraftFeature.TaxiLights]: {
'laminar/B738/toggle_switch/taxi_light_brightness_pos': FeatureType.Int,
},
}
Expand Down
4 changes: 2 additions & 2 deletions src/aircraft/_default_fsuipc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ export default class DefaultFsuipc extends AircraftConfig {
features: FeatureAddresses = {
[AircraftFeature.BeaconLights]: { '0x0D0C': FeatureType.Int },
[AircraftFeature.LandingLights]: { '0x0D0C': FeatureType.Int },
[AircraftFeature.LogoLight]: { '0x0D0C': FeatureType.Int },
[AircraftFeature.LogoLights]: { '0x0D0C': FeatureType.Int },
[AircraftFeature.NavigationLights]: { '0x0D0C': FeatureType.Int },
[AircraftFeature.StrobeLights]: { '0x0D0C': FeatureType.Int },
[AircraftFeature.TaxiLight]: { '0x0D0C': FeatureType.Int },
[AircraftFeature.TaxiLights]: { '0x0D0C': FeatureType.Int },
[AircraftFeature.WingLights]: { '0x0D0C': FeatureType.Int },
}

Expand Down
4 changes: 2 additions & 2 deletions src/aircraft/_default_msfs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ export default class DefaultMsFs extends AircraftConfig {
[AircraftFeature.StrobeLights]: {
LIGHTING_STROBE_1: FeatureType.Bool,
},
[AircraftFeature.TaxiLight]: { LIGHTING_TAXI_1: FeatureType.Bool },
[AircraftFeature.TaxiLights]: { LIGHTING_TAXI_1: FeatureType.Bool },
[AircraftFeature.WingLights]: {
LIGHTING_RECOGNITION_1: FeatureType.Bool,
},
[AircraftFeature.LogoLight]: { LIGHTING_BEACON_1: FeatureType.Bool },
[AircraftFeature.LogoLights]: { LIGHTING_BEACON_1: FeatureType.Bool },
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/aircraft/_default_xplane.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default class DefaultXPlane extends AircraftConfig {
[AircraftFeature.LandingLights]: {
'sim/cockpit2/switches/landing_lights_on': FeatureType.Bool,
},
[AircraftFeature.LogoLight]: {
[AircraftFeature.LogoLights]: {
'sim/cockpit2/switches/logo_lights_on': FeatureType.Bool,
},
[AircraftFeature.NavigationLights]: {
Expand All @@ -35,7 +35,7 @@ export default class DefaultXPlane extends AircraftConfig {
[AircraftFeature.StrobeLights]: {
'sim/cockpit2/switches/strobe_lights_on': FeatureType.Bool,
},
[AircraftFeature.TaxiLight]: {
[AircraftFeature.TaxiLights]: {
'sim/cockpit2/switches/taxi_light_on': FeatureType.Bool,
},
[AircraftFeature.WingLights]: {
Expand Down
44 changes: 0 additions & 44 deletions src/aircraft/example.ts

This file was deleted.

Loading

0 comments on commit 225c20f

Please sign in to comment.