ESC Module

Electronic Stability Control (ESC) helps maintain vehicle stability by detecting and reducing loss of traction during cornering. It applies individual wheel braking to correct oversteer or understeer conditions.
How It Works
ESC calculates the slip angle (difference between velocity direction and vehicle forward direction) and applies corrective braking to inner wheels relative to the slip direction to counter the rotation.
Intervention strength scales with vehicle speed, reaching full speed multiplier effect at 50 m/s (180 km/h).
Settings
| Property | Range | Description |
|---|---|---|
| Intensity | 1-30 | Overall intervention strength multiplier |
| Minimum Speed | m/s | Minimum speed for ESC activation (default: 3.0) |
| Intervention Threshold | degrees | Minimum slip angle before ESC activates (default: 2.0) |
| Steering Compensation | 0-1 | How much to reduce intervention for intentional steering input |
| Base Brake Torque | Nm | Foundation brake force for corrections (default: 50) |
| Speed Multiplier | x100% | Intervention strength increase at higher speeds (at 50 m/s) |
Typical Values
Comfort (maximum stability):
intensity: 15
interventionThreshold: 1.5
steeringCompensation: 0.3
Sport (balanced):
intensity: 10
interventionThreshold: 3.0
steeringCompensation: 0.5
Track (minimal intervention):
intensity: 5
interventionThreshold: 5.0
steeringCompensation: 0.8
Behavior Notes
- Only intervenes when slip angle exceeds threshold and speed is above minimum, allowing normal cornering
- Steering compensation helps distinguish between intentional sliding and loss of control
- Applies braking only to grounded wheels on the inner side of the slip
- Designed for 4-wheel vehicles; may need adjustment for other configurations
- Does not work on motorcycles (use Motorcycle Module instead)
Scripting
// Adjust ESC intensity for different driving modes
vehicleController.moduleManager.esc.intensity = 15f; // Comfort mode
vehicleController.moduleManager.esc.intensity = 5f; // Sport mode
// Disable ESC for drift mode
vehicleController.moduleManager.esc.Disable();
Related
- ABS Module - Anti-lock Braking System
- TCS Module - Traction Control System
- Motorcycle Module - Motorcycle-specific stabilization
- Module Manager - Module system overview