Skip to content

RC Drift Assistance with GYRO-ELRS: Principles and Implementation ​

What else can a gyro-equipped receiver do besides stabilize a micro aircraft? In GYRO-ELRS, we have been exploring an application for RC cars: letting the receiver help control steering and gently reduce throttle when the car rotates too quickly, assisting the driver during a drift.

What Is Drifting? ​

During normal cornering, the car's heading is broadly aligned with its direction of travel. During a drift, there is a larger angle between the two. The rear slides toward the outside of the bend, while the driver uses steering and throttle to keep the car moving along the intended line.

The angle between the velocity of the car's center of mass and its longitudinal axis is called body sideslip angle. It describes how far sideways the car is traveling. Yaw rate, usually measured in degrees per second (°/s), describes how quickly the car rotates about its vertical axis.

Top-view comparison of normal cornering and drifting: blue arrows show heading, green arrows show velocity, and beta marks the body sideslip angle during a drift
Figure 1. Sideslip angle describes the difference between heading and travel direction; yaw rate describes how quickly the heading changes. The arrows indicate direction, not speed. Click the image to view the original.

This distinction matters: a car can already be sliding sideways without rotating rapidly, and rapid rotation does not necessarily mean the car is in a controlled drift.

What Does a Car Need to Drift? ​

Consider a typical rear-wheel-drive drift car. Drive torque can push the rear tires into substantial sliding, allowing the rear of the car to move outward. Front-wheel steering and rear-wheel drive force both influence rotation and sideslip. The driver adjusts these inputs together to keep the car sliding along the intended line. Stanford University's research on the dynamics and control of drifting discusses this coupling between steering and drive force.

For an RC car, several elements need to work together:

  • Tires suited to the surface. Drift tires are often used to reduce grip so that the car can enter a slide at a suitable speed. Different surfaces call for different tires and power settings; reducing friction without limit also reduces control authority.
  • Appropriate power and drivetrain. Rear-wheel drive is common. Four-wheel-drive cars can also drift, but their handling and driving technique differ.
  • Enough steering travel and response. Countersteering means turning the front wheels against the direction of body rotation. It is a common correction during drifting, and its effectiveness is limited by servo speed, mechanical travel and steering geometry.
  • Coordinated throttle, steering and entry speed. Throttle affects both forward speed and the driven tires' sliding state. Too much throttle may make the rear rotate faster, while abruptly lifting off also changes the car's behavior. Reducing throttle is not a universal recovery action.

The challenge is to remain in control while the rear keeps sliding outward. Beginners often countersteer too late, overcorrect, or keep applying too much throttle after the car has started to rotate farther than intended.

Top view of a left-hand drift: the car yaws left, the rear slides outward, and the front wheels countersteer right relative to the chassis
Figure 2. A typical countersteering relationship in a left-hand drift. “Right” is relative to the chassis; the front wheels need not point exactly along the travel direction. Steering and throttle must work together. Click the image to view the original.

How Can a Gyroscope Help? ​

A gyroscope directly measures angular velocity. For a car traveling on a flat surface, the main quantity of interest is yaw rate about the vehicle's vertical axis, after transforming the sensor readings for the receiver's mounting orientation.

This feedback lets a controller detect changes in body rotation and respond through the steering servo. Dedicated RC drift gyros already exist, such as the Futaba GYD550. Its official manual describes steering assistance, gain adjustment and checking the correction direction.

From Steering Position to Requested Yaw Rate ​

The simplest RC steering arrangement maps the driver's input directly to a servo position. In GYRO-ELRS RATE mode, steering input instead represents a target yaw rate. A rate PID controller and feedforward use the gyro feedback to calculate a steering correction.

For example, if the driver requests a certain leftward yaw rate but the car turns left faster than requested, the controller attempts to reduce the excess rotation through steering. With the correct configuration, this can produce countersteering. The required servo direction depends on the receiver's mounting orientation, mixer sign and steering mechanism.

The controlled quantity is rotational speed, not a fixed heading. Centering the steering input sets the target yaw rate to zero, so the controller attempts to stop further rotation. It does not automatically turn the car back to a previous heading.

GYRO-ELRS control diagram: CH4 requests yaw rate for the steering servo, CH3 passes through throttle assistance to the ESC, and both paths use measured yaw-rate feedback
Figure 3. Steering correction and throttle assistance handle direction and power separately. The rate loop retains left/right information, while throttle assistance compares rotation magnitudes. Mixer and activation requirements are explained below. Click the image to view the original.

Why Assist Throttle as Well? ​

Steering correction has limits: the servo can only move so far and so quickly. Once the rear is rotating rapidly, steering alone may not correct it in time. For some cases of excessive rotation caused by drive torque, a modest throttle reduction provides another way to intervene.

GYRO-ELRS therefore adds a throttle-reduction layer. When the measured yaw-rate magnitude significantly exceeds the magnitude recently requested by the driver, it smoothly removes a portion of throttle. The aim is to give the driver more room to correct the car.

This assistance does not measure wheel speed, ground speed or sideslip angle. Its decision is based on yaw rate alone. That cannot distinguish every drift, spin or surface disturbance, and reducing throttle cannot be guaranteed to stabilize every situation. The driver still chooses the line, corner entry, throttle input and direction changes.

How We Implemented It in GYRO-ELRS ​

The current implementation combines two control paths: a rate loop handles steering, while drift assistance applies a bounded reduction to the driver's throttle request. Both run on the receiver.

Separate Paths for Steering and Throttle ​

The receiver maps CH3 to forward throttle and CH4 to a target yaw rate. Steering control uses signed target and measured rates, retaining left/right information. Throttle assistance compares their absolute values, so the same intervention rule applies to left and right turns.

To keep these paths separate, drift assistance requires a compatible car mixer:

OutputMixer requirement
Drive motor or ESCMotor-type output with a positive throttle coefficient only
Steering servoServo-type output with a yaw coefficient only; choose the sign for the actual steering direction
Corresponding PWM outputSelect the appropriate mixer output as its source

If the ESC still receives raw CH3 directly, the calculated throttle reduction will not reach the drivetrain. Likewise, a servo receiving raw CH4 bypasses the yaw-rate loop. Enabling the drift-assistance switch alone does not complete the output setup.

The current throttle mapping runs from zero to positive output and is intended for a forward-only car configuration. It does not implement center-neutral bidirectional throttle, reverse or independent braking, so it cannot be applied directly to a typical forward/brake/reverse ESC mode. Input and output endpoints also differ: zero CH3 input is 988 μs, while the motor mixer's zero-throttle output is based on 1000 μs. The actual stop command must match the ESC configuration.

When Does It Reduce Throttle? ​

Comparing only the current steering target with measured rotation creates a problem during direction changes. The input passes through center, briefly making the target rate zero, while the car still retains rotation from the preceding maneuver. Treating all that rotation as excessive would cause unnecessary intervention.

The implementation uses a 250 ms rolling window. It takes the maximum absolute target yaw rate within that window as the reference for throttle reduction. This retains the recent steering request and avoids an abrupt change in the intervention criterion as the input crosses center. The window applies only to throttle assistance; the steering loop still follows the current target.

The calculation can be expressed as:

text
reference = maximum absolute target yaw rate over the last 250 ms
excess = max(0, |measured yaw rate| − reference − threshold)
desired reduction = maximum reduction × min(1, excess / ramp span)
output throttle = current manual throttle × (1 − smoothed reduction)

The threshold allows some excess rotation before intervention begins. Beyond it, the reduction increases gradually with the excess, up to the configured maximum.

For example, suppose the recent reference is 100°/s, the threshold is 20°/s, the ramp span is 80°/s and the maximum reduction is 15%:

Measured yaw-rate magnitudeDesired throttle reduction
120°/s or less0%
160°/s7.5%
200°/s or more15%

These are desired reductions before smoothing; the applied reduction approaches them over time. At 50% manual throttle and a settled reduction of 15%, the output becomes 50% × 85% = 42.5%. It does not subtract 15 percentage points to produce 35%. These percentages describe control commands, not proportional changes in motor power or vehicle speed.

Avoiding Abrupt Throttle Changes ​

Reduction and recovery have separate time constants, defaulting to 120 ms and 300 ms. This allows intervention to build relatively quickly and manual throttle to return more gradually.

A time constant is neither a waiting period nor the total time needed to complete a change. For a constant target, one time constant brings the response about 63% of the way toward that target. The controller does not wait 120 ms before suddenly cutting throttle.

Each update starts from the current manual throttle request. It does not repeatedly multiply a previously reduced output, accumulating reductions from frame to frame. Assistance never adds throttle above the driver's current request. When the driver lowers throttle to zero, the output immediately becomes zero and the reduction state is cleared.

Configuration and Initial Setup ​

Use receiver firmware that includes drift assistance and configure it with the matching GLRS Configurator. The configurator detects whether the receiver exposes the feature and reports it as unsupported on older firmware.

GLRS Configurator drift-assistance settings showing the enable switch, CH8 activation from 1700 to 2100 microseconds and sensitivity level 5
Figure 4. An offline preview of the actual English interface in GLRS Configurator 0.2.4. Assistance is checked for illustration; channel, range and sensitivity retain their defaults. No receiver is connected and no settings have been written to a device. Click the image to view the original.
  1. Check the basic outputs first. Set the mounting orientation, calibrate the sensors, and verify steering center, mechanical endpoints and the ESC's zero-throttle stop command. With the car raised and steering input centered, rotate the chassis by hand and confirm that the steering correction opposes the rotation.
  2. Configure the car mixer and enable RATE mode. Drift assistance currently works only in RATE mode. Get the steering rate loop working properly before tuning throttle reduction; drift-assistance sensitivity does not replace steering PID adjustment.
  3. Enable drift assistance on the Flight Control page. The feature is off by default. Its default activation channel is CH8 in the [1700, 2100) μs range: inclusive of the start, exclusive of the end. You can select another channel from CH5–CH16, provided it does not conflict with an enabled arming or Wi-Fi coexistence channel.
  4. Save and check the status. With an active RC link and the car armed, lower CH3 to its zero-throttle endpoint of 988 μs before saving. The arm and CH7 coexistence switches can remain on. If the transmitter cannot reach that endpoint, disconnect the RC link and save in Wi-Fi-only mode.
  5. Start slowly and change one setting at a time. Observe normal turns and direction changes, then compare behavior with assistance on and off. Reduce the assistance strength if too much speed is lost. If the car still over-rotates, check correction direction, mixer setup and steering response before gradually increasing throttle reduction.

Current defaults and accepted ranges are:

ParameterDefaultAccepted rangeEffect
Excess-rate threshold20°/s5–100°/sA lower value starts intervention earlier
Reduction ramp span80°/s20–300°/sA smaller span reaches the reduction limit sooner
Maximum throttle reduction15%0–30%Caps the fraction removed from current manual throttle
Attack time constant120 ms50–500 msA smaller value makes reduction respond faster
Recovery time constant300 ms100–1000 msA larger value restores manual throttle more gradually

The configurator also offers drift-assistance sensitivity levels from 1 to 10, defaulting to level 5. Moving the slider sets maximum reduction to level × 3% while leaving the other response parameters unchanged. Expert mode lets you expose detailed settings and adjust the intervention criteria and response times individually.

GLRS Configurator expert drift-assistance settings showing a 20 degree-per-second threshold, 80 degree-per-second ramp span, 15% maximum reduction, 120 ms attack and 300 ms recovery
Figure 5. Offline preview with detailed parameter configuration selected in Expert mode. The five values match the defaults in the table. Connect and read the receiver's actual configuration before changing and saving its settings. Click the image to view the original.

The status area shows target and measured yaw rates, manual and assisted throttle, the applied reduction, and reasons assistance is inactive. Messages such as requiring RATE mode, an incompatible car mixer or a channel conflict help identify setup issues. An enabled remote switch means the assistance calculation is active, not that throttle is necessarily being reduced at that moment; check the actual reduction percentage as well.

About GYRO-ELRS ​

GYRO-ELRS, also called Gyro-ExpressLRS or GLRS, is our open-source project based on ExpressLRS 3.x. It adds receiver-side gyro and accelerometer acquisition, mounting-orientation configuration, basic attitude estimation, rate and attitude control, and motor/servo mixing. Radio reception and basic stabilization can run on the same hardware and firmware.

The project began with lightweight receivers and basic flight control, but angular-rate feedback is also useful for ground models. The car application described here reuses the sensor, control-loop and mixing capabilities, adding bounded throttle reduction for excessive rotation. Availability still depends on the receiver's sensors, physical outputs and firmware configuration. Opening the configurator cannot give an ordinary ELRS receiver gyro capabilities it does not have.

For further details, see:

This article follows receiver code at GYRO-ELRS commit 91a1357f and the matching local configurator implementation. Interfaces, parameters and features may change in later versions.