Jump to content

Recommended Posts

Posted

Hi Cameron,

being a Mac user, my Saitek devices do not have any "drivers" to setup the whole stuff. So, I need to go by datarefs for assigning non-default X-Plane functions to buttons. Actually, I'm willing to set buttons for the fuelcut switches. This one works all fine:

ENGINE STARTUP

#IF BUTTON 14 SWITCHES FROM 0 TO 1 SET CRJ/eng/red1_switch TO 1

#IF BUTTON 16 SWITCHES FROM 0 TO 1 SET CRJ/eng/red2_switch TO 1

ENGINE STOP

#IF BUTTON 15 SWITCHES FROM 1 TO 0 SET CRJ/eng/red1_switch TO 0

#IF BUTTON 17 SWITCHES FROM 1 TO 0 SET CRJ/eng/red1_switch TO 0

Cool eh? Well, it's not. I must prevent Buttons 15/17 to be permitted stopping engines when I'm inflight. Image you're hitting those buttons due to whatever during final approach. So, the above must be adjusted.

Logically, I assigned a button 1001 linking it to AXIS 3, and finally defining a range. Then, I went on with PERMIT as follows:

#SETBUTTON 1001 FROM AXIS 3 RANGE X TO Y

LEFT ENGINE START

#IF BUTTON 1001 SWITCHES FROM 0 TO 0 PERMIT

#IF BUTTON 14 SWITCHES FROM 0 TO 1 SET CRJ/eng/red1_switch TO 1

#RESET AUTHORITY

RIGHT ENGINE START

#IF BUTTON 1001 SWITCHES FROM 0 TO 0 PERMIT

#IF BUTTON 16 SWITCHES FROM 0 TO 1 SET CRJ/eng/red2_switch TO 1

#RESET AUTHORITY

LEFT ENGINE STOP

#IF BUTTON 1001 SWITCHES FROM 0 TO 0 PERMIT

#IF BUTTON 15 SWITCHES FROM 1 TO 0 SET CRJ/eng/red1_switch TO 0

#RESET AUTHORITY

RIGHT ENGINE STOP

#IF BUTTON 1001 SWITCHES FROM 0 TO 0 PERMIT

#IF BUTTON 17 SWITCHES FROM 1 TO 0 SET CRJ/eng/red2_switch TO 0

#RESET AUTHORITY

... but guess what. I does not work as it still does not prevent from stopping engines even with 100% throttle. I have been gambling around for hours now with X / Y range of the throttle - axis. But no success. According to your Dataref, the throttles have integer values from -1 to 0(idle) to 1(full). According to this, the range for switching Button 1001 from value 0 to 1 should be from 0.01 to 1.00. But it's not. I have also been trying to adjust values for the PERMIT of Button 1001 (1 to 0 / 1 to 1 ... ) and still no success.

I don't have any idea how to find out the correct range of my axis. The above PERMIT - coding should be correct, is it?! Now, how to find out the real range of my axis?

Many thanks in advance ...

:-[

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...