PDA

View Full Version : CMS Timer actions in the radar



redglass
25th January 2010, 08:33 PM
I ran across this CMS script in an old profile I received several years ago. I am not very well versed in the CMS world so I really don't know what is it doing. It appears to have something to do with timing of the radar in the MFD. Anyone have any ideas?

//Timer to repeat Radar Range Keys
timer( interval, d1, 2, 2 ) = js1.b6;
cms.b7 = d1;
timer( interval, d2, 2, 2 ) = js1.b8;
cms.b8 = d2;

//Timer to repeat Radar Elevation Keys
timer( interval, d3, 2, 2 ) = js1.b5;
cms.b9 = d3;
timer( interval, d4, 2, 2 ) = js1.b7;
cms.b10 = d4;

Bob Church
25th January 2010, 10:31 PM
Hi redglass,

It's just a set of four timere. My guess is they're tied to Hat 1 on a FighterStick (js1.b5..js1.b8). When you close the appropriate position, they'll start sending buttons cms.b7..cms.b10, one on each position. The buttons will just repeat so long as the position is held. Probably cms.b7 through cms.b10 are would look to be programmed with characters the adjust the Radar Range and Elevation settings. They'll just send relatively slowly repeating characters, you'd need to program the appropriate keys to Button 7 through Button 10 on the CMS Controls tab.

Does that help?

Best regards,

- Bob

The StickWorks
http://www.stickworks.com

redglass
27th January 2010, 08:14 PM
Thanks Bob, although I am not sure why you need it since you can extend the range and scan area with the TDC and the wheel on the Fighter stick. I was just curious if was some new function I might find useful.

Thanks Again as I am just starting to explore this CMS world. Built me a simple one to close my air-break at full throttle since sometimes in a hectic dogfight mine sometimes does not close and I am unaware it is still open.

// Airbrake closes at full throttle
CMS.B2 = [JS2.a3 < 20];

Capt_Crunch
29th January 2010, 10:09 AM
Bob helped me with that timer code you posted for Lock On. I use a throttle hat to adjust Radar Range and Elevation. This lets you hold down the button as opposed to having to tap it for each adjustment. The wheel on the Fighter Stick is cool, but you must remove your hand off the stick to use it, defeating the purpose of HOTAS. I know there is the Frakenmod, but it will be sweet if CH are able to someday come out with a new HOTAS that includes rotaries. While I am at it, I'll throw in a wish for throttle indents as well .

Your airbrake scipt looks like the line in my profile as well, which I copied from Ruggbutt. :)