joeherwig / A32nx-LINDA-aircraft-module

a32nx
GNU General Public License v3.0
4 stars 4 forks source link

Update Overhead Internal Lights and Signs #58

Closed scotflieger closed 2 years ago

scotflieger commented 2 years ago

Add overhead internal Seat Belt, No Smoking, Emergency Exit and Annunciator Lights.

scotflieger commented 2 years ago

Wrong Seat Belt switch Lvar used. The API definition defines the switch position as a SimConnect Variable CABIN_SEATBELTS_ALERT_SWITCH which translates to a FSUIPC Offset 0x341D.

scotflieger commented 2 years ago

API defines Dome light as a SimConnect Event TOGGLE_CABIN_LIGHT and a MSFS Var LIGHT_POTENTIOMETER:7. These translate to FSUIPC Controls 66579 and 66911 respectively. Neither operates the switch or returns the switch position. A local variable is needed to track the Dome Switch position (2 = off, 1 = dim and 0 = brt).

scotflieger commented 2 years ago

While the FSUIPC Control 66911 operates the DOME light correctly it only moves the switch between BRT and DIM. The OFF switch position is not working. Do not use Control 66579 as this adversely affects control of the DOME light and possibly the Overhead Panel Integral Lights.

scotflieger commented 2 years ago

If the switch is moved to the OFF position using the mouse in VC, Control 66911 no longer works for some unknown reason.

scotflieger commented 2 years ago

Following advice from the FBW team, there are some necessary changes required. Control 66579 (TOGGLE_CABIN_LIGHT) is required to move switch to and from the OFF position. This needs to be combined with Control 66911 (LIGHT_POTENTIOMETER:7) with parameter (BRT=100, DIM=50, OFF=0). As there is no Lvar to determine the switch position a local variable A32NX_Dome is used to test for use of 66579. However, if the switch is moved with the mouse this can go out of sync needing a frig to make it all work.