Jump to content

DCS-BIOS Discussion Thread


Recommended Posts

New to this, but determined to get it to work!!! I purchased three Arduino Uno boards to use for controlling my cockpit LEDs in my F/A-18C cockpit build. I have been following the tutorial from "whartsell" and things were going good. I had my COM3 port stuck in 'connecting' on the DCS BIOS Interface, but have that working and connected. When I was setting up my EOS Bus (Helios Profile Editor/Profile/Open/FA-18C_V3.0b/Add Interface/EOS Bus) I received the following error (photo included). Why did it happen and how do I correct it? I don't have the A-10 module and trying to get things working with an LED (Master Caution) connected to pin 13 and a push button (Master Caution Reset) connected to pin 10, all using the parts contained in the Arduino Workshop Kit purchased with the Uno. Once I get these two working, I should be able to get the LEDs wired up, connected and working. Any and ALL help will be greatly appreciated. Please go slow with step by step instructions as I am learning this on the fly. I am going to try the Add Interface without the FA-18C_V3.0b step and see what happens, or is this where I am going wrong? I will keep HERE advised on what happens. I have also included the Sketch that I uploaded to the Arduino Uno.

 

Thanks Again,

Wayne

A.K.A hrnet940

e53bf07ac578c2be0d960723652ccd45.thumb.jpg.1b9cc1e2802e04c01aeddc424851777d.jpg

5f75bd0974c45450fc1d31013e8c1ad8.jpg.a167939316cc1254c8d702690e58bd5a.jpg

Wayne Wilson

AKA: hrnet940

Alienware Aurora R3, i7 3820 3.5GHz(4.2GHz setting) processor, EVGA Nvidia RTX 2070 8GB Graphics, 16GB Ram, 1TB SSD.

Link to post
Share on other sites
  • Replies 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

I don't see it in the DCS-BIOS control reference. And I had a brief look at CaptZeen's Helios profile too - same again, no door gunner stuff.

Is it possible to, somehow, change fixed step rotaries to variable step rotaries in DCS BIOS?

Not so trivial - we all learn something new from day to day. Here you go:   You can also put the capacitor below the switch - parallel means it does not interrupt the line to the switc

I was getting a grey screen for Main Instrument Panel when using Helios, but fixed that. I found this (photo attached) sketch that I am using and it 'verify' correctly, but it won't upload. Is this a good sketch to use after I get my COM3 issue fixed? New to this and pulling at strings until something works. I am also watching this video (

) to help me get things figured out.

 

Thanks,

Wayne

776fe857126fe7622d4faf60015f3c2d.jpg.fb1831b5366f451581d441f61f5e3d91.jpg

Wayne Wilson

AKA: hrnet940

Alienware Aurora R3, i7 3820 3.5GHz(4.2GHz setting) processor, EVGA Nvidia RTX 2070 8GB Graphics, 16GB Ram, 1TB SSD.

Link to post
Share on other sites

I clicked a few things and hoped in the F/A-18C for a Free Flight flight and the MASTER CAUTION button was moving when I pushed it. I ended that flight and went to Cold and Dark on the ramp and both the MASTER CAUTION LED and reset switch followed the sim and worked when they should have. My next question is "How do I know what sketch they are following?" I tried a few different ones and modified those after adding the AOA LEDs and they are not working with the LIGHT TEST switch in the cockpit, but the MASTER CAUTION is still working. Patiently waiting ....

 

Thanks,

Wayne

Wayne Wilson

AKA: hrnet940

Alienware Aurora R3, i7 3820 3.5GHz(4.2GHz setting) processor, EVGA Nvidia RTX 2070 8GB Graphics, 16GB Ram, 1TB SSD.

Link to post
Share on other sites

I have my Arduino Uno working and figured out what Sketch to use, the one that opens when I open the program. Sorry for all of the posts here. I guess I am getting the rest of my LEDs wired up in the next few weeks and building my warning lights panel. Thanks for the help. How are people connecting wires to their Arduino Uno? Pictures would be great.

 

Thanks,

Wayne

Wayne Wilson

AKA: hrnet940

Alienware Aurora R3, i7 3820 3.5GHz(4.2GHz setting) processor, EVGA Nvidia RTX 2070 8GB Graphics, 16GB Ram, 1TB SSD.

Link to post
Share on other sites

Hi,

 

Is it possible to mix hid devices with classical dcs-bios arduino panels in DCS-BIOS, I mean without relying on DCS binds, but setting up everything in DCS BIOS?

 

That's because I have a HID throttle, and I would like to control stuff which isn't controllable by binds in DCS, but can be in DCS BIOS.

 

(For instance, the M-2000 UHF PRESET knob has no bind, you can add them in defaults.lua, but it then requires 20 different binds, one for every channel, and 20 HID buttons, which is impratical, you can't have CH+/CH- binds for use

with an encoder)

 

Having a single DCS BIOS config for all controls would be much more practical for a mixed arduino+hid setup.

 

Thanks!

Link to post
Share on other sites

i write you to report a problem:

 

GOt some problem with DCS BIOS , for 2 or 3 days i suffer FPS drops ; i found this in my log :

 

[C]: ?

[string "C:\Users\FiercePC\Saved Games\DCS.openbeta\Scripts\DCS-BIOS\lib\CommonData.lua"]:20: in function 'v'

[string "C:\Users\FiercePC\Saved Games\DCS.openbeta\Scripts\DCS-BIOS\lib\Protocol.lua"]:173: in function 'step'

[string "C:\Users\FiercePC\Saved Games\DCS.openbeta\Scripts\DCS-BIOS\BIOS.lua"]:102: in function 'PrevLuaExportAfterNextFrame'

[string "C:\Users\FiercePC\Saved Games\DCS.openbeta\Scripts/TacviewGameExport.lua"]:65: in function <[string "C:\Users\FiercePC\Saved Games\DCS.openbeta\Scripts/TacviewGameExport.lua"]:58>.

2020-11-23 20:40:53.690 WARNING LOG: 11 duplicate message(s) skipped.

2020-11-23 20:40:53.690 INFO EDTERRAINGRAPHICS41: surface5 gc() LOD 0 63 squares

2020-11-23 20:40:53.710 INFO EDTERRAINGRAPHICS41: surface5 gc() LOD 1 63 squares

2020-11-23 20:40:53.717 INFO EDTERRAINGRAPHICS41: surface5 gc() LOD 2 23 squares

2020-11-23 20:40:53.720 INFO EDTERRAINGRAPHICS41: surface5 gc() LOD 3 13 squares

2020-11-23 20:40:53.720 INFO EDTERRAINGRAPHICS41: surface5 gc() 63.131000 ms

2020-11-23 20:40:53.817 ERROR Lua::Config: Call error LuaExportAfterNextFrame:[string "C:\Users\FiercePC\Saved Games\DCS.openbeta\Scripts\DCS-BIOS\lib\CommonData.lua"]:20: attempt to perform arithmetic on upvalue 'ias' (a nil value)

stack traceback:

 

after disabling DCS bios in my export.lua, no more FPS drop ... any idea ?

 

Best regards

Link to post
Share on other sites
  • 2 weeks later...
On 11/26/2020 at 3:46 PM, BlackLibrary said:

there will be an update! Tests are running in the Flightpanel Fork (master branch) if all goes well HUB gets also updated.

something in DCS has changed with the last updates.

 

@galinette M200C has a Preset knob in BIOS = UHF_PRESET_KNOB

Where are your hub updates posted?  I have v0.10.0+64 and that's the latest I can see here: https://github.com/dcs-bios/dcs-bios/releases/

Link to post
Share on other sites
8 hours ago, BlackLibrary said:

for hub i do only Updates to some modules i have the right for and only if an bug/problem occurs.

then i use the luas from our fork to patch the hub ones. Mostly ther are some other additions included.

But WHERE do you post the files?

Link to post
Share on other sites

Fighting with the search engine and feeling really blonde.  In previous projects I've done things the hard way and not used DCS-BIOS - just using LUA natively. 

 

Finally discovered how crazily easy DCS-BIOS makes pit building with the Hornet.  Just stuck on one little thing - how do you send the basic stuff like pause sim, change view, as these aren't in the aircraft specific modules.  And in the Common Module I can see outputs, but not inputs.

 

I'm sure it is something completely obvious 🙂

 

Thanks

Peter


Edited by bnepethomas
Link to post
Share on other sites
vor 5 Stunden schrieb No1sonuk:

I posted about a problem with the P51 trim data a few months ago:

 

Ah yea dont know were the problem is but switch works. so i have a new readout for the indicator itself. But this i cant upload to HUB because for the rocketcounter i need a new switch that isnt integraded in HUB and cant from my side. In FP Fork its in.

Link to post
Share on other sites
6 hours ago, BlackLibrary said:

Ah yea dont know were the problem is but switch works. so i have a new readout for the indicator itself. But this i cant upload to HUB because for the rocketcounter i need a new switch that isnt integraded in HUB and cant from my side. In FP Fork its in.


The rocket counter thing was a misinterpretation on my part.  That is purely an indicator of which rocket station will fire next and can only be reset, not selected.  So that's not needing a change.

The trim indicator output is the real problem I'm having.  There doesn't seem to be any way to display the indicator needle position.

Link to post
Share on other sites

Hello there. I have installed DCS-Bios on Hard Drive C and DCS open beta at Hard drive E. Dcs bios can not find DcsConnection. I post pictures above.
 I go to my --C:\Users\Admin\Saved Games\DCS.openbeta\Scripts-- open Export.lua. and put manually the the following line to myExport.lua to enable the Virtual Cockpit Connection: But even with that does not work. Any idea what is wrong? 
Also when i go to the botton right corner of the screen to open DcsBios i can not open it.Is that normal?

 

111111111.png

2222.png

3333.png


Edited by slowmover

[sIGPIC][/sIGPIC]

Link to post
Share on other sites
On 12/12/2020 at 9:57 PM, slowmover said:

Hello there. I have installed DCS-Bios on Hard Drive C and DCS open beta at Hard drive E. Dcs bios can not find DcsConnection. I post pictures above.
 I go to my --C:\Users\Admin\Saved Games\DCS.openbeta\Scripts-- open Export.lua. and put manually the the following line to myExport.lua to enable the Virtual Cockpit Connection: But even with that does not work. Any idea what is wrong? 
Also when i go to the botton right corner of the screen to open DcsBios i can not open it.Is that normal?

 

111111111.png

2222.png

3333.png

 

 

This is an issue that should have been fixed ages ago. Not everyone installs their software in the default location!

 

A fix can be found here.....somewhat agricultural but does the job

 

https://forums.eagle.ru/topic/220583-at-a-loss-with-dcs-bios-install/?do=findComment&comment=4120202

i9-9900K @ 5.1 - delided, Gigabyte Aorus Elite MB, Corsair H150i Pro water cooler

64gig G-Skill DDR4@3600, MSI 2080Ti

Winwing Super Taurus, Super Libra, TO and Combat panels

MFG Crosswind pedals, Tek Creations panels

Trackir

Link to post
Share on other sites

Hello fellow DCS-BIOS Users!

I have a strange problem. I have a sketch running own an Arduino Mega clone for the Mi-8 ARK-9 Radio Compass. @Hansolo originally helped me with getting this Sketch written with some complex Pin register tricks. 

It used to work beautifully, then a few months ago I found that getting refuelled/rearmed was very hit and miss, and finally the Ground Crew ignore me altogether if this sketch is running.

After swapping the Arduino out, I established that it is not a hardware issue. I broke the code down and rewrote the sketch, chunk by chunk, and have worked out that the code at fault is for the Frequency Tuner for -10kHz to +20kHz. If I /*---*/ this code out, the sketch works fine and the Ground Crew do what I ask.

In the Mi-8, on the ARK-9 the freq tuner is a potentiometer, and allows adjustment of -10 to +20kHz. In the ARK-15 it is a rotary switch from 0 to 10 in in 0.5 increments, ie 20 (0-19).
So my Sketch has the following code to emulate that, written with the help of Hansolo. The DCS-BIOS code for the rotary encoder uses increments of 3200, so that has been used to emulate the 0.5kHz increments. This code works well for the instrument, but it blocks the Ground Crew.... 

 

 // Check and adjust 1st dial
  if (DCS_valueDial_1 != inputDial_1()) {
    if ( inputDial_1() == 0) {
      sendDcsBiosMessage("ARC9_MAIN_TUNE", "0");
    }
    if ( inputDial_1() == 1) {
      sendDcsBiosMessage("ARC9_MAIN_TUNE", "3200");
    }
    if ( inputDial_1() == 2) {
      sendDcsBiosMessage("ARC9_MAIN_TUNE", "6400");
    }
    if ( inputDial_1() == 3) {
      sendDcsBiosMessage("ARC9_MAIN_TUNE", "9600");
    }
    if ( inputDial_1() == 4) {
      sendDcsBiosMessage("ARC9_MAIN_TUNE", "12800");
    }
    if ( inputDial_1() == 5) {
      sendDcsBiosMessage("ARC9_MAIN_TUNE", "16000");
    }
    if ( inputDial_1() == 6) {
      sendDcsBiosMessage("ARC9_MAIN_TUNE", "19200");
    }
    if ( inputDial_1() == 7) {
      sendDcsBiosMessage("ARC9_MAIN_TUNE", "22400");
    }
    if ( inputDial_1() == 8) {
      sendDcsBiosMessage("ARC9_MAIN_TUNE", "25600");
    }
    if ( inputDial_1() == 9) {
      sendDcsBiosMessage("ARC9_MAIN_TUNE", "28800");
    }
    if ( inputDial_1() == 10) {
      sendDcsBiosMessage("ARC9_MAIN_TUNE", "32000");
    }
    if ( inputDial_1() == 11) {
      sendDcsBiosMessage("ARC9_MAIN_TUNE", "35200");
    }
    if ( inputDial_1() == 12) {
      sendDcsBiosMessage("ARC9_MAIN_TUNE", "38400");
    }
    if ( inputDial_1() == 13) {
      sendDcsBiosMessage("ARC9_MAIN_TUNE", "41600");
    }
    if ( inputDial_1() == 14) {
      sendDcsBiosMessage("ARC9_MAIN_TUNE", "44800");
    }
    if ( inputDial_1() == 15) {
      sendDcsBiosMessage("ARC9_MAIN_TUNE", "48000");
    }
    if ( inputDial_1() == 16) {
      sendDcsBiosMessage("ARC9_MAIN_TUNE", "51200");
    }
    if ( inputDial_1() == 17) {
      sendDcsBiosMessage("ARC9_MAIN_TUNE", "54400");
    }
    if ( inputDial_1() == 18) {
      sendDcsBiosMessage("ARC9_MAIN_TUNE", "57600");
    }
    if ( inputDial_1() == 19) {
      sendDcsBiosMessage("ARC9_MAIN_TUNE", "60800");
    }
  }


This is causing the Ground Crew to not respond to my requests for rearming and refuelling, or repairs. I can however call up the Rearm/Refuel dialog box and make selections of weapons, and fuel, flares etc. Just no acknowledgement or action. Livery/skin can be changed.

So, Wise Men of DCS-BIOS with skills and knowledge, please help! I continue to think about and try amendments to the code, but its all trial and error, and probably misguided, depending on luck rather than info. 

Hope you can help!

 

Thanks,

 

Mol

SCAN Intel Core i9 10850K "Comet Lake", 32GB DDR4, 10GB NVIDIA RTX 3080, HP Reverb G2

Custom Mi-24 pit with magnetic braked cyclic and collective. See it here: Molevitch Mi-24 Pit.

 

[sIGPIC][/sIGPIC] www.blacksharkden.com

bsd sig 2021.jpg

Link to post
Share on other sites

Hi everyone,

 

I am new to DCS-BIOS and would need some help and advice with regards to my button box.

In case this is the wrong forum please feel free to remove this post.

 

The problem:

I am designing a button box for a UH-1 with the aim to make it easier to fly in VR. Rather then always searching for the mouse or so I would like to have a box with to turn noobs or switches for example changing the radio frequency. All of this works.

The problem I have for example is the overhead cabin light panel. There are (should) be 6 rotary switches to control the cabin and background light. I could use 6 rotary switches and map them 1 to 1 but as this is not intended to be a real replica of a cockpit and I am looking for something to make VR flighting easer I am looking for a more practical and cost effective solution.

 

Is there a way to have 1 switch or button execute multiple commands? In this case I rotate 1 rotary switch and in DCS all 6 are rotating?

 

 

Limitations:

Unfortunately I am not a software developer so my ability to read and write code is limited

 

Any help is appreciated. 

 

 

 

Link to post
Share on other sites
2 hours ago, radonk1979 said:

Hi everyone,

 

I am new to DCS-BIOS and would need some help and advice with regards to my button box.

In case this is the wrong forum please feel free to remove this post.

 

The problem:

I am designing a button box for a UH-1 with the aim to make it easier to fly in VR. Rather then always searching for the mouse or so I would like to have a box with to turn noobs or switches for example changing the radio frequency. All of this works.

The problem I have for example is the overhead cabin light panel. There are (should) be 6 rotary switches to control the cabin and background light. I could use 6 rotary switches and map them 1 to 1 but as this is not intended to be a real replica of a cockpit and I am looking for something to make VR flighting easer I am looking for a more practical and cost effective solution.

 

Is there a way to have 1 switch or button execute multiple commands? In this case I rotate 1 rotary switch and in DCS all 6 are rotating?

 

 

Limitations:

Unfortunately I am not a software developer so my ability to read and write code is limited

 

Any help is appreciated. 

 

 

 

Might not help the rotary switch part of your question, but I too built a button box for VR flying. I posted in this forum thinking that DCS BIOs was they way to go but actually you don't need DCS BIOs to  do this. A button box can actually be much more simple to build than this. I used a leo bodnar board and basically just wired the switches I bought on ebay to that. Then it was plug and play. I don't use rotaries just on/on momentary switches to +/-. However my button box is for options that I cant use through the mouse like views, kneeboard, nvgs. I do bind a couple of handy flight controls to it but prefer to keep it to mouse as much as possible. I don't use my keyboard while flying at all as my button box is set out for me to feel the correct switches, rather than see.

 

http://www.leobodnar.com/shop/index.php?main_page=product_info&products_id=205


Edited by Hoirtel
Link to post
Share on other sites

Previously on wrong thread I posted about dcs bios stops responding. I have 10 Arduino 1 uno 2 nano 7 megas running so I started unplugging one at a time and running Dcs I found that the uno with 3.5 led display for CDU were causing the crash. I am going to test with new uno and new 3.5 display. I am going post results as soon as I can. If anyone has had some of the same or similar issue I would like your input thx


Edited by Chickenbone72
Link to post
Share on other sites

@MustangSally

 

I´m trying to get my tekcreations panel to work with the Huey.

 

I saw that link you provided but I reinstalled DCS openbeta to the default path, so I don´t think Fedaykinwolf´s advice will help me. 

 

Here´s where I just installed DCS: "C:\Program Files\Eagle Dynamics\DCS World OpenBeta\bin\DCS_updater.exe" 

 

I also reinstalled DCS-BIOS-Hub-Setup-v0.10.0 to C:\Program Files\DCS-BIOS\ 

 

I click open web interface, then in the browser, com3 is highlighted green and is connected. Virtual cockpit is not however and under lua console > status, DCS connection remains greyed out.   

 

I found another thread where someone installed an older version, but there´s no instructions it seems on how to install these (version 7 was mentioned in the thread).

 

Any help or suggestions would be much appreciated. I have no idea why it´s not working. Lua line was also in the export lua file so ...


Edited by RabidRider
Link to post
Share on other sites
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...