PDA

View Full Version : Revvin and JNOV is this okay


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:

JNOV
12-09-2004, 05:28 AM
Jet:

There should be no problem doing what you want. I've downloaded Revvin's profile and added the scripting to it, including assigning the cms axes. In AH, you'll want to assign the joystick axes as follows:

Pitch: Control Manager Device 1 Y Axis
Roll: Control Manager Device 1 X Axis
Engine 1 Throttle: Control Manager Device 1 Z Axis
Engine 2 Throttle: Control Manager Device 2 Z Axis
Rudder: Control Manager Device 1 R Axis
Left Toe Brake: Control Manager Device 1 U Axis
Right Toe Brake: Control Manager Devcie 1 V Axis
RPM: Control Manager Device 3 Z Axis (to use Fighterstick throttle to control RPM)

AH2 might use Rx, Ry, and Rz instead of V, U, and R, but you can just wiggle your controls in the joystick setup page and see the values move so that you know which axes to select. Make sure to fully calibrate the axes once you assign them, including moving both the left and right throttles through their full range of motion by: (1) moving the CH Pro Throttle fully forward and moving the ministick fully to the right and then fully to the left; and (2) moving the Pro Throttle fully backward and moving the ministick fully to the right and then fully to the left.

I hope this is helpful. Good luck!

- JNOV

Jetb123
12-09-2004, 06:16 AM
Thnx <S>

Jetb123
15-09-2004, 07:18 AM
I am finnal starting to get this stuff. :thumbsup: