Jump to content

F-16 eject handle dcs bios


rudek

Recommended Posts

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

  • 5 months later...

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 by Buzzkillington
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...