Jetb123
12-09-2004, 01:28 AM
Revvin I would like to mix your profile for Aceshigh with JNOV's profile. Revvin on yours you dont have the Throttle ministick to do anything. And on JNOV's he has it as a qusi thottle. Or somthing like that here it is. Use micro-stick x-axis to control power output to left/right engines. Conceptually,
// think of the micro-stick x-axis as braking the left or right engines, depending on
// which way it is pushed. If left centered, it passes the throttle through unmodified.
//
// cms.a1: Virtual axis for left engine throttle (CM device #2 U axis)
// Created by combining real throttle (js2.a3) and left toe brake (js1.a1) axes
//
// cms.a2: Virtual axis for right engine throttle (CM device #2 V axis)
// Created by combininb real throttle (js2.a3) and right toe brake (js1.a2) axes
//
// NOTE: Micro-stick is used as mouse if Shift #1 is pressed (pinkie switch). In that case,
// physical throttle input is not modified by micro-stick.
// ================================================== =========================================
if (not js3.b4) then // Shift #1 not pressed, so modify throttle
a1 = 255 - (2*js2.a1);
a2 = (2*js2.a1) - 255;
else // Shift #1 pressed, so don't modify throttle
a1 = 0;
a2 = 0;
endif
if ([a1 > 35]) then // Left engine throttle
cms.a1 = js2.a3 + a1 - 35;
else
cms.a1 = js2.a3;
endif
if ([a2 > 35]) then // Right engine throttle
cms.a2 = js2.a3 + a2 - 35;
else
cms.a2 = js2.a3;
endif
// ================================================== =========================================
// Use micro-stick as mouse when Shift #1 (pinkie switch) is pressed. Revvin would this be okay if I added it to yours. For my aceshigh setup. Plzzz :w00t:
// think of the micro-stick x-axis as braking the left or right engines, depending on
// which way it is pushed. If left centered, it passes the throttle through unmodified.
//
// cms.a1: Virtual axis for left engine throttle (CM device #2 U axis)
// Created by combining real throttle (js2.a3) and left toe brake (js1.a1) axes
//
// cms.a2: Virtual axis for right engine throttle (CM device #2 V axis)
// Created by combininb real throttle (js2.a3) and right toe brake (js1.a2) axes
//
// NOTE: Micro-stick is used as mouse if Shift #1 is pressed (pinkie switch). In that case,
// physical throttle input is not modified by micro-stick.
// ================================================== =========================================
if (not js3.b4) then // Shift #1 not pressed, so modify throttle
a1 = 255 - (2*js2.a1);
a2 = (2*js2.a1) - 255;
else // Shift #1 pressed, so don't modify throttle
a1 = 0;
a2 = 0;
endif
if ([a1 > 35]) then // Left engine throttle
cms.a1 = js2.a3 + a1 - 35;
else
cms.a1 = js2.a3;
endif
if ([a2 > 35]) then // Right engine throttle
cms.a2 = js2.a3 + a2 - 35;
else
cms.a2 = js2.a3;
endif
// ================================================== =========================================
// Use micro-stick as mouse when Shift #1 (pinkie switch) is pressed. Revvin would this be okay if I added it to yours. For my aceshigh setup. Plzzz :w00t: