top of page

TM TARGET scripting: Easy trimming


TARGET Script Editor
TARGET Script Editor

I recently received an email from a fellow flight sim fan, Kurt Käferböck, who wanted to share his Thrustmaster TARGET script for easy trimming.


So, in what may be the first in a new category of scripting articles, I present Kurt's script and his description (with a little bit of editing and formatting from me)..


So a huge thank you to Kurt for kindly sharing his script and allowing it to be published here!






I wanted to create two buttons within the TARGET script with which I can access two different rudder curves. I probably wouldn't have thought that I could solve the problem with Thrustmaster's centering software.
My code getting real trimming easily by TARGET script.
With this script you get realistic timing. Click the first mapped button and move the joystick or yoke to the middle position. That's it. The aircraft is trimmed. The yoke remains in this position as in reality; to reset the trim completely, simply click the second mapped button. This will lift the trim again and move it to the central position.
This trim can even stay in when the autopilot on the Comanche 250 from A2A Simulations is activated; with other autopilots you would have to test it out or use the second mapped button before switching it on to bring it to the starting position and at the same time manually compensate with the MSFS trim or simply switch on the autopilot and let the trim slowly move towards 0 automatically using the function shown in the script. The time for this can be set in the script function.
Add into the Main function:
MapKey(&TCAYokeBoeing, Y_BTN1, EXEC("TrimElevator();"));
MapKey(&TCAYokeBoeing, Y_BTN12, EXEC("TrimCenter();"));

int TrimElevator()
{
	LockAxis(&TCAYokeBoeing, DX_Y_AXIS, 1);
	Sleep(2000); // Time to center the Joystick
	TrimDXAxis(DX_Y_AXIS,CURRENT);
	LockAxis(&TCAYokeBoeing, DX_Y_AXIS, 0);
}

// Centers the Y axis slowly
int TrimCenter()
{
	int curValue = Axis[DX_Y_AXIS].trim;
	printf("curValue = %d", curValue);

	if(curValue > 0)
	{
		while(curValue > 0)
		{
			curValue = Axis[DX_Y_AXIS].trim;
			TrimDXAxis(DX_Y_AXIS, - 10);
			Sleep(100);
		}
		
		TrimDXAxis(DX_Y_AXIS, SET(0));
	}
	else
	{
		while(curValue < 0)
		{
			curValue = Axis[DX_Y_AXIS].trim;
			TrimDXAxis(DX_Y_AXIS, + 10);
			Sleep(200);
		}

		TrimDXAxis(DX_Y_AXIS, SET(0));
	}
}

Thrustmaster TARGET


This is a brief description of the Thrustmaster TARGET profiling/scripting software and where to find it. Described by Thrustmaster as 'advanced programming software', in Thrustmaster's own words:

T.A.R.G.E.T. (Thrustmaster Advanced pRogramming Graphical EdiTor) is a software program used to configure and customize Thrustmaster flight simulation game peripherals (joysticks, yokes, throttles and rudder pedals).

The TARGET software can be found on the Thrustmaster support website. When you go to any of the current joystick, yoke or throttle support pages, there are download links to the TARGET software (this one is from the Warthog page).


Good trimming!

Commenti

Valutazione 0 stelle su 5.
Non ci sono ancora valutazioni

I commenti sono stati disattivati.

Drop Me a Line, Let Me Know What You Think

Thanks for submitting!

© 2035 by Train of Thoughts. Powered and secured by Wix

bottom of page