Jump to content

AH-64D Cockpit Armament Panel Switch LEDs are not working correctly with DCS-BIOS


Recommended Posts

Posted (edited)

Hi guys,

I'm having problems with the Armament Panel switch LED outputs via DCS BIOS. I'm using an Arduino Mega 2560 controller with the latest Arduino IDE 2.3.5 and DCS 2.9.15 9599 MT. I’m using the latest DCS-Bios version from DCS-Skunkworks.

With the code below, the connected LED ("ON") only flashes once briefly when I press the PLT_GROUND_OVERRIDE_BTN. If I hold the switch, the LED stays lit until I release it. I operate the switch with the mouse in the cockpit.

#define DCSBIOS_IRQ_SERIAL

#include "DcsBios.h"

/* paste code snippets from the reference documentation here */

DcsBios::LED pltGroundOverrideBtn(0x86f4,0x4000, 3);

void setup() {
DcsBios::setup();
}

void loop() {
DcsBios::loop();
}

The same applies to the PLT_MASTER_ARM_BTN.

To test if there is anything wrong with the LED, I ran the code below. With the code the Right Position Light behaves as expected. The LED lights up constantly when I turn the light on and off with the corresponding switch in the cockpit.

#define DCSBIOS_IRQ_SERIAL

#include "DcsBios.h"

/* paste code snippets from the reference documentation here */

DcsBios::LED extPositionLightLeft(0x8736, 0x0800, 3);

void setup() {
DcsBios::setup();
}

void loop() {
DcsBios::loop();
}

I'm hoping someone can help me. I've been tinkering with the cockpit for ages and spent a lot of money. Hopefully, this won't let fail the project.

Edited by Pikas62

_________________

PC: Win 10 Pro 64bit, Ryzen 7 5800X3D, 64GB RAM, GForce RTX 4090.

Cockpit & HOTAS: VKB Gunfighter MKIII with MCG PRO, Vipril MT-50 CM2, Virpil Rotor Plus & SharKa-50 grip, Thrustmaster TPR, Virpil SharKa-50 Control Panel, WinWing Phoenix MIP, WinWing PTO & PCR, Total Control Apachte MPD frames, several DIY panels, NLR GTTRACK, NLR Motion V3, ButtKicker Gamer PLUS

VR: Varjo Aero, HP Reverb G2

  • Pikas62 changed the title to AH-64D Cockpit Armament Panel Switch LEDs are not working correctly with DCS-BIOS
Posted (edited)

Your code is doing exactly what you told it to because you are using the code lines for the BUTTON position, not the light.
DcsBios::LED pltGroundOverrideBtn(0x86f4,0x4000, 3);  gives you the position of the button, so the light will go on and off when the button is pressed and released.

What you need is the ground override INDICATOR:

Pilot Ground Override Indicator (green)AH-64D/PLT_GROUND_OVERRIDE_L
 
DcsBios::LED pltGroundOverrideL(AH_64D_PLT_GROUND_OVERRIDE_L_AM, PIN);

It's in the "PLT INTERNAL LIGHTS" group.

The Master Arm lights are there too...

Edited by No1sonuk
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...