Jump to content

No1sonuk

Members
  • Posts

    1604
  • Joined

  • Last visited

7 Followers

About No1sonuk

  • Birthday 12/31/1971

Recent Profile Visitors

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

  1. There are problems with the DCSBIOSbridge. There are no new versions because the developer left the project a while ago. You'll need to use socat for the time being.
  2. Something a lot of people don't know about DCS-BIOS is that DCS will ignore commands it doesn't recognise for the aircraft being flown. This means you CAN give DCS-BIOS more than one code line for a single switch. DCS-BIOS will send both (or more) commands to DCS and DCS will ignore the "wrong" ones. e.g.: // A-10C UFC Master Caution Switch DcsBios::Switch2Pos ufcMasterCaution("UFC_MASTER_CAUTION", 2); // Button on pin 2 // F-16 DcsBios::Switch2Pos masterCaution("MASTER_CAUTION", 2); // F/A-18 DcsBios::Switch2Pos masterCautionResetSw("MASTER_CAUTION_RESET_SW", 2); Note the pin number is the same for all three, meaning it uses the same switch. That code will send all 3 Master Caution Reset messages when a single button on pin 2 is pressed. DCS will respond only to one of them, depending on which aircraft you are flying. If the message in quotes (e.g. "MASTER_CAUTION" ) is the same for any other aircraft, that aircraft would also respond to the same line and it doesn't need to be duplicated. e.g. DcsBios::Switch2Pos gearLever("GEAR_LEVER", 3); // F18 AND A10C DcsBios::Switch2Pos gearHandle("GEAR_HANDLE", 3); // F16 The "GEAR_LEVER" message is used by both F18 and A10C, so both would respond to that single line, but the F16 needs "GEAR_HANDLE". Note the USB controller (such as Leo Bodnar board) could give you more flexibility for use with other games, but they're dependent on the game as to how buttons are interpreted. Reading the data for your gauges, etc. for multiple modules is a bit trickier , but it can be done.
  3. Just a quick heads-up: Some of the images on this thread, including all in the first post, are "region-locked". I couldn't access them from the UK. I had to switch my VPN to the US.
  4. You might find what you need at Open Hornet ( https://openhornet.com/ ) BUT, some of what they've done there is unnecessary over-engineering.
  5. No1sonuk

    C-130J

    The main issue with switching to DCS from, for example MSFS, is the restricted map coverage and need to pay to expand it.
  6. 3V supply to the pot when it should be 5V?
  7. DCS-BIOS can do it, but I think it would be on an individual switch/button basis. i.e. you'd need to program every button/switch in every aircraft individually. That's A LOT of buttons!
  8. That is the OLD version called "Hub" and is no longer maintained. I DO NOT recommend anyone to use it. IIRC, new modules aren't being added to it. The up-to-date version from the "Skunkworks" GitHub ( https://github.com/DCS-Skunkworks ) has an "older" version number because it was branched off the original DCS-BIOS before "Hub" was made, and hasn't incremented the numbers much. The Skunkworks version, formerly called the "Flightpanels Fork" is actively updated and maintained. Was it really the "old version", or was it the low-numbered Skunkworks version? As for the multiple connections: Tek Creations just today posted in the Skunkworks Discord about some new connection software they say will work with any DCS-BIOS device. I've not tried it, but the link is: https://github.com/tekcreations/TekConnect
  9. You'll have to try it. Some things may have changed by updates. Any reason why you don't want to update the DCS-BIOS?
  10. I initially thought it was like the P-51 ASI that has a non-linear gauge face, but looking at it, and the gauge script, it IS linear: -- Tachometer TachometerGauge = CreateGauge() TachometerGauge.arg_number = 37 TachometerGauge.input = {0.0, 5000.0} TachometerGauge.output = {0.0, 0.5} TachometerGauge.controller = controllers.TachometerGauge This is how the gauge model reacts to the input number. On the Spitfire gauge above, there is only a start and stop, meaning the whole travel is linear. It SHOULD be 0-65535 is the full travel of the gauge. One thing I did see, though - Remove this, and all the other serial lines: Serial.begin(115200); // Starter seriel monitor It can disrupt the USB communications with DCS. If you want to output data while running a game for testing, use an I2C-connected character LCD or other display that doesn't use the USB connection.
  11. 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...
  12. Someone else tried this about 18 months ago. I don't know why he abandoned it. I had a WiFi-connected ESP32/TFT running a CWP program, so it's VERY useful if it works well.
  13. Shift registers, in this context, are a means of converting parallel data into serial. They take the parallel data in and "shift" it out one bit at a time, or take 1 bit in at a time and shift it to parallel. They usually have a way of linking between devices so you can make a chain for more parallel connections than one device can provide. The PISO variety take Parallel In and give Serial Out. You can use this to expand the number of inputs an Arduino can take OR you can use it to convey a large number of inputs through only a few wires - IIRC, this is how TM grips transfer their 20+ button data to the base using a 6 pin mini DIN connector.
  14. The DCSBIOSBridge mentioned CAN do the job, but many people experience lag when using it. There's currently no dev for it, so it should really only be used for testing if all else fails. Rapti's response is the way to go for normal running.
  15. You can see the hidden digits at the edges of the slot in that image. They'd use all 8s - custom 7s would cost too much.
×
×
  • Create New...