Jump to content

DSoldano

Members
  • Posts

    14
  • Joined

  • Last visited

1 Follower

About DSoldano

  • Birthday November 10

Personal Information

  • Flight Simulators
    DCS World A10-C II, MSFS2020, X-Plane 11
  • Location
    North Carolina, USA
  • Interests
    Aviation, Flight Simulation, Electronics

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Figured it out. Encoder.h had the default set to 1 step per detention rather than 4. Must have been set that way when I downloaded the Arduino library because I never changed it.
  2. I've got my UHF Radio working except for a strange problem with my rotary encoders. They are the standard 4 step per detent that DCS BIOS expects and normally corrects for. However, they jump by 4 values per detent. If I change the preset channel by 1 detent it actually jumps by 4 (from 1 to 5 for example). If I rotate the encoder slowly, I can watch it single step between detents, ending up 4 values higher (or lower depending on rotation direction) at the detent stop. Everything else works just fine. Anyone have any ideas? I'm just using the standard code snippets from the DCS BIOS Reference. DcsBios::RotaryEncoder uhfPresetSel("UHF_PRESET_SEL", "DEC", "INC", 15, 14); Dominick
  3. Agrasyuk, Thank you. There are a number of online tools that will convert a TGA font to a True Type Font. I haven’t used them before but I will give them a try. I’m guessing that since the Nextion has it’s own fast processor and I only need to send it string values for the CDU lines it should be much faster and avoid the refresh delays that many report when using an Arduino with a TFT + Shield. If it works I will probably use the same solution for the ARC-210. Code to follow if I’m successful. Dominick
  4. Does anyone have or know of a windows font that matches the A10 CDU? I’m planning to use a Nextion Display for the screen. Nextion allows you to generate a display font from a standard windows font so I’d like to find or generate one if I can. thanks Dominick
  5. I got it working. I installed the library just fine. There were 2 issues. One, it wasn't liking the Potentiometer<EW......> definition with the brackets at the end and the other was that the Switches.h and Poteniometers.h files didn't have the .pollInputCurrent(); method defined as I was using modified files. Once I changed all of the Potentiometer definitions by deleting the brackets and added the modified code (new public methods) to the .h files it worked just fine. The added methods - intIntVol.pollInputCurrent(); - reads the state of a switch or pot on startup and sets the control in DCS World to match so your physical and virtual cockpits are synced at startup. I wish I could apply it to my Warthog HOTAS as well - I have to physically switch those and move the throttles to get it to read them initially - but at least I don't have to do it for every panel. If you want those .h files I'm happy to send them to you. Dominick
  6. No1sonuk, I downloaded the FlightPanels version of DCS-BIOS (DCS BIOS MAster) and I am unsure how to install it. I put the updated Arduino Library (dcs-bios-arduino-library-master) in my libraries folder and now when I try to compile I get an error for every control, for example "cannot declare variable 'intIntVol' to be of abstract type 'DcsBios::PotentiometerEWMA<>'". Everything compiled fine before the new library was added. Any idea what I'm doing wrong? Dominick
  7. No1sonuk, Thanks. Actually a lot of the SwitchMultiPos have array dimensions that don’t match the sim. I’ll try to find the updated files on flightpanels. Dominick
  8. No1sonuk, maybe I have an old version. I copied this straight from the interactive control reference. The only thing I changed were the PIN numbers. const byte intModePins[9] = {22, 24, 26, 28, 30}; DcsBios::SwitchMultiPos intMode("INT_MODE", intModePins, 9); I’ll check. Dominick
  9. Problem Solved - It is either the issue that No1sonuk mentioned above or just some really noisy switches and probably a lack of understanding of how the DCS BIOS SwitchMultiPos works. I played around with the code and changed the bit array to intModePins[9] = {22, 24, 26, 28}; which is only 4 pins but the last position (BLANK - 5th position on the rotary switch) still works for some reason - seems very strange to me. Then I added a intMode.pollInputCurrent(); to the loop so that even if there is spurious noise it pulls the in sim dial back to the condition the switch finally settles down to. Not an idea solution as there is an occasional stutter in the dial but it works for now. Dominick
  10. No1sonuk, Thanks for the response. I think I may not understand how the pin array works. When I first started programming I had some strange behavior when I didn't explicitly set the pin mode to INPUT_PULLUP but these are all set so that's not it. The DCS BIOS definition for the control is: Intercom Selector Switch INT/FM/VHF/HF/Blank - so there are 5 positions (one is blank) and you can turn the switch in the aircraft to the blank position. Unless I'm not understanding the definition. I'll keep plugging away at it. Dominick
  11. I'm just finishing up my A10-C Intercom Panel and I'm having some trouble getting the Mode Dial to work correctly. I'm using a 12 position rotary switch with the limiting ring set for 5 positions. I have the center post wired to ground and then switch pins 0, 1, 2, 3, 4 wired to the Arduino Mega digital pins 22, 24, 26, 28, 30. Here's my code: const byte intModePins[9] = {22, 24, 26, 28, 30}; DcsBios::SwitchMultiPos intMode("INT_MODE", intModePins, 9); When I turn the switch it jumps around to various positions (Blank, FM, Blank, HF, Blank) then when I go back to position 0 it goes (Int, Blan, FM, Blank, Blank). I have no idea what's going on. Any ideas? Dominick
  12. I just programmed my first panel, the Fuel System Control Panel (FCSP). I have all of the other switches and buttons on the FCSP connected and working for the A10-C II but I can't find a command reference for the RCVR LT (Receiver Light) potentiometer. Am I missing something or is there no control available in DCS BIOS? Thanks Dominick
  13. Crosshairs, This looks great. Anyway I can get your Eagle files? I’d like to modify it so the switch matrix operates on 5V and the LEDs operate on 12V so they can run off my dimmer circuits? Thanks Dominick
×
×
  • Create New...