From 06454440cacbbb5cd5bcb7503c745f49cc1e6389 Mon Sep 17 00:00:00 2001 From: abuelo007X <88299309+abuelo007X@users.noreply.github.com> Date: Fri, 7 Feb 2025 20:39:04 -0600 Subject: [PATCH] Update _default_xplane.ts Removed this two as they do not exist as default dataref on X-Plane sim/cockpit2/switches/logo_lights_on sim/cockpit2/switches/wing_lights_on Changing FeatureType from Bool to Int on the remaining one, aligning with datatype on X-plane --- src/aircraft/_default_xplane.ts | 34 +++++---------------------------- 1 file changed, 5 insertions(+), 29 deletions(-) diff --git a/src/aircraft/_default_xplane.ts b/src/aircraft/_default_xplane.ts index bd7ea25..2e5d4eb 100644 --- a/src/aircraft/_default_xplane.ts +++ b/src/aircraft/_default_xplane.ts @@ -21,25 +21,19 @@ export default class DefaultXPlane extends AircraftConfig { features: FeatureAddresses = { [AircraftFeature.BeaconLights]: { - 'sim/cockpit2/switches/beacon_on': FeatureType.Bool, + 'sim/cockpit2/switches/beacon_on': FeatureType.Int, }, [AircraftFeature.LandingLights]: { - 'sim/cockpit2/switches/landing_lights_on': FeatureType.Bool, - }, - [AircraftFeature.LogoLights]: { - 'sim/cockpit2/switches/logo_lights_on': FeatureType.Bool, + 'sim/cockpit2/switches/landing_lights_on': FeatureType.Int, }, [AircraftFeature.NavigationLights]: { - 'sim/cockpit2/switches/navigation_lights_on': FeatureType.Bool, + 'sim/cockpit2/switches/navigation_lights_on': FeatureType.Int, }, [AircraftFeature.StrobeLights]: { - 'sim/cockpit2/switches/strobe_lights_on': FeatureType.Bool, + 'sim/cockpit2/switches/strobe_lights_on': FeatureType.Int, }, [AircraftFeature.TaxiLights]: { - 'sim/cockpit2/switches/taxi_light_on': FeatureType.Bool, - }, - [AircraftFeature.WingLights]: { - 'sim/cockpit2/switches/wing_lights_on': FeatureType.Bool, + 'sim/cockpit2/switches/taxi_light_on': FeatureType.Int, }, } @@ -104,22 +98,4 @@ export default class DefaultXPlane extends AircraftConfig { taxiLights(value: number): FeatureState { return value === 1 } - - /** - * Parse the value that's returned by the sim - * @param value - * @return {boolean|null} - */ - wingLights(value: number): FeatureState { - return value === 1 - } - - /*s* - * Parse the value that's returned by the sim - * @param value - * @return {boolean|null} - */ - logoLights(value: number): FeatureState { - return value === 1 - } }