Jump to content

Marcin_B

Members
  • Posts

    37
  • Joined

  • Last visited

Everything posted by Marcin_B

  1. Does your soft HFS (HP8) work after the last DCS update?
  2. I found the reason: the VA window was on top and DCS must be active Thanks for your help!
  3. Yes for keyboard in F-4 pilot profile
  4. Hello, I have a problem with the F-4 file: VA recognizes the command but there is no reaction. Where could be the problem?
  5. Hi. I have a problem with mission 8. After an air fight, the wingman crashes every time and the plane bounces off the water like a ball. Does anyone else have such a bug?
  6. The mission is still not working :(
  7. Unable to get clearance to taxi engine start or take off from Nellis tower.. Unable to communicate with wingman (yes I'm on correct freq) Rebooted and reloaded the mission and same issue. Reading through the threads here it appears this issue has occurred on other missions in this campaign. Any ideas?
  8. I found problem: my Uno works wrong. Under Arduino Mega2560 all works fine. Thx Ian
  9. Hi! I have any problem with NMSP in A-10C module. The LED's work the opposite way than in the module: in module is ON, in panel is OFF. Where is problem? My scatch: #define DCSBIOS_IRQ_SERIAL #include <DcsBios.h> DcsBios::LED nmspHarsLed(0x1110, 0x0200, 3); DcsBios::LED nmspEgiLed(0x1110, 0x0800, 4); DcsBios::LED nmspTislLed(0x1110, 0x2000, 5); DcsBios::LED nmspSteerptLed(0x1110, 0x8000, 6); DcsBios::LED nmspAnchrLed(0x1112, 0x0002, 7); DcsBios::LED nmspTcnLed(0x1112, 0x0008, 8); DcsBios::LED nmspIlsLed(0x1112, 0x0020, 9); void onDcsBiosFrameSync() { } void setup() { DcsBios::setup(); } void loop() { DcsBios::loop(); } I use DCS BIOS v 0.5.2 and library 0.2.11 Arduino Uno.
  10. Also doesn't work. Physical connections are correct. I tried to use Uno and Mega2560 - with no effect. Arduino Uno DCS-BIOS 0.5.0 DCS Arduino library 0.2.3
  11. Example below: #define DCSBIOS_IRQ_SERIAL #include <DcsBios.h> DcsBios::Potentiometer cmscBrt("CMSC_BRT", A0); //example 1 DcsBios::Potentiometer cmscRwrVol("CMSC_RWR_VOL", A2); //example 2 void setup() { DcsBios::setup(); } void loop() { DcsBios::loop(); } Example 1 - works fine Example 2 - no reaction (I turned the physical potentiometer but the knob in the virtual cockpit did not turn) My connection (example 2) Did the socat script connect or was there an error message? - The script attached correctly and no error message Arduino Uno DCS-BIOS 0.5.0 DCS Arduino library 0.2.3
  12. I assigned pin... Wysłane z mojego E2303 przy użyciu Tapatalka
  13. Hi! I have a problem with the function of the DCS-BIOS (A-10C): DcsBios::Potentiometer cmscRwrVol("CMSC_RWR_VOL", PIN); Doesn't works - potentiometer is OK. if anyone met this problem? Arduino Uno DCS-BIOS 0.5.0 DCS Arduino library 0.2.3
  14. Thx, all works! :)
  15. "call of overloaded 'write(unsigned int)'is ambiguous" C:\Users\Marcin\Documents\Arduino\VHF_AM\VHF_AM.ino: In function 'void loop()': VHF_AM:39: error: call of overloaded 'write(unsigned int)' is ambiguous disp2.write(vhfamFreq2Buffer.getData()); ^ C:\Users\Marcin\Documents\Arduino\VHF_AM\VHF_AM.ino:39:47: note: candidates are: In file included from C:\Users\Marcin\Documents\Arduino\VHF_AM\VHF_AM.ino:2:0: C:\Users\Marcin\Documents\Arduino\libraries\SevenSeg/SevenSeg.h:48:10: note: void SevenSeg::write(long int) void write(long int); ^ C:\Users\Marcin\Documents\Arduino\libraries\SevenSeg/SevenSeg.h:49:10: note: void SevenSeg::write(int) void write(int); ^ C:\Users\Marcin\Documents\Arduino\libraries\SevenSeg/SevenSeg.h:52:10: note: void SevenSeg::write(char*) <near match> void write(char*); ^ C:\Users\Marcin\Documents\Arduino\libraries\SevenSeg/SevenSeg.h:52:10: note: no known conversion for argument 1 from 'unsigned int' to 'char*' C:\Users\Marcin\Documents\Arduino\libraries\SevenSeg/SevenSeg.h:53:10: note: void SevenSeg::write(String) <near match> void write(String); ^ C:\Users\Marcin\Documents\Arduino\libraries\SevenSeg/SevenSeg.h:53:10: note: no known conversion for argument 1 from 'unsigned int' to 'String' C:\Users\Marcin\Documents\Arduino\libraries\SevenSeg/SevenSeg.h:54:10: note: void SevenSeg::write(double) void write(double); ^ VHF_AM:41: error: call of overloaded 'write(unsigned int)' is ambiguous disp3.write(vhfamFreq3Buffer.getData()); ^ C:\Users\Marcin\Documents\Arduino\VHF_AM\VHF_AM.ino:41:47: note: candidates are: In file included from C:\Users\Marcin\Documents\Arduino\VHF_AM\VHF_AM.ino:2:0: C:\Users\Marcin\Documents\Arduino\libraries\SevenSeg/SevenSeg.h:48:10: note: void SevenSeg::write(long int) void write(long int); ^ C:\Users\Marcin\Documents\Arduino\libraries\SevenSeg/SevenSeg.h:49:10: note: void SevenSeg::write(int) void write(int); ^ C:\Users\Marcin\Documents\Arduino\libraries\SevenSeg/SevenSeg.h:52:10: note: void SevenSeg::write(char*) <near match> void write(char*); ^ C:\Users\Marcin\Documents\Arduino\libraries\SevenSeg/SevenSeg.h:52:10: note: no known conversion for argument 1 from 'unsigned int' to 'char*' C:\Users\Marcin\Documents\Arduino\libraries\SevenSeg/SevenSeg.h:53:10: note: void SevenSeg::write(String) <near match> void write(String); ^ C:\Users\Marcin\Documents\Arduino\libraries\SevenSeg/SevenSeg.h:53:10: note: no known conversion for argument 1 from 'unsigned int' to 'String' C:\Users\Marcin\Documents\Arduino\libraries\SevenSeg/SevenSeg.h:54:10: note: void SevenSeg::write(double) void write(double); ^ exit status 1 call of overloaded 'write(unsigned int)' is ambiguous
  16. Hey! I'm trying to display a 7-segment LED VHF AM. With Freq1 and 4 no problem but Freq2 and 3 creates a problem. Does anyone have an idea how to solve it? #define DCSBIOS_IRQ_SERIAL #include <SevenSeg.h> #include <DcsBios.h> SevenSeg disp1(2, 3, 4, 5, 6, 7, 8); SevenSeg disp2(2, 3, 4, 5, 6, 7, 8); SevenSeg disp3(2, 3, 4, 5, 6, 7, 8); SevenSeg disp4(2, 3, 4, 5, 6, 7, 8); const int numOfDigits1 = 2; const int numOfDigits2 = 1; const int numOfDigits3 = 1; const int numOfDigits4 = 2; int digitPins1[] = {A0,A1}; int digitPins2[] = {A2}; int digitPins3[] = {A3}; int digitPins4[] = {A4,A5}; DcsBios::StringBuffer<2> vhfamFreq1StrBuffer(0x1190, NULL); DcsBios::StringBuffer<1> vhfamFreq2StrBuffer(0x118e, NULL); // did not work DcsBios::StringBuffer<1> vhfamFreq3StrBuffer(0x118e, NULL); // did not work DcsBios::StringBuffer<2> vhfamFreq4StrBuffer(0x1192, NULL); void setup() { DcsBios::setup(); disp1.setDigitPins(numOfDigits1, digitPins1); disp2.setDigitPins(numOfDigits2, digitPins2); disp3.setDigitPins(numOfDigits3, digitPins3); disp4.setDigitPins(numOfDigits4, digitPins4); } void loop() { DcsBios::loop(); disp1.write(vhfamFreq1StrBuffer.getData()); disp1.clearDisp(); disp2.write(vhfamFreq2StrBuffer.getData()); disp2.clearDisp(); disp3.write(vhfamFreq3StrBuffer.getData()); disp3.clearDisp(); disp4.write(vhfamFreq4StrBuffer.getData()); disp4.clearDisp(); } I found this thread but I have no idea how to use it: http://forums.eagle.ru/showthread.php?t=141095&page=6 Arduino Uno DCS-BIOS 0.5.0 DCS Arduino library 0.2.3
  17. Thanks Ian. My fault. I forgot insert line clearDisp in the loop. Correctly is: void loop() { DcsBios::loop(); disp1.write(ClockMmBuffer.getData()); disp1.clearDisp(); disp2.write(ClockSsBuffer.getData()); disp2.clearDisp(); } Now I have two displays (2 x 2 digits) connect to Arduino Uno in this same time. Arduino Uno DCS-BIOS 0.5.0 DCS Arduino library 0.2.3
  18. Thanks Ian. Everything works. I have just one question - I tried to connect two LCD display and display two different indications. Separately everything works but at this same time LED displays incorrectly. What is the reason? #define DCSBIOS_IRQ_SERIAL #include <SevenSeg.h> #include <DcsBios.h> SevenSeg disp1(2, 3, 4, 5, 6, 7, 8); SevenSeg disp2(2, 3, 4, 5, 6, 7, 8); const int numOfDigits1 = 2; const int numOfDigits2 = 2; int digitPins1[] = {9,10}; int digitPins2[] = {11,12}; DcsBios::StringBuffer<2> ClockMmBuffer(0x1100, NULL); DcsBios::StringBuffer<2> ClockSsBuffer(0x1102, NULL); void setup() { DcsBios::setup(); disp1.setDigitPins(numOfDigits1, digitPins1); disp2.setDigitPins(numOfDigits2, digitPins2); } void loop() { DcsBios::loop(); disp1.write(ClockMmBuffer.getData()); disp2.write(ClockSsBuffer.getData()); } Arduino Uno DCS-BIOS 0.5.0 DCS Arduino library 0.2.3
  19. I changed the library on SevenSeg, Now numbers are displayed correctly but does not shine permanently only flash when changing numbers. #define DCSBIOS_IRQ_SERIAL #include <SevenSeg.h> #include <DcsBios.h> SevenSeg disp(2, 3, 4, 5, 6, 7, 8); const int numOfDigits = 2; int digitPins[] = {10,11}; void onDcsBiosFrameSync() { } void onClockSsChange(char* newValue) { disp.write(newValue); } DcsBios::StringBuffer<2> clockSsBuffer(0x1102, onClockSsChange); void setup() { DcsBios::setup(); disp.setDigitPins(numOfDigits, digitPins); } void loop() { DcsBios::loop(); } I don't understand why... :( Arduino Uno DCS-BIOS 0.5.0 DCS Arduino library 0.2.3
  20. I don't have any idea how to use newValue in my code. Are you use in your code libraries Sevseq or other? sevseg.setNumber(newValue, 1); - 'newValue' was not declared in this scope I can't declare a variable sent with DCS :( Arduino Uno DCS-BIOS 0.5.0 DCS Arduino library 0.2.3
  21. Hi! I trying to connect the 7-segment display at the clock A-10C(only seconds). Unfortunately, my code is an error that can not be found. Does anyone have an idea what's wrong? #define DCSBIOS_IRQ_SERIAL #include <DcsBios.h> #include "SevSeg.h" SevSeg sevseg; //Instantiate a seven segment controller object byte numDigits = 2; byte digitPins[] = {10,11}; byte segmentPins[] = {2, 3, 4, 5, 6, 7, 8}; void onClockSsChange(char* newValue) { sevseg.begin(COMMON_ANODE, numDigits, digitPins, segmentPins); //sevseg.setBrightness(90); //sevseg.setNumber(0, 1); sevseg.refreshDisplay(); // Must run repeatedly } DcsBios::StringBuffer<2> clockSsBuffer(0x1102, onClockSsChange); void setup() { DcsBios::setup(); } void loop() { DcsBios::loop(); }
  22. Hi! Trying to connect the 7-segment display at the clock A-10C(only seconds). Unfortunately, my code is an error that can not be found. Does anyone have an idea what's wrong? #define DCSBIOS_IRQ_SERIAL #include <DcsBios.h> #include "SevSeg.h" SevSeg sevseg; //Instantiate a seven segment controller object byte numDigits = 2; byte digitPins[] = {10,11}; byte segmentPins[] = {2, 3, 4, 5, 6, 7, 8}; void onClockSsChange(char* newValue) { sevseg.begin(COMMON_ANODE, numDigits, digitPins, segmentPins); sevseg.setBrightness(90); sevseg.refreshDisplay(); // Must run repeatedly } DcsBios::StringBuffer<2> clockSsBuffer(0x1102, onClockSsChange); void setup() { DcsBios::setup(); } void loop() { DcsBios::loop(); }
  23. Thanks Ian - this code works fine!
  24. I installed the latest version DCS-BIOS Arduino library (v 0.2.3) but I do not know what to change in scetch. I can't find any fint of template :(
×
×
  • Create New...