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;
  }

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

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