Jump to content

hrnet940

Members
  • Posts

    211
  • Joined

  • Last visited

Everything posted by hrnet940

  1. This is copied from the DCS BIOS screen: DCS-BIOS Version: v0.10.0+64 (21e288cdeb95f54d1b5c4935fde9e51ae3c58965) Is there an updated version? Wayne
  2. 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
  3. 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
  4. Thanks. How do I figure out what boot loader I am using and how do I change it to the correct one? Wayne
  5. 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.
  6. 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
  7. Don't use those two pins, ever! Wayne
  8. Thanks everyone.
  9. Thanks Bankler.
  10. How do we accomplish this to gain access to the logs? Where do we find this "MissionScripting.lua" and perform "desanitizing"?
  11. I agree with these. Now that the carrier crews are looking mighty fine and have light wands and such, it seems like a great time to move on to the airbases with proper air traffic control commands, ground crew, servicing vehicles and such. I have only ever heard wind speed given in knots and NOT meters per second.
  12. I agree with those above. Requesting lights to be turned on should be an option. Enemy airfields would have their lights turned off so us/we, the good guys, can't find it easy and destroy it with THEIR help to find it. Just my opinion. hrnet940 A.K.A. Wayne
  13. I need to start getting my standby instruments setup in my home F/A-18C cockpit. I was thinking of using this as my altimeter, but don't know how to get it interfacing with DCS. Any suggestions? I know that it is a little to big for the area, but I would make it work and look good. https://www.flightillusion.com/military-vintage/other-gauges-mil/gsa-016g-digital-altimeter-green/
  14. VERY NICE!!!! How do you get just the scenery and HUD to show? I am at a point in my F/A-18C hornet rig that it is time to start transitioning to that view only. I have been looking in the settings and nothing is popping out. Thanks
  15. I don't understand why you NEED to run current of any type through your magnetic reed switch. Please explain this. I use a magnetic reed switch for my SEAT SAFE/ARM switch hooked directly to my Mega 2560 board using DCS BIOS and it works like a dream. It took very little to get everything setup and the magnet in a good place, but it still works perfectly. I am thinking of using the same switch for my ejection seat (get me outta here) handle.
  16. I am getting into Bankler's CASE 1 Carrier Landing and would like to be able to read the debrief notes to get better. If the Debrief window was widened to allow us to see all of the notes it would be very beneficial. Currently, I have to hover my mouse over it until it disappears then move it back over, or don't have it disappear as long as my mouse is hovering over it. Please and Thank-You, Wayne
      • 1
      • Like
  17. Does anyone know how to get these to work in the F/A-18C Hornet? Wayne
  18. I have made that change and the switch still reacts different. I found that if I slow my transition from one position to the next that it does do as it should. When I look at the switch in the cockpit it goes to the L FUS MSL position as a kinda reset before going to where I have moved the switch too. Strange, but it does work. Is this normal or is there something else that I need to do to get this to work as one would think it should?
  19. Thanks. You are correct that I currently have my Bleed Air, INS and Radar switches hooked up to rotary encoders. I have this done for simplicity and ease of connection to my Arduino's/Mega 2560. I am getting ready to order my panels from TekCreations and getting all of my switches wired up and placed in a container; ready to be installed when they arrive. Wayne
  20. Thanks, I will and see how that goes. Would this be the same reason why my Radar switch misbehaves too? Thanks, Wayne
  21. Video.MOV Here is the other in-game video. You can see that the switch starts in the SAFE position than is moved fully left, fully right and back to SAFE. I am on the ground with the engines running. Wayne Video.MOV
  22. I am having issues with my rotary switches. They are not acting as they should and would like help to get them working correctly. I have attached two videos recorded with my iPad. I have also included the Arduino script with pins 43 - 47 being hooked up to the Mega 2560. I also have the same issue with my Radar switch in the F/A-18C hornet. Any help to get these rotary switches working will be greatly appreciated. Hrnet940 aka Wayne Video_1.MOV
  23. Out of the ten or so flights that I have had with DCS BIOS and my new Oculus Quest II 256Gb headset, the majority of them have had DCS BIOS loose connection with my plugged in Arduino boards. Is there a way to still use my DCS BIOS Arduino connected switches with my VR headset? I like being able to use my gear handle, flap switch, hook handle, and others while flying my F/A-18C hornet in VR. Sorry that I don't have any pics of what DCS BIOS looks like after the flight, but nothing appears in the Serial ports page, they are all gone(5x Arduino and both Tek Creations devices).
  24. How much? Postage to Canada, postal code K8V6K1. Wayne
  25. I know the last post to here was back in 2015. Do you still have some sticker sheets available or know where I can get one set my my ACES II seat? Thanks, Wayne AKA hrnet940
×
×
  • Create New...