Thrustmaster T.A.R.G.E.T: throttle and t16000m's pitch seen as the same axis by Elite?

Hi,

I'm trying to use the T.A.R.G.E.T software to make a macro for PIPs.
I run the script and then launch Elite to set my bindings but somehow the throttle and pitch axis are seen as the same thing by Elite :(

Anyone knows what's going on here?

In case it helps, here is the script built by the Visual editor:

Code:
include "target.tmh"int main()
{
    Configure(&HCougar, MODE_EXCLUDED);
    Configure(&Joystick, MODE_EXCLUDED);
    Configure(&Throttle, MODE_EXCLUDED);
    Configure(&T16000L, MODE_EXCLUDED);
    Configure(&LMFD, MODE_EXCLUDED);
    Configure(&RMFD, MODE_EXCLUDED);
    Configure(&TFRPRudder, MODE_EXCLUDED);
    if(Init(&EventHandle)) return 1;
    SetKBRate(32, 50);
    SetKBLayout(KB_ENG);
    SetShiftButton(&TWCSThrottle, TBTN2, &TWCSThrottle, TBTN2, TBTN3, 0);
    MapAxis(&T16000, JOYX, DX_X_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
    SetSCurve(&T16000, JOYX, 0, 0, 0, 0, 0);
    MapAxis(&T16000, JOYY, DX_Y_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
    SetSCurve(&T16000, JOYY, 0, 0, 0, 0, 0);
    MapAxis(&T16000, RUDDER, DX_ZROT_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
    SetSCurve(&T16000, RUDDER, 0, 0, 0, 0, 0);
    MapAxis(&T16000, THR, DX_SLIDER_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
    SetSCurve(&T16000, THR, 0, 0, 0, 0, 0);
    MapKeyIOUMD(&TWCSThrottle, THAT1U, PULSE+UARROW, CHAIN( PULSE+DARROW, D(), PULSE+UARROW, D(), PULSE+UARROW, D(), PULSE+LARROW, D(), PULSE+UARROW), PULSE+UARROW, CHAIN( PULSE+DARROW, D(), PULSE+UARROW, D(), PULSE+UARROW, D(), PULSE+LARROW, D(), PULSE+UARROW), PULSE+UARROW, CHAIN( PULSE+DARROW, D(), PULSE+UARROW, D(), PULSE+UARROW, D(), PULSE+LARROW, D(), PULSE+UARROW));
    MapKeyIOUMD(&TWCSThrottle, THAT1R, PULSE+RARROW, CHAIN( PULSE+DARROW, D(), PULSE+RARROW, D(), PULSE+RARROW, D(), PULSE+UARROW, D(), PULSE+RARROW), PULSE+RARROW, CHAIN( PULSE+DARROW, D(), PULSE+RARROW, D(), PULSE+RARROW, D(), PULSE+UARROW, D(), PULSE+RARROW), PULSE+RARROW, CHAIN( PULSE+DARROW, D(), PULSE+RARROW, D(), PULSE+RARROW, D(), PULSE+UARROW, D(), PULSE+RARROW));
    MapKeyIOUMD(&TWCSThrottle, THAT1D, PULSE+DARROW, CHAIN( PULSE+DARROW, D(), PULSE+LARROW, D(), PULSE+LARROW, D(), PULSE+RARROW, D(), PULSE+LARROW), PULSE+DARROW, CHAIN( PULSE+DARROW, D(), PULSE+LARROW, D(), PULSE+LARROW, D(), PULSE+RARROW, D(), PULSE+LARROW), PULSE+DARROW, CHAIN( PULSE+DARROW, D(), PULSE+LARROW, D(), PULSE+LARROW, D(), PULSE+RARROW, D(), PULSE+LARROW));
    MapKeyIOUMD(&TWCSThrottle, THAT1L, PULSE+LARROW, CHAIN( PULSE+DARROW, D(), PULSE+LARROW, D(), PULSE+LARROW, D(), PULSE+LARROW, D(), PULSE+LARROW), PULSE+LARROW, CHAIN( PULSE+DARROW, D(), PULSE+LARROW, D(), PULSE+LARROW, D(), PULSE+LARROW, D(), PULSE+LARROW), PULSE+LARROW, CHAIN( PULSE+DARROW, D(), PULSE+LARROW, D(), PULSE+LARROW, D(), PULSE+LARROW, D(), PULSE+LARROW));
    MapAxis(&TWCSThrottle, TRDR, DX_Y_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
    SetSCurve(&TWCSThrottle, TRDR, 0, 0, 0, 0, 0);
    MapAxis(&TWCSThrottle, TTHR, DX_X_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
    SetSCurve(&TWCSThrottle, TTHR, 0, 0, 0, 0, 0);
    MapAxis(&TWCSThrottle, TANT, DX_Z_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
    SetSCurve(&TWCSThrottle, TANT, 0, 0, 0, 0, 0);
    MapAxis(&TWCSThrottle, TMSTX, DX_XROT_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
    SetSCurve(&TWCSThrottle, TMSTX, 0, 0, 0, 0, 0);
    MapAxis(&TWCSThrottle, TMSTY, DX_YROT_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
    SetSCurve(&TWCSThrottle, TMSTY, 0, 0, 0, 0, 0);
    MapAxis(&TWCSThrottle, TCSRIGHT, DX_ZROT_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
    SetSCurve(&TWCSThrottle, TCSRIGHT, 0, 0, 0, 0, 0);
    MapAxis(&TWCSThrottle, TCSRUDDER, DX_THROTTLE_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
    SetSCurve(&TWCSThrottle, TCSRUDDER, 0, 0, 0, 0, 0);
    MapAxis(&TWCSThrottle, TCSLEFT, DX_SLIDER_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
    SetSCurve(&TWCSThrottle, TCSLEFT, 0, 0, 0, 0, 0);


}
int EventHandle(int type, alias o, int x)
{
    DefaultMapping(&o, x);
}
 
You have several duplicates here:

MapAxis(&TWCSThrottle, TRDR, DX_Y_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
MapAxis(&T16000, JOYY, DX_Y_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);

MapAxis(&T16000, JOYX, DX_X_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
MapAxis(&TWCSThrottle, TTHR, DX_X_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);

MapAxis(&T16000, RUDDER, DX_ZROT_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
MapAxis(&TWCSThrottle, TCSRIGHT, DX_ZROT_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);

MapAxis(&T16000, THR, DX_SLIDER_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
MapAxis(&TWCSThrottle, TCSLEFT, DX_SLIDER_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);

For example the first one means that both the Y-Axis of the joystick and the TRDR (thats the flip switch from the throttle) are mapped to the Y axis of the virtual controller.
 
Thanks for the reply.

I eventually figured it out.
Turns out that skipping the screen where one can set curves is a bad idea. The default mapping has overlaps.

In the end, I had to remap everything including buttons and triggers on top of creating the PIPs macro.
 
Back
Top Bottom