737NUT Posted April 24, 2016 Report Posted April 24, 2016 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 Quote
frumpy Posted April 24, 2016 Report Posted April 24, 2016 What tilt? The changing tilt of the knob? What datarefs are you using? Quote
737NUT Posted April 24, 2016 Author Report Posted April 24, 2016 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; } Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.