RoystonS / BetterBravoLights

Utility for controlling lights on a Honeycomb Bravo Throttle from Microsoft Flight Simulator
MIT License
45 stars 8 forks source link

Temporary support for PMDG737-600, MDG 737-800, PMDG 737-900 #51

Closed ItzSteveHuh closed 1 year ago

ItzSteveHuh commented 2 years ago

Software version

0.8.2

Change type

New aircraft

Aircrafts

PMDG737-600, PMDG 737-800, PMDG 737-900

Configuration


;; PMDG 737-600, 737-700, 737-800, 737-900, 737-900ER
[Aircraft.PMDG 737-600, Aircraft.PMDG 737-700, Aircraft.PMDG 737-700BDSF, Aircraft.PMDG 737-700BBJ, Aircraft.PMDG 737-800, Aircraft.PMDG 737-800BCF, Aircraft.PMDG 737-800BDSF, Aircraft.PMDG 737-800BBJ2, Aircraft.PMDG 737-900, Aircraft.PMDG 737-900ER]
HDG = L:ngx_MCP_HdgSel > 0
NAV = L:ngx_MCP_LNav > 0
APR = L:ngx_MCP_App > 0
; Thanks to @Flintstone2k12 for the REV/VNav mapping!
REV = L:ngx_MCP_VNav > 0
ALT = L:ngx_MCP_AltHold > 0
VS = L:ngx_MCP_VS > 0
IAS = L:ngx_MCP_LvlChg > 0
AUTOPILOT = L:ngx_MCP_CMDA > 0 OR L:ngx_MCP_CMDB > 0

; ENG1, APU and ENG2 fire lights
EngineFire = L:switch_6972_73X != 0 OR L:switch_6982_73X != 0 OR L:switch_6992_73X != 0
; PMDG 737 shows Low Oil Pressure warning in the engine status display, but the oil pressure reported to MSFS doesn't seem to correspond to anything
LowOilPressure = OFF
; Monitor the 6 fuel pressure lights
LowFuelPressure = L:switch_41_73X > 0 OR L:switch_42_73X > 0 OR L:switch_43_73X > 0 OR L:switch_44_73X > 0 OR L:switch_47_73X > 0 OR L:switch_48_73X > 0
; CAPT PITOT, L ELEV PITOT, L ALPHA VANE, TEMP PROBE, F/O PITOT, R ELEV PITOT, R ALPHA VANE, AUX PITOT
AntiIce = L:switch_142_73X != 0 OR L:switch_143_73X != 0 OR L:switch_144_73X != 0 OR L:switch_145_73X != 0 OR L:switch_146_73X != 0 OR L:switch_147_73X != 0 OR L:switch_148_73X != 0 OR L:switch_149_73X != 0
; Either engine is something other than OFF
StarterEngaged = L:switch_119_73X != 10 OR L:switch_121_73X != 10
; APU light is on if the APU switch isn't OFF
APU = L:switch_118_73X > 0
; Left and right master caution button lights
MasterCaution = L:switch_3481_73X != 0 OR L:switch_4381_73X != 0
; PMDG 737 annunciator does have an 'Anti Ice' entry which is on if either probe heat is off, but these don't seem to be reflected in any A: or L: vars
Vacuum = OFF
; Monitor the 4 hyd pump pressure lights
LowHydPressure = L:switch_161_73X > 0 OR L:switch_162_73X > 0 OR L:switch_163_73X > 0 OR L:switch_164_73X > 0
; PMDG 737 reports 24V to all voltage variables, even if all power is off, so we can't map LOW VOLTS right now
LowVolts = OFF
; PMDG 737 annunciator reports DOORS light for cabin doors, cargo doors, emergency exits, equipment hatch or air stairs
Door = \
    L:FwdLwrCargoDoor > 0 OR L:AftLwrCargoDoor > 0 OR \
    L:FwdLeftCabinDoor > 0 OR L:FwdRightCabinDoor > 0 OR \
    L:AftLeftCabinDoor > 0 OR L:AftRightCabinDoor > 0 OR \
    L:OverwingFwdLeftEmerExit > 0 OR L:OverwingFwdRightEmerExit > 0 OR \
    L:OverwingAftLeftEmerExit > 0 OR L:OverwingAftRightEmerExit > 0 OR \
    L:EEDoor > 0 OR L:AirStairs > 0

### Other information

Edited to add PMDG 737-900 support. Add this to your config.ini in your bravo lights folder to overwrite the default PMDG support until we get this officially supported.
ItzSteveHuh commented 1 year ago

Edited above config to add support for the PMDG 737-900

ItzSteveHuh commented 1 year ago

Added a pull request to add full support. Pull request #64 waiting for merge