Jump to content

Recommended Posts

Posted

I am trying to program the master caution sw to my hardware.  Watching the dataref viewer when I push the button I see the rest_act dataref go from 0 to 1 then back 0 when I release the button.  But for some reason the tilt  dataref keeps going nuts constantly on the switch even though I have nothing programmed to that dataref.  I tried it as a float and an Integer.  Same result.

Rob

Posted

Here is the dataref I just tried.  It's the co-pilots side, does the same thing as captain's side. You can see the switch move in the 3d cockpit when I depress the physical switch.  Th goofy tilt occurs constantly even though it is a totally different dataref.

MastrCauSW   = XPlaneRef("ixeg/733/caution/caution_reset_cpt_act");

 

And the code snippet,

MasterCauSW.update();
  if (MasterCauSW.fallingEdge()) {  //Read Pilots Master Caution SW
    MastrCauSW = 1;
  } else {
    MastrCauSW = 0;
  }

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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