hummer
6th August 2009, 07:53 PM
I want, that my axes response have changed when the button 3 is pressed and I have made the following script:
SEQUENCE
WAIT( JS1.B3 );
IF ([ FTRSTKMODE == MODE3 ]) THEN // In mode 3
SCALE( JS1.A1, 100, 0, GAIN6 ); // I have linear response
SCALE( JS1.A2, 100, 0, GAIN6 );
ELSE // other modes
SCALE( JS1.A1, 100, 0, GAIN3 ); // I have parabolic response
SCALE( JS1.A2, 100, 0, GAIN3 );
ENDIF
ENDSEQUENCE
But when I press the button 3, the response does not change from linear (default). Why?
SEQUENCE
WAIT( JS1.B3 );
IF ([ FTRSTKMODE == MODE3 ]) THEN // In mode 3
SCALE( JS1.A1, 100, 0, GAIN6 ); // I have linear response
SCALE( JS1.A2, 100, 0, GAIN6 );
ELSE // other modes
SCALE( JS1.A1, 100, 0, GAIN3 ); // I have parabolic response
SCALE( JS1.A2, 100, 0, GAIN3 );
ENDIF
ENDSEQUENCE
But when I press the button 3, the response does not change from linear (default). Why?