No1sonuk Posted May 16, 2023 Share Posted May 16, 2023 22 hours ago, byteman59 said: No before. after i hit continue, nothing happens. With the Mega, i see data scrolling. I usually don't see data until a mission runs. 6 hours ago, byteman59 said: I have confirmed with Arduino that those two pins can be used for Digital I/O. Why do you say do not use? You can use them as long as you're NOT using the serial data. For DCS-BIOS, you ARE using them for serial data. Link to comment Share on other sites More sharing options...
byteman59 Posted May 16, 2023 Share Posted May 16, 2023 1 hour ago, No1sonuk said: I usually don't see data until a mission runs. You can use them as long as you're NOT using the serial data. For DCS-BIOS, you ARE using them for serial data. Wow, i have used the TX/RX on the mega for my other panels. The mega has a total of 6 RX/TX. This means i need to find other digital ports? Link to comment Share on other sites More sharing options...
No1sonuk Posted May 16, 2023 Share Posted May 16, 2023 The Mega has a different processor (ATmega 2560) that has a few built-in serial ports. The Uno processor - ATmega 328P - only has one. That connects to another device that handles the USB connection protocol. Take a look here: https://www.arduino.cc/en/uploads/Main/Arduino_Uno_Rev3-schematic.pdf In the bottom-right is the ATmega328P processor. In the bottom-right of that, you'll see RXD and TXD connections running to IO0 and IO1 (pins 0 and 1). They also go to the next block on the left, which is the USB controller - in this case it's an ATmega16u2 , but in some versions, it's a CH340 with different wiring. Those connections mean that if you want to use the USB connection, you can't connect anything to those two pins. If you don't need the USB functionality after programming, you CAN use them as ordinary digital pins. At a guess, I'd say it wouldn't work if you tried to program the Arduino with either of those switches connected and on (grounding the pin). The Mega uses a similar arrangement: https://www.arduino.cc/en/uploads/Main/arduino-mega2560-schematic.pdf Again, RX0 and TX0 are used for the USB connection. Link to comment Share on other sites More sharing options...
hrnet940 Posted May 17, 2023 Share Posted May 17, 2023 12 hours ago, byteman59 said: I have confirmed with Arduino that those two pins can be used for Digital I/O. Why do you say do not use? I have never had any luck at using pins D0 and D1. I don't use them and they are only two pins. My thoughts. 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 comment Share on other sites More sharing options...
byteman59 Posted May 17, 2023 Share Posted May 17, 2023 ok, purchased another Mega, all seems to be working correctly. As for the UNO, I did remove pins from D1 and D0 but still recevied nothing out of it. So assume its a board issue. @No1sonuk Does this mean I should not use D14 thru D19 on the Mega as well? Thanks Link to comment Share on other sites More sharing options...
No1sonuk Posted May 17, 2023 Share Posted May 17, 2023 17 hours ago, byteman59 said: @No1sonuk Does this mean I should not use D14 thru D19 on the Mega as well? No. You can use those as long as you don't need them for serial I/O - e.g. an RS485 master would need one of those pairs to run the RS485 bus while using 0 and 1 for USB. So if you're using just USB, or it's an RS485 slave device, you only need to steer clear of 0 and 1. Link to comment Share on other sites More sharing options...
byteman59 Posted May 18, 2023 Share Posted May 18, 2023 (edited) 17 hours ago, No1sonuk said: No. You can use those as long as you don't need them for serial I/O - e.g. an RS485 master would need one of those pairs to run the RS485 bus while using 0 and 1 for USB. So if you're using just USB, or it's an RS485 slave device, you only need to steer clear of 0 and 1. Got it, thanks for clarification. Much appreciated! I need to rewire only one panel. Not a big problem. Edited May 18, 2023 by byteman59 1 Link to comment Share on other sites More sharing options...
byteman59 Posted May 21, 2023 Share Posted May 21, 2023 I got the Fuel Control Panel working now, but the switches do not seem to be in the right position when i start DCS unless i cycle the switches. Any ideas? Link to comment Share on other sites More sharing options...
No1sonuk Posted May 22, 2023 Share Posted May 22, 2023 13 hours ago, byteman59 said: I got the Fuel Control Panel working now, but the switches do not seem to be in the right position when i start DCS unless i cycle the switches. Any ideas? Did you forget this? Link to comment Share on other sites More sharing options...
byteman59 Posted May 22, 2023 Share Posted May 22, 2023 14 minutes ago, No1sonuk said: Did you forget this? Yes i did! Thanks for reminding me. Thank you! Link to comment Share on other sites More sharing options...
hrnet940 Posted May 23, 2023 Share Posted May 23, 2023 I built the magnetic compass from the Warthog Project and tried to upload the script to it and it comes back with an error code. Can anybody help me? I am hoping to get this working for my F/A-18C Hornet. Do I have to change anything to make this happen? I think that I have it properly wired, but he doesn't include what pins are hooked up to what. 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 comment Share on other sites More sharing options...
byteman59 Posted May 24, 2023 Share Posted May 24, 2023 Hi All, Just updated DCS-BIOS Fork and Arduino library to latest versions. I am having a problem with the the BCD Wheels not working. Can someone have a look and see if they spot any issues? Thanks #define DCSBIOS_IRQ_SERIAL #include <DcsBios.h> DcsBios::ProtocolParser parser; unsigned long lastTickMillis; //E-Brake Panel Below DcsBios::Switch2Pos emerBrake("EMER_BRAKE", 7); // E-Brake Panel Above //AUX Lights Panel Below ****************** // 57-A3, 61-A7, 65-A11 const int REFUEL_STATUS_LIGHTS = A3; const int NIGHT_VISION_LIGHTS_ALL = 20; const int NIGHT_VISION_LIGHTS_TOP = 21; const int WEAPONS_STATION_LIGHTS = A7; const int HARS_SAS_OVERRIDE = 17; const int SIGNAL_LIGHT_TEST = 22; const int FIRE_DETECT_BLEED_TEST = 65; DcsBios::PotentiometerEWMA<5, 128, 5> alcpRsil("ALCP_RSIL", REFUEL_STATUS_LIGHTS); DcsBios::Switch3Pos alcpNvisLts("ALCP_NVIS_LTS", NIGHT_VISION_LIGHTS_ALL, NIGHT_VISION_LIGHTS_TOP); DcsBios::PotentiometerEWMA<5, 128, 5> alcpWpnsta("ALCP_WPNSTA", WEAPONS_STATION_LIGHTS); DcsBios::Switch2Pos alcpHarssas("ALCP_HARSSAS", HARS_SAS_OVERRIDE); DcsBios::Switch2Pos lampTestBtn("LAMP_TEST_BTN", SIGNAL_LIGHT_TEST); DcsBios::Switch2Pos alcpFdbaTest("ALCP_FDBA_TEST", FIRE_DETECT_BLEED_TEST); //AUX Lights Panel Above ****************** // SAS Panel Below******************************************************************* const int SASP_MONITOR_TEST_L = 4; const int SASP_MONITOR_TEST_R = 5; const int SASP_TO_TRIM = 6; const int SASP_YAW_TRIM = A15; const int TakeOffTrimLed = 8; const int SASP_YAW_SAS_L = 9; const int SASP_YAW_SAS_R = 10; const int SASP_PITCH_SAS_L = 11; const int SASP_PITCH_SAS_R = 12; int SaspYawSasL_Coil = 13; // Magnetic coil CH4 int SaspYawSasR_Coil = 14; // Magnetic coil CH3 int SaspPitchSasL_Coil = 15; // Magnetic coil CH2 int SaspPitchSasR_Coil = 16; // Magnetic coil CH1 //Monitor Test Left/Right TOGGLE ON-OFF-ON DcsBios::Switch3Pos saspMonitorTest("SASP_MONITOR_TEST", SASP_MONITOR_TEST_L, SASP_MONITOR_TEST_R); //T/O Trim Button PUSH DcsBios::Switch2Pos saspToTrim("SASP_TO_TRIM", SASP_TO_TRIM); //Yaw Trim POTENTIOMETER DcsBios::PotentiometerEWMA<5, 128, 5> saspYawTrim("SASP_YAW_TRIM", SASP_YAW_TRIM); //TAKEOFF TRIM Indicator Light (green) LED OUTPUT //DcsBios::LED takeOffTrim(0x1026, 0x0400, TakeOffTrimLed); void onSaspToTrimChange(unsigned int newValue) { if (newValue == 1) { digitalWrite(TakeOffTrimLed, LOW); } else { digitalWrite(TakeOffTrimLed, HIGH); } } DcsBios::IntegerBuffer takeOffTrimBuffer(0x1026, 0x0400, 10, onSaspToTrimChange); DcsBios::Switch2Pos saspYawSasL("SASP_YAW_SAS_L", SASP_YAW_SAS_L); DcsBios::Switch2Pos saspYawSasR("SASP_YAW_SAS_R", SASP_YAW_SAS_R); DcsBios::Switch2Pos saspPitchSasL("SASP_PITCH_SAS_L", SASP_PITCH_SAS_L); DcsBios::Switch2Pos saspPitchSasR("SASP_PITCH_SAS_R", SASP_PITCH_SAS_R); // Yaw SAS Left void onSaspYawSasLChange(unsigned int newCoilValue) { switch (newCoilValue){ case 0: digitalWrite(SaspYawSasL_Coil, LOW); break; case 1: digitalWrite(SaspYawSasL_Coil, HIGH); break; } } DcsBios::IntegerBuffer saspYawSasLBuffer(0x1108, 0x0400, 10, onSaspYawSasLChange); // Yaw SAS Right void onSaspYawSasRChange(unsigned int newCoilValue) { switch (newCoilValue){ case 0: digitalWrite(SaspYawSasR_Coil, LOW); break; case 1: digitalWrite(SaspYawSasR_Coil, HIGH); break; } } DcsBios::IntegerBuffer saspYawSasRBuffer(0x1108, 0x0800, 11, onSaspYawSasRChange); // Pitch SAS Left void onSaspPitchSasLChange(unsigned int newCoilValue) { switch (newCoilValue){ case 0: digitalWrite(SaspPitchSasL_Coil, LOW); break; case 1: digitalWrite(SaspPitchSasL_Coil, HIGH); break; } } DcsBios::IntegerBuffer saspPitchSasLBuffer(0x1108, 0x1000, 12, onSaspPitchSasLChange); // Pitch SAS Right void onSaspPitchSasRChange(unsigned int newCoilValue) { switch (newCoilValue){ case 0: digitalWrite(SaspPitchSasR_Coil, LOW); break; case 1: digitalWrite(SaspPitchSasR_Coil, HIGH); break; } } DcsBios::IntegerBuffer saspPitchSasRBuffer(0x1108, 0x2000, 13, onSaspPitchSasRChange); // SAS Panel Above******************************************************************************************************************************* // IFF Panel Below**************************************************************************************************************************** // Thumbwheel Code //Mode-1 Wheel 1 ROTARY ENCODER DcsBios::BcdWheel iffMode1Wheel1("IFF_MODE1_WHEEL1", 27, 26, 25); //Mode-1 Wheel 2 ROTARY ENCODER DcsBios::BcdWheel iffMode1Wheel2("IFF_MODE1_WHEEL1", 23, 24); //Mode-3A Wheel 1 ROTARY ENCODER DcsBios::BcdWheel iffMode3aWheel1("IFF_MODE1_WHEEL1", 56, 55, 54); //Mode-3A Wheel 2 ROTARY ENCODER DcsBios::BcdWheel iffMode3aWheel2("IFF_MODE1_WHEEL1", 58, 59, 60); //Mode-3A Wheel 3 ROTARY ENCODER DcsBios::BcdWheel iffMode3aWheel3("IFF_MODE1_WHEEL1", 62, 63, 64); //Mode-3A Wheel 4 ROTARY ENCODER DcsBios::BcdWheel iffMode3aWheel4("IFF_MODE1_WHEEL1", 66, 67, 68); // IFF Code: ZERO - B - A - (HOLD) const byte iffCodePins[4] = {49, 47, 45, 43}; DcsBios::SwitchMultiPos iffCode("IFF_CODE", iffCodePins, 4); // IFF Master: OFF - STBY - LOW - NORM - EMER ROTARY ENCODER const byte iffMasterPins[5] = {34, 36, 38, 40, 42}; DcsBios::SwitchMultiPos iffMaster("IFF_MASTER", iffMasterPins, 5); //IFF On/Out TOGGLE ON OFF DcsBios::Switch2Pos iffOnOut("IFF_ON_OUT", 52); //IFF Out: LIGHT - OFF - AUDIO TOGGLE ON OFF ON DcsBios::Switch3Pos iffOutAudioLight("IFF_OUT_AUDIO_LIGHT", 32, 33); //REPLY Push to Test PUSH BUTTON DcsBios::Switch2Pos iffReplyTest("IFF_REPLY_TEST", 41); //IFF REPLY Light (green) LED OUTPUT void onIffReplyTestChange(unsigned int newValue) { if (newValue == 1) { digitalWrite(37,LOW); } else { digitalWrite(37,HIGH); } /* your code here */ } DcsBios::IntegerBuffer iffReplyTestBuffer(0x1128, 0x8000, 15, onIffReplyTestChange); //TEST Push to Test PUSH BUTTON DcsBios::Switch2Pos iffTestTest("IFF_TEST_TEST", 35); //IFF TEST Light (green) LED OUTPUT void onIffTestTestChange(unsigned int newValue) { if (newValue == 1) { digitalWrite(39,LOW); } else { digitalWrite(39,HIGH); } /* your code here */ } DcsBios::IntegerBuffer iffTestTestBuffer(0x112a, 0x0040, 6, onIffTestTestChange); //Test M-1 TOGGLE OFF-ON-ON DcsBios::Switch3Pos iffTestM1("IFF_TEST_M1", 50, 48); //Test M-2 OFF-ON-ON DcsBios::Switch3Pos iffTestM2("IFF_TEST_M2", 51, 53); //Test M-3 OFF-ON-ON DcsBios::Switch3Pos iffTestM3("IFF_TEST_M3", 30, 31); //Test M-4 OFF-ON-ON DcsBios::Switch3Pos iffTestM4("IFF_TEST_M4", 28, 29); //RAD Test/Mon TOGGLE ON-OFF-ON DcsBios::Switch3Pos iffRadtest("IFF_RADTEST", 44, 46); //Ident/Mic TOGGLE ON-OFF-ON DcsBios::Switch3Pos iffMicIdent("IFF_MIC_IDENT", 18, 19); //IFF Panel Above ************************************************************************************* void setup() { DcsBios::setup(); lastTickMillis = millis(); // Reversing for IFF Panel Reply and Test LED, SAS Panel TO Trim LED pinMode(39, OUTPUT); pinMode(37, OUTPUT); pinMode(TakeOffTrimLed,OUTPUT); // SAS Coils pinMode (SaspPitchSasR_Coil, OUTPUT); pinMode (SaspPitchSasL_Coil, OUTPUT); pinMode (SaspYawSasR_Coil, OUTPUT); pinMode (SaspYawSasL_Coil, OUTPUT); } void timerTick() { // The timer has expired. Issue a mass reset to all controls. Safe, but may generate additional // traffic if you have many controls. // DcsBios::resetAllStates(); } void loop() { DcsBios::loop(); unsigned long now = millis(); if(now - lastTickMillis > 10000) { timerTick(); lastTickMillis = now; } } Link to comment Share on other sites More sharing options...
lesthegrngo Posted May 24, 2023 Share Posted May 24, 2023 On 5/23/2023 at 2:15 AM, hrnet940 said: I built the magnetic compass from the Warthog Project and tried to upload the script to it and it comes back with an error code. Can anybody help me? I am hoping to get this working for my F/A-18C Hornet. Do I have to change anything to make this happen? I think that I have it properly wired, but he doesn't include what pins are hooked up to what. This looks like you have the wrong bootloader chosen - I get this error when I try loading an ATMega328 using the AT168 loader Cheers Les Link to comment Share on other sites More sharing options...
byteman59 Posted May 24, 2023 Share Posted May 24, 2023 Whoops, think i may have found problem. I copy and pasted but didn't modify the remaining code. I will make changes and up result. IFF_MODE1_WHEEL1 // Thumbwheel Code //Mode-1 Wheel 1 ROTARY ENCODER DcsBios::BcdWheel iffMode1Wheel1("IFF_MODE1_WHEEL1", 27, 26, 25); //Mode-1 Wheel 2 ROTARY ENCODER DcsBios::BcdWheel iffMode1Wheel2("IFF_MODE1_WHEEL1", 23, 24); //Mode-3A Wheel 1 ROTARY ENCODER DcsBios::BcdWheel iffMode3aWheel1("IFF_MODE1_WHEEL1", 56, 55, 54); //Mode-3A Wheel 2 ROTARY ENCODER DcsBios::BcdWheel iffMode3aWheel2("IFF_MODE1_WHEEL1", 58, 59, 60); //Mode-3A Wheel 3 ROTARY ENCODER DcsBios::BcdWheel iffMode3aWheel3("IFF_MODE1_WHEEL1", 62, 63, 64); //Mode-3A Wheel 4 ROTARY ENCODER DcsBios::BcdWheel iffMode3aWheel4("IFF_MODE1_WHEEL1", 66, 67, 68); Link to comment Share on other sites More sharing options...
byteman59 Posted May 24, 2023 Share Posted May 24, 2023 8 hours ago, byteman59 said: Whoops, think i may have found problem. I copy and pasted but didn't modify the remaining code. I will make changes and up result. IFF_MODE1_WHEEL1 // Thumbwheel Code //Mode-1 Wheel 1 ROTARY ENCODER DcsBios::BcdWheel iffMode1Wheel1("IFF_MODE1_WHEEL1", 27, 26, 25); //Mode-1 Wheel 2 ROTARY ENCODER DcsBios::BcdWheel iffMode1Wheel2("IFF_MODE1_WHEEL1", 23, 24); //Mode-3A Wheel 1 ROTARY ENCODER DcsBios::BcdWheel iffMode3aWheel1("IFF_MODE1_WHEEL1", 56, 55, 54); //Mode-3A Wheel 2 ROTARY ENCODER DcsBios::BcdWheel iffMode3aWheel2("IFF_MODE1_WHEEL1", 58, 59, 60); //Mode-3A Wheel 3 ROTARY ENCODER DcsBios::BcdWheel iffMode3aWheel3("IFF_MODE1_WHEEL1", 62, 63, 64); //Mode-3A Wheel 4 ROTARY ENCODER DcsBios::BcdWheel iffMode3aWheel4("IFF_MODE1_WHEEL1", 66, 67, 68); Made changes and still no inputs from my wheels in IFF. Link to comment Share on other sites More sharing options...
hrnet940 Posted May 25, 2023 Share Posted May 25, 2023 19 hours ago, lesthegrngo said: This looks like you have the wrong bootloader chosen - I get this error when I try loading an ATMega328 using the AT168 loader Cheers Les Thanks. How do I figure out what boot loader I am using and how do I change it to the correct one? 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 comment Share on other sites More sharing options...
No1sonuk Posted May 25, 2023 Share Posted May 25, 2023 2 hours ago, hrnet940 said: Thanks. How do I figure out what boot loader I am using and how do I change it to the correct one? Wayne You need to make a programmer using an Uno to change a device bootloader. But IIRC, you can tell the IDE to use the other bootloader protocol in the options. Link to comment Share on other sites More sharing options...
hrnet940 Posted May 25, 2023 Share Posted May 25, 2023 (edited) On 5/25/2023 at 12:51 AM, No1sonuk said: You need to make a programmer using an Uno to change a device bootloader. But IIRC, you can tell the IDE to use the other bootloader protocol in the options. I plugged the magnetic compass in and set the board to Arduino Micro on COM13 and when I hit Verify, it come back with this error: In file included from C:\Users\Wayne\Documents\Arduino\DCSFA18Ccom13\DCSFA18Ccom13.ino:8:0: I removed the code here as it was too long. Wayne Edited May 28, 2023 by hrnet940 Removed the code as it was too long. 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 comment Share on other sites More sharing options...
No1sonuk Posted May 26, 2023 Share Posted May 26, 2023 I can't read that code on my phone. The code is far too spaced out. Rich text is there for a reason. It includes formatting that makes posts easier to read You should put code in a code window - the <> thing from the format menu It'll have to wait until I get home from work and can read it on a larger screen. Link to comment Share on other sites More sharing options...
hrnet940 Posted May 26, 2023 Share Posted May 26, 2023 12 minutes ago, No1sonuk said: I can't read that code on my phone. The code is far too spaced out. Rich text is there for a reason. It includes formatting that makes posts easier to read You should put code in a code window - the <> thing from the format menu It'll have to wait until I get home from work and can read it on a larger screen. I noticed that something in the sketch looked weird so I copy and pasted the sketch again from the magnetic compass folder and there were differences. It still doesn't compile and load, but if I replace the IRQ with DEFAULT on the top line it will compile, but still fails the upload. Below is the error that I receive. I have also included the .ino file below that I am using as the sketch for you to look at in Notepad++ when you get a moment. In file included from C:\Users\Wayne\Documents\Arduino\DCSFA18Ccom13\DCSFA18Ccom13.ino:4:0: C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h: In function 'void DcsBios::USART_RX_vect()': C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:41:25: error: 'UDR0' was not declared in this scope volatile uint8_t c = UDR0; ^~~~ C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:41:25: note: suggested alternative: 'UDR1' volatile uint8_t c = UDR0; ^~~~ UDR1 C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h: In function 'void DcsBios::setup()': C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:16:14: error: 'PRR' was not declared in this scope #define PRR0 PRR ^ C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:46:4: note: in expansion of macro 'PRR0' PRR0 &= ~(1<<PRUSART0); ^~~~ C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:16:14: note: suggested alternative: 'PRR0' #define PRR0 PRR ^ C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:46:4: note: in expansion of macro 'PRR0' PRR0 &= ~(1<<PRUSART0); ^~~~ C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:47:4: error: 'UBRR0H' was not declared in this scope UBRR0H = 0; ^~~~~~ C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:47:4: note: suggested alternative: 'UBRR1H' UBRR0H = 0; ^~~~~~ UBRR1H C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:48:4: error: 'UBRR0L' was not declared in this scope UBRR0L = 3; // 250000 bps ^~~~~~ C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:48:4: note: suggested alternative: 'UBRR1L' UBRR0L = 3; // 250000 bps ^~~~~~ UBRR1L C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:49:4: error: 'UCSR0A' was not declared in this scope UCSR0A = 0; ^~~~~~ C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:49:4: note: suggested alternative: 'UCSR1A' UCSR0A = 0; ^~~~~~ UCSR1A C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:50:4: error: 'UCSR0C' was not declared in this scope UCSR0C = (1<<UCSZ00) | (1<<UCSZ01); ^~~~~~ C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:50:4: note: suggested alternative: 'UCSR1C' UCSR0C = (1<<UCSZ00) | (1<<UCSZ01); ^~~~~~ UCSR1C C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:50:17: error: 'UCSZ00' was not declared in this scope UCSR0C = (1<<UCSZ00) | (1<<UCSZ01); ^~~~~~ C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:50:17: note: suggested alternative: 'UCSZ10' UCSR0C = (1<<UCSZ00) | (1<<UCSZ01); ^~~~~~ UCSZ10 C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:50:31: error: 'UCSZ01' was not declared in this scope UCSR0C = (1<<UCSZ00) | (1<<UCSZ01); ^~~~~~ C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:50:31: note: suggested alternative: 'UCSZ11' UCSR0C = (1<<UCSZ00) | (1<<UCSZ01); ^~~~~~ UCSZ11 C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:52:4: error: 'UCSR0B' was not declared in this scope UCSR0B = (1<<RXEN0) | (1<<TXEN0) | (1<<RXCIE0); ^~~~~~ C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:52:4: note: suggested alternative: 'UCSR1B' UCSR0B = (1<<RXEN0) | (1<<TXEN0) | (1<<RXCIE0); ^~~~~~ UCSR1B C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:52:17: error: 'RXEN0' was not declared in this scope UCSR0B = (1<<RXEN0) | (1<<TXEN0) | (1<<RXCIE0); ^~~~~ C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:52:17: note: suggested alternative: 'RXEN1' UCSR0B = (1<<RXEN0) | (1<<TXEN0) | (1<<RXCIE0); ^~~~~ RXEN1 C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:52:30: error: 'TXEN0' was not declared in this scope UCSR0B = (1<<RXEN0) | (1<<TXEN0) | (1<<RXCIE0); ^~~~~ C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:52:30: note: suggested alternative: 'TXEN1' UCSR0B = (1<<RXEN0) | (1<<TXEN0) | (1<<RXCIE0); ^~~~~ TXEN1 C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:52:43: error: 'RXCIE0' was not declared in this scope UCSR0B = (1<<RXEN0) | (1<<TXEN0) | (1<<RXCIE0); ^~~~~~ C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:52:43: note: suggested alternative: 'RXCIE1' UCSR0B = (1<<RXEN0) | (1<<TXEN0) | (1<<RXCIE0); ^~~~~~ RXCIE1 C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h: In function 'void DcsBios::usart_tx(const char*)': C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:65:13: error: 'UCSR0A' was not declared in this scope while(!(UCSR0A & (1<<UDRE0))); // wait until TX buffer is empty ^~~~~~ C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:65:13: note: suggested alternative: 'UCSR1A' while(!(UCSR0A & (1<<UDRE0))); // wait until TX buffer is empty ^~~~~~ UCSR1A C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:65:26: error: 'UDRE0' was not declared in this scope while(!(UCSR0A & (1<<UDRE0))); // wait until TX buffer is empty ^~~~~ C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:65:26: note: suggested alternative: 'UDRE1' while(!(UCSR0A & (1<<UDRE0))); // wait until TX buffer is empty ^~~~~ UDRE1 C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:66:5: error: 'UDR0' was not declared in this scope UDR0 = *c++; // write byte to TX buffer ^~~~ C:\Users\Wayne\Documents\Arduino\libraries\dcs-bios-arduino-library-0.2.3/DcsBios.h:66:5: note: suggested alternative: 'UDR1' UDR0 = *c++; // write byte to TX buffer ^~~~ UDR1 exit status 1 Compilation error: exit status 1 Thanks for all the help! Vid60StepperExample.ino 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 comment Share on other sites More sharing options...
No1sonuk Posted May 26, 2023 Share Posted May 26, 2023 What version of DCS-BIOS are you using? Link to comment Share on other sites More sharing options...
No1sonuk Posted May 27, 2023 Share Posted May 27, 2023 On 5/26/2023 at 1:52 AM, hrnet940 said: Vid60StepperExample.ino 5.84 kB · 2 downloads I get no errors when compiling this. Which version of DCS-BIOS are you using? Link to comment Share on other sites More sharing options...
lesthegrngo Posted May 28, 2023 Share Posted May 28, 2023 Check to see if you have two sketches in the sketch folder - I had that without knowing it and it caused errors. Apparently the IDE reads all sketches in the folder as one overarching sketch and this can lead to multiple declarations and conflicts Les Link to comment Share on other sites More sharing options...
hrnet940 Posted May 28, 2023 Share Posted May 28, 2023 This is copied from the DCS BIOS screen: DCS-BIOS Version: v0.10.0+64 (21e288cdeb95f54d1b5c4935fde9e51ae3c58965) Is there an updated version? 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 comment Share on other sites More sharing options...
hrnet940 Posted May 28, 2023 Share Posted May 28, 2023 I just found this video. Am I following it to get the latest version of DCS-BIOS Fork? 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 comment Share on other sites More sharing options...
Recommended Posts