Chapter 7: Vehicle Control Systems

The control system is where digital decisions meet physical reality. Given a planned trajectory — a sequence of desired positions, headings, and speeds — the controller must compute the exact steering angle, throttle, and brake commands that make the vehicle follow that trajectory accurately and smoothly.

Drive-by-Wire

Modern autonomous vehicles use drive-by-wire systems that replace mechanical linkages with electronic controls:

Drive-by-wire is a prerequisite for autonomous driving — without it, the computer cannot physically control the vehicle.

Vehicle Dynamics Models

Effective control requires a model of how the vehicle responds to control inputs.

The Bicycle Model

The most widely used simplified vehicle model treats the car as having two wheels (one front, one rear) along the centerline:

Kinematic bicycle model (valid at low speeds):

\(\dot{x} = v \cos(\psi + \beta)\) \(\dot{y} = v \sin(\psi + \beta)\) \(\dot{\psi} = \frac{v}{l_r} \sin(\beta)\)

where:

Dynamic bicycle model (includes tire forces, valid at higher speeds):

\(m \dot{v}_x = F_{x,f} + F_{x,r} - F_{\text{drag}}\) \(m \dot{v}_y = F_{y,f} + F_{y,r}\) \(I_z \dot{\omega} = l_f F_{y,f} - l_r F_{y,r}\)

where $F_{y,f}$ and $F_{y,r}$ are the lateral tire forces (modeled using tire models like the Pacejka “Magic Formula”).

Tire Models

The Pacejka Magic Formula relates tire slip to lateral force:

\[F_y = D \sin(C \arctan(B \alpha - E(B \alpha - \arctan(B \alpha))))\]

where $\alpha$ is the tire slip angle, and $B, C, D, E$ are empirical coefficients that depend on the tire and road surface. At low slip angles, tire force is approximately linear; at high slip, the tire saturates and can lose grip.

Lateral Control (Steering)

Pure Pursuit

One of the simplest and most widely used path-following algorithms:

  1. Find a look-ahead point on the planned path at distance $L_d$ ahead of the vehicle
  2. Compute the steering angle that would make the vehicle follow a circular arc to that point:
\[\delta = \arctan\left(\frac{2 L \sin(\alpha)}{L_d}\right)\]

where $L$ is the wheelbase, $\alpha$ is the angle between the vehicle heading and the look-ahead point, and $L_d$ is the look-ahead distance.

Key parameter: The look-ahead distance $L_d$. A shorter look-ahead tracks the path more closely but can cause oscillations; a longer look-ahead smooths the response but cuts corners.

A common approach: set $L_d$ proportional to speed:

\[L_d = k_v \cdot v + L_{\min}\]

Stanley Controller

Developed by Stanford’s winning team in the 2005 DARPA Grand Challenge. It combines:

\[\delta = \psi_e + \arctan\left(\frac{k \cdot e_\text{cte}}{v}\right)\]

where $\psi_e$ is the heading error, $e_\text{cte}$ is the cross-track error, $k$ is a gain parameter, and $v$ is the speed.

The Stanley controller is simple, intuitive, and works well at moderate speeds. The inverse speed term provides natural speed-adaptive behavior: at low speeds, large corrections for cross-track error; at high speeds, gentler corrections.

PID Controller

A PID (Proportional-Integral-Derivative) controller for steering:

\[\delta(t) = K_p \cdot e(t) + K_i \int_0^t e(\tau) d\tau + K_d \frac{de(t)}{dt}\]

where $e(t)$ is the cross-track error.

PID is straightforward but limited: it cannot anticipate future curvature, leading to lag on curved roads. It also requires careful tuning of the three gains.

Model Predictive Control (MPC)

MPC is the most sophisticated control approach and increasingly the standard in production autonomous vehicles.

Core idea: At each time step, solve an optimization problem over a finite prediction horizon:

\[\min_{u_0, ..., u_{N-1}} \sum_{t=0}^{N-1} \left[ (\mathbf{x}_t - \mathbf{x}_t^\text{ref})^T Q (\mathbf{x}_t - \mathbf{x}_t^\text{ref}) + \mathbf{u}_t^T R \mathbf{u}_t \right]\]

subject to: \(\mathbf{x}_{t+1} = f(\mathbf{x}_t, \mathbf{u}_t)\) \(\mathbf{u}_\text{min} \leq \mathbf{u}_t \leq \mathbf{u}_\text{max}\) \(\mathbf{x}_\text{min} \leq \mathbf{x}_t \leq \mathbf{x}_\text{max}\)

where:

The procedure at each time step:

  1. Measure current state
  2. Solve the optimization over the prediction horizon (typically 1–3 seconds, at 10–20 Hz)
  3. Apply only the first control command
  4. Discard the rest and repeat at the next time step

Advantages of MPC:

Challenges:

Linear MPC vs. Nonlinear MPC

Linear MPC linearizes the vehicle dynamics around the current operating point, producing a Quadratic Program (QP) that can be solved efficiently (~1 ms). Suitable for highway driving where deviations from the linearization point are small.

Nonlinear MPC (NMPC) uses the full nonlinear vehicle dynamics. More accurate at high speeds and large steering angles but requires nonlinear optimization solvers (e.g., IPOPT, ACADOS) and more computation (~10–50 ms).

Longitudinal Control (Speed)

PID Speed Controller

A PID controller on the speed error $e_v = v_\text{desired} - v_\text{actual}$:

\[a_\text{cmd} = K_p \cdot e_v + K_i \int e_v \, dt + K_d \frac{de_v}{dt}\]

The acceleration command is then mapped to throttle or brake:

Feed-Forward + Feedback

For better performance, combine:

\[a_\text{cmd} = a_\text{ff}(\text{desired acceleration, grade, drag}) + a_\text{fb}(e_v)\]

Adaptive Cruise Control (ACC)

A specific longitudinal control application: maintaining a safe following distance.

The time-headway policy:

\[d_\text{desired} = d_0 + t_h \cdot v\]

where $d_0$ is the minimum standstill gap and $t_h$ is the desired time headway (typically 1.5–2.0 seconds). The controller adjusts speed to maintain this gap.

Combined Lateral-Longitudinal Control

In practice, lateral and longitudinal control are coupled:

MPC naturally handles this coupling by optimizing steering and acceleration jointly.

Cascaded control separates the problem: the speed controller tracks a speed profile, and the lateral controller tracks the path, with soft constraints ensuring coordination.

Low-Level Actuation

The control commands (steering angle, throttle position, brake pressure) must be translated to physical actuator commands:

Steering Actuation

Throttle/Brake Actuation

Actuator Dynamics

Physical actuators have delays and rate limits:

These must be accounted for in the control design. MPC can model actuator dynamics by including them in the prediction model.

Fault Tolerance and Safety

Redundancy

Safety-critical control systems require redundancy:

Fail-Safe Behavior

If a critical component fails, the vehicle must execute a Minimum Risk Condition (MRC):

  1. Alert the driver (Level 2–3) or initiate autonomous stop (Level 4–5)
  2. Reduce speed smoothly
  3. Move to the shoulder or stop in the current lane
  4. Activate hazard lights

ISO 26262

The automotive functional safety standard ISO 26262 defines Automotive Safety Integrity Levels (ASIL) from A (lowest) to D (highest). Autonomous driving functions require ASIL-D, the most stringent level, demanding:

Summary

Vehicle control translates digital decisions into physical motion. Key takeaways:

  1. Drive-by-wire is essential — electronic control of steering, throttle, and brakes
  2. Vehicle dynamics models (bicycle model, tire models) are necessary for accurate control
  3. Lateral control ranges from simple (Pure Pursuit, PID) to sophisticated (MPC)
  4. MPC is the gold standard — it handles constraints, anticipates the future, and couples lateral-longitudinal control
  5. Fault tolerance through redundancy is critical for safety-critical systems
  6. Actuator dynamics (delays, rate limits) must be modeled for stable control

The next chapter explores a fundamentally different approach: end-to-end learning systems that bypass the modular stack entirely.


← Previous: Path Planning and Decision Making Next: End-to-End Learning Approaches →

← Back to Table of Contents