Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Draft
wants to merge 14 commits into
base: develop
Choose a base branch
from

Conversation

viajandee
Copy link

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

  • Adafruit NeoPixel.

Type of change

  • New software module (new software module for slave)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update outside of the automatically-generated Doxygen documentation.

Checklist:

  • My code follows the style guidelines of this project
  • I have complied with the software manual for this project
  • I have performed a self-review of my own code
  • I have commented my code fully with Doxygen compatible comments, particularly in hard-to-understand areas
  • I have made corresponding changes to non-Doxygen generated documentation
  • I have ran Doxygen locally, and it builds the docs successfully
  • My changes generate no errors on compile in Arduino IDE
  • My changes generate no new warnings on compile in Arduino IDE
  • Any dependent changes have been merged and published in downstream modules
  • (For sketches only) This sketch complies with OH-INTERCONNECT v10
  • If this sketch requires additional libraries, I have added it as a sub-module per the Arduino Libraries section of the Software Manual.

How Has This Been Tested?

  • I have tested the sketch in-circuit in DCS with DCS-BIOS and outputs (displays, LEDs, etc.) function as expected.
  • I have tested the sketch in-circuit in DCS with DCS-BIOS and HID inputs (switches, pots, etc.) function as expected, with switches moving the correct direction.
  • I have tested the sketch in-circuit in DCS with DCS-BIOS and any logic in the sketch has been tested and functions as expected.
  • This code has not yet been tested in-circuit.
  • This code has not yet been tested in DCS-BIOS.

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

  • Firmware version:
  • Hardware: ABSIS ATX PSU Breakout, ABSIS Backlight Controller, Left Console Panels
  • Toolchain:
  • SDK:

@viajandee viajandee marked this pull request as draft May 22, 2024 02:27
@jrsteensen jrsteensen linked an issue Sep 30, 2024 that may be closed by this pull request
16 tasks
@jrsteensen jrsteensen added this to the v0.1.0 milestone Sep 30, 2024
@jrsteensen jrsteensen added Category: Embedded This issue affects a specific embedded microcontroller software (i.e. an Arduino Sketch). P3 Medium Priority: A defect with this priority must be in contention to be fixed as it could also deal S2 Major Severity: Any Major feature implemented that is not meeting its requirements/use case(s) and b Type: Enhancement New feature or request. labels Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Embedded This issue affects a specific embedded microcontroller software (i.e. an Arduino Sketch). P3 Medium Priority: A defect with this priority must be in contention to be fixed as it could also deal S2 Major Severity: Any Major feature implemented that is not meeting its requirements/use case(s) and b Type: Enhancement New feature or request.
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

[NEW SKETCH]: 2A13-BACKLIGHT_CONTROLLER.ino
4 participants