snomhf
30th March 2009, 02:55 AM
If you play LockOn and use the "velcro after-burner" mod on your Pro Throttle, you might be interested in this script.
This program utilizes one button to scale the throttle for a plane that doesn't have AB (e.g. A-10) and another button for one that does (F-15). When scaled for the A-10, the throttle will go from 255 (idle) to 0 (full throttle) right where it first bumps into the velcro strip. When you press the "F15" button, the scaling is changed so that the 0 value does not occur until the full travel of the control (up and over the velcro and against the physical stop). Since LockOn is programmed to turn on AB toward the upper end of the throttle movement, this works out perfectly.
The only manual part of this is you'll have to remember to press the appropriate key when you start your flight in order to get the proper throttle scaling for the particular plane you're flying. Of course, if the AB comes on in your F-15 before you push the stick up over the velcro strip you'll know you have the wrong scaling and you can simply press the "F-15" button and fix it quickly.
And now, the script...
For this example, we will use the FighterStick's Cross Hat pressed "up" (B5) to set the throttle scaling for non-AB planes (A-10) and "down" (B7) to set the scaling for AB planes (F-15). Also, I am assuming your FS is controller 1 and PT is controller 2.
%DEFINE FS_CrossUP JS1.B5
%DEFINE FS_CrossDN JS1.B7
%DEFINE PT_Throttle JS2.A3
%DEFINE Throttle_Detent 50 // Calculated location of start of velcro
%DEFINE Throttle_Full 0 // 0 is all the way to the end of travel
%DEFINE Throttle CMS.A1 // Set CMS Controls Axis 1 to "DX Mode, DX Device: CM Device 2, and DX Axis: Z Axis" (PT Z axis)
%DEFINE A10_Throttle B1 // Flag used to determine which throttle scaling to use
%DEFINE Throttle_Offset A1 // Variable to store scaling offset value for throttle
script
// Maintain seperate throttle configurations for A-10 and F-15
SEQUENCE
wait(FS_CrossUP); // A-10 setting
A10_Throttle = TRUE;
ENDSEQUENCE
SEQUENCE
wait(FS_CrossDN); // F-15 setting
A10_Throttle = FALSE;
ENDSEQUENCE
IF (A10_Throttle) THEN
Throttle_Offset = Throttle_Detent; // Stop at velcro
ELSE
Throttle_Offset = Throttle_Full; // Full travel
ENDIF
// Scale the throttle for either A-10 or F-15
Throttle = ((PT_Throttle - Throttle_Offset) * 255) / (255 - Throttle_Offset);
endscript
This program utilizes one button to scale the throttle for a plane that doesn't have AB (e.g. A-10) and another button for one that does (F-15). When scaled for the A-10, the throttle will go from 255 (idle) to 0 (full throttle) right where it first bumps into the velcro strip. When you press the "F15" button, the scaling is changed so that the 0 value does not occur until the full travel of the control (up and over the velcro and against the physical stop). Since LockOn is programmed to turn on AB toward the upper end of the throttle movement, this works out perfectly.
The only manual part of this is you'll have to remember to press the appropriate key when you start your flight in order to get the proper throttle scaling for the particular plane you're flying. Of course, if the AB comes on in your F-15 before you push the stick up over the velcro strip you'll know you have the wrong scaling and you can simply press the "F-15" button and fix it quickly.
And now, the script...
For this example, we will use the FighterStick's Cross Hat pressed "up" (B5) to set the throttle scaling for non-AB planes (A-10) and "down" (B7) to set the scaling for AB planes (F-15). Also, I am assuming your FS is controller 1 and PT is controller 2.
%DEFINE FS_CrossUP JS1.B5
%DEFINE FS_CrossDN JS1.B7
%DEFINE PT_Throttle JS2.A3
%DEFINE Throttle_Detent 50 // Calculated location of start of velcro
%DEFINE Throttle_Full 0 // 0 is all the way to the end of travel
%DEFINE Throttle CMS.A1 // Set CMS Controls Axis 1 to "DX Mode, DX Device: CM Device 2, and DX Axis: Z Axis" (PT Z axis)
%DEFINE A10_Throttle B1 // Flag used to determine which throttle scaling to use
%DEFINE Throttle_Offset A1 // Variable to store scaling offset value for throttle
script
// Maintain seperate throttle configurations for A-10 and F-15
SEQUENCE
wait(FS_CrossUP); // A-10 setting
A10_Throttle = TRUE;
ENDSEQUENCE
SEQUENCE
wait(FS_CrossDN); // F-15 setting
A10_Throttle = FALSE;
ENDSEQUENCE
IF (A10_Throttle) THEN
Throttle_Offset = Throttle_Detent; // Stop at velcro
ELSE
Throttle_Offset = Throttle_Full; // Full travel
ENDIF
// Scale the throttle for either A-10 or F-15
Throttle = ((PT_Throttle - Throttle_Offset) * 255) / (255 - Throttle_Offset);
endscript