Jump to content

DCS-BIOS Discussion Thread


Recommended Posts

  • 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

Hello - I finally was able to make the ECM change for the hornet, but it is still not working in game.

 

Before changes to DCS Bios :

defineTumb("ECM_MODE_SW", 0, 3116, 248, 0.1, {0.0, 0.4}, nil, false, "Dispenser/EMC Panel", "ECM Mode Switch, XMIT/REC/BIT/STBY/OFF")

 

After Changes:

defineTumb("ECM_MODE_SW", 66, 3001, 248, 0.1, {0.0, 0.4}, nil, false, "Dispenser/EMC Panel", "ECM Mode Switch, XMIT/REC/BIT/STBY/OFF")

 

Ardunio code:

const byte ecmModeSwPins[9] = {27, 29, 31, 33, 35};
DcsBios::SwitchMultiPos ecmModeSw("ECM_MODE_SW", ecmModeSwPins, 9);

 

This was working prior to the implementation of the jammer. Any ideas?

Link to post
Share on other sites

problem is: its not done with changing the lua. the json file has still the old valves. and in hub the will not rewrite automatic

i cant tell how this will be done in HUB.

the Flightpanel fliles are incompatible to hub. so sadly i dont have an good solution for you


Edited by BlackLibrary
Link to post
Share on other sites
2 hours ago, BlackLibrary said:

problem is: its not done with changing the lua. the json file has still the old valves. and in hub the will not rewrite automatic

i cant tell how this will be done in HUB.

the Flightpanel fliles are incompatible to hub. so sadly i dont have an good solution for you

 

okay - I think I'll make the shift to your fork. I'm having an issue though with the installation instructions here: https://github.com/DCSFlightpanels/DCSFlightpanels/wiki/Installation

 

It says to "click on assets to expand a list of downloadable files"... where is the assets link? I do not see that anywhere.


**Nevermind - I figured it out, I think***


Edited by Guppy
Link to post
Share on other sites

yes that needs somne redo in the future.

You need the "Dev" version

 

release Versions are bsed on the stable DCS Versions

for beta on the main side hit the green "Code" button and save it as zip

 

unzip and put the script folder in your Savegames of you DCS Version.

 

but think of the export.lua. not override yours if you use some other things to

Link to post
Share on other sites

So I am so confused as to what files I need to download.

Here is what I did: I went here: https://github.com/DCSFlightpanels/dcs-bios and clicked the green code button. From there I downloaded it as a .zip.

I linked the doc folder to chrome for the control references.

I added "dofile(lfs.writedir()..[[Scripts\DCS-BIOS\BIOS.lua]])" to my export script. I commented out DCSBIOS Hub's line so that it will not be executed.

 

I went to: H:\DCS BIOS_old fork\DCS-BIOS\Programs and launched the multiple com ports.cmd and got the following error:
'socat\socat' is not recognized as an internal or external command,
operable program or batch file.

 

I have no idea, at this point, how to link my arduino boards on COM3,4,5,6,7,8,9 to get them to work.
 

 

Link to post
Share on other sites
  • 1 month later...

I need the help of someone who knows how to write code. For my TACAN I'm using mega2560 and TM1637 4digits .

it does not work

 

 

#define DCSBIOS_IRQ_SERIAL
#include "DcsBios.h"
#include <TM1637TinyDisplay.h>
#include <LedControl.h>

//FIRST - 4 DIGIT 7 SEGMENT DISPLAY-  tacan
// Module connection pins (Digital Pins)
#define CLK 2
#define DIO 3
TM1637TinyDisplay display(CLK, DIO); //set up the 4-Digit Display

DcsBios::Switch2Pos tacanTestBtn("TACAN_TEST_BTN", 23);
DcsBios::LED tacanTest(0x10da, 0x0400, 13);
DcsBios::PotentiometerEWMA<5, 128, 5> tacanVol("TACAN_VOL", A0);
const byte tacanModePins[5] = {4, 5, 6, 7, 8};
DcsBios::SwitchMultiPos tacanMode("TACAN_MODE", tacanModePins, 5);
DcsBios::Switch2Pos tacanXy("TACAN_XY", 22);
DcsBios::RotaryEncoder tacan10("TACAN_10", "DEC", "INC", 9, 10);
DcsBios::RotaryEncoder tacan1("TACAN_1", "DEC", "INC", 11, 12);


void setup() {
display.setBrightness(7);
DcsBios::setup();
}
void onTacan10Change(unsigned int newValue) {
display.showNumberDec(newValue);    
}
DcsBios::IntegerBuffer tacan10Buffer(0x1158, 0x0f00, 12, onTacan10Change);


void onTacan1Change(unsigned int newValue) {
display.showNumberDec(newValue);   
}
DcsBios::IntegerBuffer tacan1Buffer(0x1158, 0xf000, 9, onTacan1Change);


void onTacanChannelChange (char * newValue){ 
display.showNumberDec(newValue);

}
DcsBios :: StringBuffer <4> tacanChannelBuffer (0x1162, onTacanChannelChange);


void loop() {
  DcsBios::loop();

}

 

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

    No registered users viewing this page.

×
×
  • Create New...