Jump to content

hitmanalpha1

Members
  • Posts

    32
  • Joined

  • Last visited

Everything posted by hitmanalpha1

  1. Here are a few of the Axis commands Ive added to the "Joystick Axis Lua" {action = device_commands.WINGSWEEP_EmergencySweepLever, cockpit_device_id=devices.WINGSWEEP, name=_('Emergency Wing Sweep')}, {action = device_commands.RADIO_ICS_Vol_Sidewinder, cockpit_device_id=devices.ICS, name = _("ICS Sidewinder Volume")}, {action = device_commands.RADIO_ICS_Vol_ALR67_Pilot, cockpit_device_id=devices.ICS, name = _("ICS ALR-67 Volume")}, {action = device_commands.RADIO_VHF_VOL_PILOT, cockpit_device_id = devices.ARC182, name = _("ARC-182 Volume")}, {action = device_commands.RADIO_ICS_Vol_Pilot, cockpit_device_id = devices.ICS, name = _("ICS Volume")}, {action = device_commands.LIGHTS_Console, cockpit_device_id = devices.COCKPITMECHANICS, name = _("Console Light Intensity")}, {action = device_commands.LIGHTS_ACMPanel, cockpit_device_id = devices.COCKPITMECHANICS, name = _("ACM Panel Light Intensity")}, {action = device_commands.LIGHTS_Formation, cockpit_device_id = devices.COCKPITMECHANICS, name = _("Formation Light Intensity")}, {action = device_commands.LIGHTS_Instruments, cockpit_device_id = devices.COCKPITMECHANICS, name = _("Instrument Light Intensity")}, {action = device_commands.AoA_IndexerStrength, cockpit_device_id = devices.AOASYSTEM, name = _("AoA Indexer Light Intensity")}, {action = device_commands.Temperature, cockpit_device_id = devices.COCKPITMECHANICS, name = _("A/C Temperature")}, {action = device_commands.TACAN_Knob_Vol_Pilot, cockpit_device_id = devices.TACAN, name = _("TACAN Volume")}, {action = device_commands.RADIO_UHF_BRT_Pilot, cockpit_device_id = devices.ARC159, name = _("UHF ARC-159 Display Brightness")}, {action = device_commands.RADIO_UHF_VOL_Pilot, cockpit_device_id = devices.ARC159, name = _("UHF ARC-159 Volume")}, Im working on more. Will add them over time. Ive also done a bunch of stuff for the keyboard lua to help with toggle switching.
  2. You can add these yourself. I added all the volume and brightness knobs to my joystick axis lua. I’m using pots with a Leo Bodnar joystick card to control all of them. I haven’t created the heading/course knobs yet but I’m sure they will work also. I’ll try to remember to post my code so you can add it to your lua. If you want them anyway? If you have specific ones please let me know and I’ll see what I can do.
  3. Can any of this be exported to a small lcd screen or is it streamdeck only?
  4. I'm working on my Tomcat ACM Panel. Anyone with more knowledge than me know what code to use (if possible) to make my LED blink when the Weapon Store is in the "Ready" state? I'm trying to not use a bi-color LED. I would prefer to have one white LED per weapon station. I want the LED to be steady on for "Store" (Which works perfectly now) but blink the LED if its "Ready" to be fired. Here is my code, the ones with the \\blink comment are the ones I need. I'm thinking the delay command but cant figure out what I need to do. It may not be possible. /* Tell DCS-BIOS to use a serial connection and use interrupt-driven communication. The main program will be interrupted to prioritize processing incoming data. This should work on any Arduino that has an ATMega328 controller (Uno, Pro Mini, many others). */ #define DCSBIOS_IRQ_SERIAL #include "DcsBios.h" DcsBios::LED pltWeaponStore1aStoreL(0x12e0, 0x0200, 2); DcsBios::LED pltWeaponStore1aReadyL(0x12e2, 0x0002, 2); //blink DcsBios::LED pltWeaponStore1bStoreL(0x12e0, 0x0400, 3); DcsBios::LED pltWeaponStore1bReadyL(0x12e2, 0x0004, 3); //blink DcsBios::LED pltWeaponStore3StoreL(0x12e0, 0x0800, 4); DcsBios::LED pltWeaponStore3ReadyL(0x12e2, 0x0008, 4); //blink DcsBios::LED pltWeaponStore4StoreL(0x12e0, 0x1000, 5); DcsBios::LED pltWeaponStore4ReadyL(0x12e2, 0x0010, 5); //blink DcsBios::LED pltWeaponStore5StoreL(0x12e0, 0x2000, 9); DcsBios::LED pltWeaponStore5ReadyL(0x12e2, 0x0020, 9); //blink DcsBios::LED pltWeaponStore6StoreL(0x12e0, 0x4000, 6); DcsBios::LED pltWeaponStore6ReadyL(0x12e2, 0x0040, 6); //blink DcsBios::LED pltWeaponStore8aStoreL(0x12e2, 0x0001, 7); DcsBios::LED pltWeaponStore8aReadyL(0x12e2, 0x0100, 7); //blink DcsBios::LED pltWeaponStore8bStoreL(0x12e0, 0x8000, 8); DcsBios::LED pltWeaponStore8bReadyL(0x12e2, 0x0080, 8); //blink void setup() { DcsBios::setup(); } void loop() { DcsBios::loop(); }
  5. Here is how I did mine. This is my prototype. I used a 11 detent pot. The rest I 3d printed. I will reprint the wheel in white for the final project.
  6. So anyone here really good at coding DCS Lua files for button binding? I’ve managed to create and add quite a few buttons binds and axis binds that I wanted for the F14. I’ve also used some of the ones from the other DCS forum post. My goal is to not use Arduino/DCS-Bios for binding except only where absolutely necessary. I still will obviously use it for outputs where needed. So here’s the main one I’m stuck on. The Master Test switch! I can make it work perfectly with a rotary encoder (with push button) using DCS Bios. However, I’m wanting to just hook my push button rotary encoder to my Leo Bodnar card and do the same thing. I’ve managed to make it sorta work. I can push/pull the button and make it rotate to the first position and back to off. (Or really any position and back to off) I can’t seem to make it continuously rotate to the next position. Anyone got a clue? Here’s my code so far for attempting to rotate the selector: {down = device_commands.BIT_Selector, cockpit_device_id = devices.BITPANEL, value_down = .1, value_up = 0, name = _('MTS Inc'), category = _('-Pmods')}, {down = device_commands.BIT_Selector, cockpit_device_id = devices.BITPANEL, value_down = -.1, value_up = 0, name = _('MTS Dec'), category = _('-Pmods')}, Here is my code for the push button (that lifts the selector) that works perfectly: --BITPanelTEST {down = device_commands.BIT_SelectorPush, up = device_commands.BIT_SelectorPush, value_down = 1, value_up = 0, cockpit_device_id = devices.BITPANEL, name = _('Selector Lift'), category = { _('-Pmods')}}, any help would be appreciated or just tell me it can’t be done lol!
  7. Somewhere I saw a key binding for the Master Test Switch. I put it in my lua and it worked! Now I accidentally over wrote my bindings and its gone. Now I cant find the post again. Can anyone help!!?? lol!
×
×
  • Create New...