

bigdave32
Members-
Posts
12 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by bigdave32
-
Bound HDG and CRS knobs moving too much
bigdave32 replied to Fish's topic in Controller Questions and Bugs
I've discovered a way to fix rotary knobs or buttons that move things in the cockpit too fast including Heading Knob, Course Knob and most notably the Altimeter Pressure Setting Knob. Using DCS Bios I never had an issue with one button press or rotary knob click moving a dial more than one click, but with generic PC controllers made using LeoBodnar boards, I do. I added the line below to my default.lua in the "Mods" folder of the install directory for DCS (DCS World OpenBeta -> Mods -> Aircraft -> A-10C_2 -> Input -> A-10C_2 -> joystick) You must use Notepad++ in admin mode when editing the file. Whenever DCS gets an update you have to add it back in again. It makes these bindings move the dial only one position with each click of the joystick button or knob. I also included a screensnip of lines 953-976 where it fits into my default.lua coding --HSIdown {down = iCommandHSI_HeadingRotaryRight, cockpit_device_id = device_id, value_down = 0.5, name = _('HSI Heading step right'), category = _('Systems')}, {down = iCommandHSI_HeadingRotaryLeft, cockpit_device_id = device_id, value_down = -0.5, name = _('HSI Heading step left'), category = _('Systems')}, {down = iCommandHSI_CourseRotaryRight, cockpit_device_id = device_id, value_down = 0.5, name = _('HSI Course step right'), category = _('Systems')}, {down = iCommandHSI_CourseRotaryLeft, cockpit_device_id = device_id, value_down = -0.5, name = _('HSI Course step left'), category = _('Systems')}, --Altimeterdown {down = iCommandAltimeterPressureIncrease, cockpit_device_id = device_id, value_down = 0.5, name = _('Altimeter Step Up'), category = _('Systems')}, {down = iCommandAltimeterPressureDecrease, cockpit_device_id = device_id, value_down = -0.5, name = _('Altimeter Step Down'), category = _('Systems')}, -
Momentary Toggles and 3-position switches
bigdave32 replied to bigdave32's topic in Controller Questions and Bugs
I've used joystick gremlin before to manipulate the way a gamepad functions, giving it's D-pad button assignments. How would I use it to make the momentary toggles work? -
I have a Virpil CM3 and have built my own button box add-on that uses the same type of momentary toggle switches that the Virpil has on the bottom left. I am trying to figure out how to code/bind these switches to operate things like the master arm or autopilot in the A-10 cockpit. I am still new to toying with default.lua but I see the Flaps Up and Flaps Down work in a way that it raises or lowers the switch, not worrying about triggering a set position, just adjusting it up or down 1 position. The master arm and autopilot switches don't have this functionality in the bindings. I'm coming from the F/A-18C which has options like this using what looks like coding for ctrl_commands for moving a value up or down, regardless of it's current state. Is it possible to set up a momentary toggle to move the master arm switch up or down independent of whether you want Train, Safe, or Arm in the A-10?
-
@No1sonuk This did the trick. Still learning the ins and outs of this arduino programming but is the WIBBLE is just a random word you added to the end to make the bleedAirKnob name unique or does it serve some purpose / already exist in the DCS Bios F/A-18C library? Is the "BLEED_AIR_KNOB" portion of code after the parenthesis the reference that is looked up by the code to make the command work? I was under the impression that all the buttons (i.e. Switch2Pos apuControlSw or ActionButton bleedAirKnob, etc.) all had to be predefined in the F/A-18C DCS Bios Library I had downloaded. Thanks for this help everyone. I look forward to more building, designing, coding for future modules. Quite fun!
-
Thanks, this code works for my purposes. The rotary encoder to the right advances the knob while going to the left resets it back to 0. It's not 1-to-1 movement to match the jet but allows me to go mouse free in the cockpit. Finding an actual, 90 degree turning rotary switch would be the best as was posted by Sting and Ben but those were expensive to find / complicated to modify. I don't know that my initial idea is even possible, that is having the click of the rotary encoder activate the set state to "0" while the rotation remains on "DEC" and "INC". If I try to program a Switch2Pos for the bleedAirKnob and use the rotary encoder push, their is a conflict because I am listing the bleedAirKnob twice. I guess I'd have to edit the F/A-18C DCS Bios library to create a second entry for the bleedAirKnob?
-
I'm a noob at arduino programming but have used the DCS Bios control reference to effectively code all my homemade control surfaces. If anyone is willing to help with what code I can use to have the rotary button press register the bleed air knob to state "0", I'd appreciate it. In the meantime I'll keep digging into the coding tutorials and documentation to see how much I can learn on my own. Right now I am using this line to indicate the increase and decrease of the knob on the rotary switch: DcsBios::RotaryEncoder bleedAirKnob("BLEED_AIR_KNOB", "DEC", "INC", 19, 20); The button press of the rotary knob is connected to pin 18.
-
I have looked around the forum but haven't seen a solution for effectively using a rotary knob to operate the bleed air switch since the "increase" and "decrease" function of the rotary will not let you go from state "3" (R OFF) to state "0" (OFF). A rotary knob doesn't appear to allow you to make the 360 degree rotation that is required when doing a complete cold startup. Wondering if there is a work around I might be missing? Maybe their is a way to program the arduino to go to state "0" (OFF) when you click the rotary button? That wouldn't be 1-to-1 as in the cockpit but would at least be functional for my custom control panel without having to reach for the mouse.
-
DCS Bios and the Exterior Lights Switch on the Throttle
bigdave32 replied to bigdave32's topic in Home Cockpits
Oh, F/A-18C, btw -
I've built an extension to my virpil cm3 throttle and wanted to put the exterior lights switch on it. I know it's normally the switch at the end of the throttle but I've build my setup for VR and decided to put all the lighting controls together in one place to overcome my "VR blindness" and searching for knobs. (I currently use the rotary and push button on the end of the cm3 for the kneeboard). I don't see a programming line for the exterior lights throttle switch in the DCS Bios Control Reference. Can anyone help me figure this out? I am new to DCS Bios but understand it well enough to have everything else programmed and working correctly. I'm guessing the exterior lights switch is just not defined in the library? I'm not sure how to add it in. Thanks for any help.
-
I'm not sure what I've done to mess this up, but when use the keybind for View Cockpit Zoom In/Out it goes to max zoom in or max zoom out with one press rather than in gradual increments. Any help is appreciated. -Dave
-
DCS World FC3 Training can't install
bigdave32 replied to bigdave32's topic in Lock On: Flaming Cliffs 1 & 2
I went to the DCS site and found the video lessons for download and manually installed each download and that seems to have done the trick for the FC3 training in DCS World. -
I just purchased the FC3 module and DCS World and FC3 installed. I opened DCS World went to training, clicked the FC3 tab and noticed it says Install (EN). I clicked Install (EN) and it dropped out of the game, downloaded a bunch of stuff (took forever, left it overnight) and then when it tried to apply what it downloaded I get this message: create("C:\Program Files\Eagle Dynamics\DCS World\bin/DCS_updater.exe"): (5) Access is denied. I found this thread: http://forums.eagle.ru/showthread.php?t=95254 and he said setting the .exe files in the DCS World /bin directory to run as admin allowed him to install the update. I did the same but to know avail. Any help is appreciated. Thank you.