SXTune Documentation

ECU Setup

Gear calculation setup

Calibrate gear detection from the ratio of engine speed to vehicle speed.

Requirement: You must have a working Vehicle Speed value displayed in SXTune before gear calculation can work.

Gear Calculation from Gear Ratio

The ECU calculates the selected gear by comparing the live gear ratio with the calibrated high and low thresholds. The ratio is calculated as:

Current Gear Ratio = Engine Speed / Vehicle Speed

Drive the vehicle in every gear at a steady speed, for example 20 km/h, and record the Current Gear Ratio shown in SXTune for each gear.

Example measured ratios

GearCurrent Gear Ratio
1st125
2nd75
3rd54
4th46
5th40
6th28
7th15
Gear Calculation setup values from the supplied SCS guide.
Gear Calculation setup values from the SCS guide.

Set the High and Low thresholds

For each gear, enter a High value that is higher than the maximum ratio recorded for that gear and a Low value that is lower than the minimum ratio recorded.

Using the supplied example, first gear has a measured ratio of 125. With Gear 1 Ratio High = 150 and Gear 1 Ratio Low = 105, first gear is detected whenever the Current Gear Ratio lies between 105 and 150.

Example threshold values

GearHighLow
1st150105
2nd9568
3rd6551
4th5043
5th4237
6th3625
7th2410

These are example values only; measure the actual vehicle and set thresholds around the ratios it produces.

Validation

After all High and Low values have been entered, drive the vehicle again and check that every gear is successfully and consistently detected.

If gear detection is not reliable, first confirm that Vehicle Speed is correct, then re-check the measured ratio range for the affected gear and adjust its High/Low thresholds around the observed values.

Related setup

Wheel speed & speedometer setup →