PDA

View Full Version : Programing Micro Stick


MaxenThor
12-03-2005, 04:32 AM
I have been trying to develop script to program the Micro Stick on the Pro Throttle to handle the Rudder and Elevator Trim Functions in FB+AEP+PF and can not get the game to recognize the command. Below is my script file:

// CMS Script File
//
// Game Title: FB+AEP+PF
// Written By: Maxen Thor
// Date: 3-11-05
//
script
CMS.A1 = [JS1.01 < 55]; // Rudder Trim Left
CMS.A2 = [JS1.01 > 180]; // Rudder Trim Right
CMS.A3 = [JS1.02 < 55]; // Elevator Trim Negative
CMS.A4 = [JS1.02 > 180]; // Elevator Trim Positive
endScript

What am I doing wrong. Also on my first attempt after I saved the script and downloaded the Map the program showed that it was compiled but when I made some changes to the script it downloaded OK but did not indicate that the CMS file was compiled. Is this correct?

I'm running a MSFFB Stick with the Pro Throttle. I would appreciate any suggestions and guidence. Thanks.

JNOV
12-03-2005, 06:11 AM
Hi Maxen:

From your script's use of logial expressions (e.g., [js1.01 < 55]), I assume that you want the script to simply turn on and off the increase and decrease trim buttons for the rudder and elevator (as opposed to having the ministick control or generate analog trim axis values). If so, the problem is with your choice of CMS variables--you've picked "A" (i.e., "analog") variables, when what you want are "B" (i.e., "button") variables.

If you change your script to --

CMS.B1 = [JS1.01 < 55]; // Rudder Trim Left
CMS.B2 = [JS1.01 > 180]; // Rudder Trim Right
CMS.B3 = [JS1.02 < 55]; // Elevator Trim Negative
CMS.B4 = [JS1.02 > 180]; // Elevator Trim Positive

-- it will work as I think that you want it to, assuming that you program the cms.b1-b4 buttons to generate the rudder and elevator trim commands.

Good luck,

JNOV

Bob Church
12-03-2005, 08:11 AM
Hi MaxenThor,

Also, it should be JS1.A1 through JS1.A4, not JS1.01 through JS1.04.

- Bob

The StickWorks
http://www.stickworks.com

MaxenThor
12-03-2005, 02:02 PM
Thanks for all the help. It's surprising how a fresh look in the morning helps. :blush: :thumbsup:

MaxenThor
14-03-2005, 04:58 AM
I have another question concerning this matter. As I mentioned above,the trim is adjusted with the microstick now but it appears that when I recenter the microstick it also effects the trim. In other words the trim position does not hold unless I keep the stick in the appropriate position. How can I get the trim to remain at the selected position and can I assign buttons to the stick and if so how? Thanks.