Jump to content

lesthegrngo

Members
  • Posts

    1245
  • Joined

  • Last visited

Everything posted by lesthegrngo

  1. I use this one Cheers Les Servos.h
  2. Just crossing the T's and dotting the I's and wiring up the Seat. There's the seat arm handle, but no callouts for the Ejection Seat handles themselves - is there any way to do that? Cheers Les
  3. Vinc and I both had this - copy the servo.h from a previous version and overwrite the new one, and it will work Cheers Les
  4. Just tried it, if I comment out one BCD switch it allows me to add a toggle switch, so it seems like some kind of limit Cheers Les
  5. Thanks for that, just tried it and unfortunately the same As the toggle switches are large ones with screw terminals I can route the extra ones to other nanos, it just won't be as neat; the biggest hit will really be to my OCD. It's academic now, but it would be interesting to know why the limit is there cheers Les
  6. Hi all I have elected to use a Mega to serve all six IFF BCD wheels, and they are working fine. However I want to add the remaining toggle switches on the IFF panel to the Mega, a total of seven 3 position toggles and one 2 position. I can successfully add four of the eight, however once I add a fifth it seems to make the sketch not work in game. All the switches work fine if you comment out the BCD switches, so on their own all eight toggle switches function correctly. However you can only add four to the sketch before it falls over. It doesn't matter which, it's predicated on the number of switches rather than a particular one or ones. I have made sure I only use pins 3 though 7 and 22 through 53 for everything, and nothing else is connected to it. At the moment testing is via USB, I have not connected via RS485 yet. The sketch I have used is below. Is there any reason why there is an apparent limit to the number of switches? Is there a way to write the sketch differently to make them work? #define DCSBIOS_IRQ_SERIAL //#define DCSBIOS_RS485_SLAVE 75 //#define TXENABLE_PIN 2 #include <DcsBios.h> #include <Wire.h> #include <SPI.h> void setup() { { // Thumbwheel Code //Mode-1 Wheel 1 DcsBios::BcdWheel iffMode1Wheel1("IFF_MODE1_WHEEL1", 53, 52, 50); //Mode-1 Wheel 2 DcsBios::BcdWheel iffMode1Wheel2("IFF_MODE1_WHEEL2", 47, 49, 51); //Mode-3A Wheel 1 DcsBios::BcdWheel iffMode3aWheel1("IFF_MODE3A_WHEEL1", 35, 33, 31); //Mode-3A Wheel 2 DcsBios::BcdWheel iffMode3aWheel2("IFF_MODE3A_WHEEL2", 29, 27, 25); //Mode-3A Wheel 3 DcsBios::BcdWheel iffMode3aWheel3("IFF_MODE3A_WHEEL3", 23, 37, 39); //Mode-3A Wheel 4 DcsBios::BcdWheel iffMode3aWheel4("IFF_MODE3A_WHEEL4", 41, 43, 45); DcsBios::Switch2Pos iffOnOut("IFF_ON_OUT", 48); DcsBios::Switch3Pos iffMicIdent("IFF_MIC_IDENT", 24, 22); DcsBios::Switch3Pos iffOutAudioLight("IFF_OUT_AUDIO_LIGHT", 44, 46); //DcsBios::Switch3Pos iffTestM1("IFF_TEST_M1", 42, 40); DcsBios::Switch3Pos iffRadtest("IFF_RADTEST", 26, 28); //DcsBios::Switch3Pos iffTestM4("IFF_TEST_M4", 32, 30); //DcsBios::Switch3Pos iffTestM2("IFF_TEST_M2", 7, 36); //DcsBios::Switch3Pos iffTestM3("IFF_TEST_M3", 38, 34); } DcsBios::setup(); } void loop() { DcsBios::loop(); } Cheers Les
  7. ****EDIT - SOLVED***** I had to reinstall the 'DCS-bios-arduino-master-library', once I did that it recovered it Hi all, I have just gone to try to test the BCD thumbweels with a Mega on a dedicated PCB, but now I am getting a "'BcdWheel' is not a member of DCS Bios" error message I never had that before, here's the sketch below. Have I forgotten to include something? #define DCSBIOS_IRQ_SERIAL //#define DCSBIOS_RS485_SLAVE 75 //#define TXENABLE_PIN 2 #include <DcsBios.h> #include <Wire.h> #include <SPI.h> void setup() { { // Thumbwheel Code DcsBios::BcdWheel iffMode1Wheel1("IFF_MODE1_WHEEL1", 4, 5, 6, 7); DcsBios::BcdWheel iffMode1Wheel2("IFF_MODE1_WHEEL2", 23, 24); DcsBios::BcdWheel iffMode3aWheel1("IFF_MODE3A_WHEEL1", 26, 27, 28); DcsBios::BcdWheel iffMode3aWheel2("IFF_MODE3A_WHEEL2", 30, 31, 32); DcsBios::BcdWheel iffMode3aWheel3("IFF_MODE3A_WHEEL3", 33, 34, 35); DcsBios::BcdWheel iffMode3aWheel4("IFF_MODE3a_WHEEL4", 36, 37, 38); } DcsBios::setup(); } void loop() { DcsBios::loop(); } Cheers Les
  8. Amazingly, that worked - maybe a corrupted original Dcs_variant file? Having said that, the openbeta saved games file was there before Cheers for the help Les
  9. Just did it, and it created the folder in the saved games, but nothing else. I went into DCSOpenbeta/bin/ and double clicked on the DCS.exe and Autoupdater.exe files, in the first case nothing, in the second case it runs the autoupdater then closes Les
  10. Hi there, thanks for this The DCSOpenbeta folder in Saved Games is empty, apart from a Scripts folder which is itself empty. There is nothing else there, unlike the DCS Saved Games folder where there are many subfolders including the Log folder is it possible it didn't install correctly? If so why doesn't that show up on the repair? Cheers Les
  11. I still cannot get DCS World Open Beta working, but am not confident a clean reinstall will change anything. Has anyone got any suggestions on how to proceed on this? Les
  12. I think this is the one you wanted, let me know if it isn't the correct one autoupdate_log.txt
  13. I did a repair using the Updater, let me get the log file Cheers Les
  14. I don't know if it is related but just recently I was having loads of problems with sketches not working properly, made even more confusing by the fact that it depended on what PC you used to load the sketch. In the end it turned out to be (apparently) corrupted libraries in the Arduino Libraries folder. By deleting and redoing them I managed to drag it back Cheers Les
  15. I tried the GUI updater, and while it has no problems with DCS World, when you try it with DCS World Open Beta it shows 1, then 2 processes running in the bottom right hand corner, then simply goes back to 0 processes and that's it. I tried the SPHW LogViewer but that just fails to load giving an error I cannot open DCS World Open beta despite using the clean, repair etc facilities Les
  16. Thanks for this, will give that a go - and cheers for confirming multiple installations is OK Thanks - I'd never heard of that, I'll have to search that out Les
  17. Hi all, I have just done a clean reinstall of first DCS World, which seemed to go OK and is working, and today DCS World Open Beta. It has installed, but didn't ask me which location so defaulted to C/programfiles/Eagledynamics/DCSWorld Now when I click on the icon, or go to Start - DCS World Open Beta, it runs the update check, then does nothing more. I performed a repair, which found nothing, and it still won't start. Firstly, obviously I want it to work, but can I check that it is permissible to have both DSC World standalone and DCS World Open Beta on the same PC? If it is, how come there was no option to install it on the drive I want? I would have put it on an NVMe drive to improve start up speed but had no choice. Is it possible to move it? Please note these are the non-Steam versions Cheers Les
  18. Thanks for checking I'm going to do a clean install, so the DCS World folder complete, the saved games DCS subfolder, anything else I should erase? Maybe DCS BIOS too? Cheers Les
  19. I used the sketch below to test them both, all working fine (actually rather cool watching the switches cycle though!) #define DCSBIOS_IRQ_SERIAL #include <DcsBios.h> void onAcftNameChange(char* newValue) { // Change of Aircraft DcsBios::resetAllStates(); } DcsBios::StringBuffer<24> AcftNameBuffer(0x0000, onAcftNameChange); void setup() { DcsBios::setup(); } void loop() { sendDcsBiosMessage("ANT_IFF", "0"); delay(500); sendDcsBiosMessage("ANT_IFF", "1"); // Middle position delay(500); sendDcsBiosMessage("ANT_IFF", "2"); delay(500); sendDcsBiosMessage("ANT_UHF","0"); delay(500); sendDcsBiosMessage("ANT_UHF","1"); delay(500); sendDcsBiosMessage("ANT_UHF","2"); delay(500); } I then tried this without success DcsBios::Switch3Pos antUhf("ANT_UHF", 4, 5); However this worked, bearing in mind the pin 28 doesn't exist on a nano, but switching to pins 4 and 5 moved the switch in game to the correct positions using a two position toggle switch. const byte antUhfPins[3] = {4, 28, 5}; DcsBios::SwitchMultiPos antUhf("ANT_UHF", antUhfPins, 3); Changing the hardware to an on-on-on switch and the code below it works perfectly const byte antUhfPins[3] = {4, 5, 6}; DcsBios::SwitchMultiPos antUhf("ANT_UHF", antUhfPins, 3); Then using the exact same hardware with this code doesn't work DcsBios::Switch3Pos antUhf("ANT_UHF", 4, 5); So, for some reason the game or DCS Bios is not accepting the DcsBios::Switch3Pos code for these. Can someone lash up a switch and test it in their game with my code above? If it is working for someone else's installation I am going to have to do the nuclear option and do a complete clean install Les
  20. All, I know this has been discussed before - there is a way of getting the game to quickly check where all the physical switches are on start (I think it was called polling?) so that when you are starting up all the devices and in game match. I looked for it but wasn't able to find it, can you link it for me? Thanks Les
  21. Hi all, I've been working my way around the A10 panels and have reached the antenna panels The EGI HQ Enable toggle switch works fine, but the UHF and VFH antenna upper / lower / both switches are giving me an issue. I am trying to use an on-off-on three position toggle switch for the both, using the callouts below DcsBios::Switch3Pos antIff("ANT_IFF", 18, 19); DcsBios::Switch3Pos antUhf("ANT_UHF", 16, 17); However they appear to not be recognised in game. I checked them against the old reference and they are the same However if I use these const byte antIffPins[2] = {18, 19}; DcsBios::SwitchMultiPos antIff("ANT_IFF", antIffPins, 2); const byte antUhfPins[2] = {16, 17}; DcsBios::SwitchMultiPos antUhf("ANT_UHF", antUhfPins, 2); They will go to the lower two positions - please note that the two SwitchMultiPos callouts immediately above have been modified from 3 position to 2 just for testing purposes. This works for both the A10C and A10CII, and I have tested with different hardware and pin numbers to rule out those So something about the Switch3Pos is incorrect. I am pretty certain I am looking at the latest version of the reference documentation but would like to know if it is just my use that is non-functioning Cheers Les
  22. Nice one Vinc - I'll check out the local electronics shop, I know they have the arduino modules there Les
×
×
  • Create New...