rudek Posted October 10, 2021 Share Posted October 10, 2021 Hi need help Need dcs bios code for ejection handle (and ecm) Thx Link to comment Share on other sites More sharing options...
No1sonuk Posted October 10, 2021 Share Posted October 10, 2021 From the control reference: DcsBios::Switch2Pos seatEjectHandle("SEAT_EJECT_HANDLE", PIN); Link to comment Share on other sites More sharing options...
rudek Posted October 11, 2021 Author Share Posted October 11, 2021 (edited) From the control reference: DcsBios::Switch2Pos seatEjectHandle("SEAT_EJECT_HANDLE", PIN); thx but didnt work on f-16 Edited October 11, 2021 by rudek Link to comment Share on other sites More sharing options...
No1sonuk Posted October 11, 2021 Share Posted October 11, 2021 That's from the Flightpanels fork F-16 control reference... Did you try cycling the switch 3 times quickly? Link to comment Share on other sites More sharing options...
BlackLibrary Posted October 11, 2021 Share Posted October 11, 2021 atm only in the fork HUB BIOS dont have it 1 aka WarLord DCSFlightpanels DCS-BIOS Fork DCSFlightpanels arduino-library DCSFlightpanels DCSFlightpanels-Profiles DCS FP / BIOS Discord Server Link to comment Share on other sites More sharing options...
No1sonuk Posted October 11, 2021 Share Posted October 11, 2021 1 hour ago, BlackLibrary said: atm only in the fork HUB BIOS dont have it Ah. I did try to check, but I couldn't find the hub control reference in my file structure. Assuming FP fork use, was I correct in suggesting 3 quick cycles? Maybe the next option then for non-FP Fork users would be to use a Pro Micro or Leonardo in HID mode and program it as a standard button press. Link to comment Share on other sites More sharing options...
rudek Posted October 12, 2021 Author Share Posted October 12, 2021 no animation no code handle didnt have model number Link to comment Share on other sites More sharing options...
Buzzkillington Posted April 12, 2022 Share Posted April 12, 2022 (edited) This post is old but if you haven't solved it yet here is some bios code that does what you want. You need to call checkEject(); in your loop() function. And call setupEject() in your setup function. int currButState_ = 0; int lastButState_ = 0; void setupEject() { pinMode(ejectionPin_, INPUT_PULLUP); currButState_ = digitalRead(ejectionPin_); lastButState_ = currButState_; } //Function to call and check if the handle is pulled void checkEject() { currButState_ = digitalRead(ejectionPin_); if (currButState_ == lastButState_) { return; //Do nothing } if (currButState_ == HIGH) //debounce? { sendDcsBiosMessage("SEAT_EJECT_HANDLE", "1"); delay(10); sendDcsBiosMessage("SEAT_EJECT_HANDLE", "1"); delay(10); sendDcsBiosMessage("SEAT_EJECT_HANDLE", "1"); delay(10); sendDcsBiosMessage("SEAT_EJECT_HANDLE", "1"); delay(10); sendDcsBiosMessage("SEAT_EJECT_HANDLE", "1"); } lastButState_ = currButState_; } Edited April 12, 2022 by Buzzkillington Link to comment Share on other sites More sharing options...
rudek Posted April 12, 2022 Author Share Posted April 12, 2022 thx Link to comment Share on other sites More sharing options...
Recommended Posts