# Use Trims to Adjust Global Variables

There are model types where some or all of the trim switches on your radion are not used. Helicopters or drones with a flight controller usually don't need trims Also on many fixed wings you may not need all the 4 trims for throttle, rudder, elevator and aileron.

In the following example our model is a glider. Gliders don't need throttle trim. We also don't need the rudder trim, because we can adjust the rudder with the servo sub trim.

Gliders usually use differential on the aileron mixers. The plane rolls perfect when the differential is set to the correct value.

In this sample we will use the rudder trim buttons to adjust the differential of the ailerons. And we will be able to adjust this using the trims in flight.

**Step 1:** Disable the trims for rudder and throttle which are not needed. Then we can reuse them for other functionality. Enter the model menu and navigate to the [Flight Modes](https://zkl2333.gitbook.io/edgetx-user-manual/v2.11-en/color-radios/model-settings/flight-modes) page. Edit **FM0** and disable the Throttle and Rudder trims. The yellow highlight color will be gone when the trims are disabled.

<figure><img src="https://77164042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUZeEhX4mYsDsoTCSjRyi%2Fuploads%2Fgit-blob-3b81062c9f567f124ffe8ea270fcd7b7251785f9%2Fhowto-trims-as-switches-fm0-disable-trims.png?alt=media" alt=""><figcaption><p>Disable trims for flight mode</p></figcaption></figure>

You can see the disabled trims also on the flight modes page. They now show a dash

<figure><img src="https://77164042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUZeEhX4mYsDsoTCSjRyi%2Fuploads%2Fgit-blob-18f2e868571cf2e26691c755e5f3d50be47ba0a9%2Fhowto-trims-as-switches-fm0-disabled-trims.png?alt=media" alt=""><figcaption><p>FM0 with disabled trims for throttle and rudder</p></figcaption></figure>

**Step 2:** Now we navigate to the [Global Variables](https://zkl2333.gitbook.io/edgetx-user-manual/v2.11-en/color-radios/model-settings/global-variables) page and set a default value of 30 for **GV1** in **FM0**

<figure><img src="https://77164042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUZeEhX4mYsDsoTCSjRyi%2Fuploads%2Fgit-blob-f9f371177520b611b37a07914b70507aa95f26e3%2Fhowto-trims-as-switches-gv1.png?alt=media" alt=""><figcaption></figcaption></figure>

**Step 3:** We will now create 2 [Special Functions](https://zkl2333.gitbook.io/edgetx-user-manual/v2.11-en/color-radios/model-settings/special-functions) to adjust the **GV1** value we created in the previous step. Navigate to the [Special Functions](https://zkl2333.gitbook.io/edgetx-user-manual/v2.11-en/color-radios/model-settings/special-functions) page and create a new function **SF1** for decreasing **GV1**

<figure><img src="https://77164042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUZeEhX4mYsDsoTCSjRyi%2Fuploads%2Fgit-blob-caa41e6372a43dbf4dba61bf0232af62ef796ec0%2Fhowto-trims-as-switches-sf1.png?alt=media" alt=""><figcaption></figcaption></figure>

* **Trigger** is set to the Rud- (rudder trim left)
* **Function** is Adjust
* **Global** var is GV1
* **Mode** is Inc/Decrement
* **Inc/Decrement** is set to **-=1**
* **Enable** the special function

We create **SF2** now for increasing the **GV1** value

<figure><img src="https://77164042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUZeEhX4mYsDsoTCSjRyi%2Fuploads%2Fgit-blob-ad3fdc44481d488256cfece80c49d880b972bda8%2Fhowto-trims-as-switches-sf2.png?alt=media" alt=""><figcaption></figcaption></figure>

* **Trigger** is set to Rud+ (rudder trim right)
* **Function** is Adjust
* **Global var** is GV1
* **Mode** is Inc/Decrement
* **Inc/Decrement** is set to +**=1**
* **Enable** the special function

after those 2 special functions are created you can already test the functionality. When you go to Global Variables page you can monitor the GV1 value. The value should change as you use the trims.

**Step 4:** Now we can adjust our aileron mixer and use the GV1 value for the differential

<figure><img src="https://77164042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUZeEhX4mYsDsoTCSjRyi%2Fuploads%2Fgit-blob-4ac3d2636cc14d985c5d9fa9e25bb52c25d1acd6%2Fhowto-trims-as-switches-ail-mix.png?alt=media" alt=""><figcaption></figcaption></figure>

* **Curve** is set to use Global variables and GV1 is selected

Now you should be able to use the Rudder trim to adjust your aileron differential in flight.
