PDA

View Full Version : Instant View Foward with Padlock (help)


scout
01-03-2004, 05:47 PM
I am a CMS bone head. Here is what i am trying to do in IL2:FB

1- Toe brakes on both CH Rudder Pedals- already done and working like a champ thanks to Spideys profile for FB.

2- Button #3 on my CH Throttle to Instant View Foward with Padlock; click once it behaves as if I am still holding it down; click again it behaves as if I let the button go and continues on padlocked to my target.

Here is what my CMS currently looks like:

script
CMS.B1 = [JS2.A3 < 23]; // WEP at 100%

IF ([JS3.A1 > JS3.A2]) then // LEFT OR RIGHT TOE BRAKES
CMS.A1 = JS3.A1;
ELSE
CMS.A1 = JS3.A2;
endif

SEQUENCE
WAIT (JS2.B6);
A3 = JS3.A3 - 128;
ENDSEQUENCE

SEQUENCE
WHILE (JS1.B16);
CMS.B5 = TRUE;
DELAY (1);
CMS.B5=FALSE;
DELAY(1);
ENDSEQUENCE

SEQUENCE
WHILE (JS1.B14);
CMS.B6 = TRUE;
DELAY(1);
CMS.B6=FALSE;
DELAY(1);
ENDSEQUENCE


toggle( d2 ) = js2.b3;
cms.b3 = d2;
endScript

The last part was from a super fella who was trying to help me with the b3 throttle alias. I probably hosed up his simple instructions.

Control Manager Device 1 = CH 586 Combatstick
Control Manager Device 2 = CH Throttle Pro USB
Control Manager Device 3= CH Pedals USB

Could one of you fine folks post a script here that I can use with only these two functions for these two controllers. Consider it charity and claim it on your income tax deductions :D

Thanks folks!

MichaelCHProd
02-03-2004, 12:03 AM
The script for issue #2 (the one that is not working right?) is

CMS.B1 = D1;
TOGGLE ( D1 ) = JS2.B3;[/b]

Then just go in the GUI and set CMS.B1 to be the key pad insert key (KP0).

scout
02-03-2004, 01:31 AM
That worked like a charm. Thank you kind Sir! :D

MichaelCHProd
02-03-2004, 04:41 AM
You are welcome