jrsteensen / OpenHornet-Software

Repo for all the software that brings OpenHornet to life!
Other
23 stars 9 forks source link

Feature - 2A13 Backlight Controller for LC (PoC) #108

Open viajandee opened 6 months ago

viajandee commented 6 months ago

Description

This feature enables the backlight of the Left Console panels to work with DCS Bios. Both Channel 1 (7 panels) and Channel 2 (6 panels) are included in the code. It listens to DCS Bios ConsoleIntLt status and turns the panel backlights on/off. The backlight mode encoder on the SIM Power panel works to dim the panel backlights as well as the Sim console backlights. It was tested working with other functions that are closely related such as the instrument lights. This is a PoC for the side consoles backlight to test behaviour and add additional functionalities.

Closes # N/A

Dependencies

Type of change

Checklist:

How Has This Been Tested?

Description of Testing

  1. Connect ABSIS Backlight Controller to Arduino Mega
  2. Connect Arduino Mega to IDE and upload the sketch
  3. Connect the LC Panels to the ABSIS Backlight Controller as per the Interconnect (Channels 1 and 2)
  4. Run DCS and make sure that the Arduino Mega port is open in DCS-BIOS Bridge
  5. Start a mission in DCS Test 1: Load the F/A 18C Hornet Expected Result: The panel backlights are initiated in the off position Test 2: Turn the Console Lt Dimmer up while cold and dark Expected Result: Console backlights stay off Test 3: Set the dimmer to half and press Win+Home, wait for the first engine to start Expected Result: The console backlights should turn on and sync once one of the engines comes live and the panel backlights in the sim turn on Test 4: Change the Console Lt Dimmer in the sim Expected Result: the panels brightness should change accordingly Test 5: Change the LT Mode encoder on the SIM Power panel Expected Result: The Console Lt Dimmer should change accordingly and at the same rate (i.e. completes full turn at the same time the encoder completes the turn) Test 6: Turn off the engines Expected Result: The panel backlights should turn off as a result of losing power Test 7: Toggle SIM Power Switch off Expected Result: All panel backlights should turn off IMPORTANT: Use Skunkworks's DCS_BIOS for the BL code to work

Test Configuration