Jump to content

Marcin_B

Members
  • Posts

    32
  • Joined

  • Last visited

Everything posted by Marcin_B

  1. 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?
  2. 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?
  3. I found problem: my Uno works wrong. Under Arduino Mega2560 all works fine. Thx Ian
  4. 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.
  5. 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
  6. 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
  7. I assigned pin... Wysłane z mojego E2303 przy użyciu Tapatalka
  8. 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
  9. "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
  10. 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
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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(); }
  16. 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(); }
  17. Thanks Ian - this code works fine!
  18. 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 :(
  19. A-10C CMSP - Arduino via USB Hi! A try connection Arduino Uno with LCD 16x2 via USB. I have a problem with my code #include <DcsBios.h> #include <Servo.h> #include <LiquidCrystal.h> LiquidCrystal lcd(2, 3, 4, 5, 6, 7); /**** Make your changes after this line ****/ void onCmsp1Change(char* newValue) { lcd.setCursor(0, 0); lcd.print(newValue); } DcsBios::StringBuffer<16> cmsp1Buffer(0x1000, onCmsp1Change); void onCmsp2Change(char* newValue) { lcd.setCursor(0, 1); lcd.print(newValue); } DcsBios::StringBuffer<16> cmsp2Buffer(0x1014, onCmsp2Change); DcsBios::ProtocolParser parser; void setup() { Serial.begin(500000); lcd.begin(16, 2); lcd.clear(); } void loop() { while (Serial.available()) { parser.processChar(Serial.read()); } DcsBios::PollingInput::pollInputs(); } void sendDcsBiosMessage(const char* msg, const char* arg) { Serial.write(msg); Serial.write(' '); Serial.write(arg); Serial.write('\n'); } void onDcsBiosWrite(unsigned int address, unsigned int value) { } These lines Arduino are not accepted: void sendDcsBiosMessage(const char* msg, const char* arg) { Serial.write(msg); Serial.write(' '); Serial.write(arg); Serial.write('\n'); } and write: new declaration 'void sendDcsBiosMessage(const char*, const char*)' Does anyone know why?
  20. Hello! From what I found on a forum to connect LCD j16x2 the CMSP is required for Ethernet module for Arduino. http://forums.eagle.ru/showthread.php?t=100220 Is there a possibility of connecting only the USB cable?
  21. Through it all works. No information that you need to have run the module before running the connect-serial-port.:thumbup:
  22. So Export looks like this: Export.lua Connect-serial-port still does not start :(
×
×
  • Create New...