Skip to content
Tactiverge

Learning Rooms/○ Level 3 · Innovator/Robotics and control

Controlling Self Driving Cars

AerospaceControlsLab · Length: see YouTube · captions on YouTube · nothing loads until you press play

By the end you can…

  • Explain why low-level control loops run faster than planning loops.
  • Choose an update rate from how quickly the controlled quantity can change.
  • Calculate how many inner-loop updates happen per outer-loop decision.
?Predict▶Watch✓Practise⚙Build

Watch it all: no segment has been checked by hand for this video yet.

1.Predict before you press play

A wheel's speed can change noticeably in 5 ms. Roughly how often should its speed controller run?

Pick one before you press play. A wrong guess is fine: it is what makes the video stick.

2.See the idea first

Play with this diagram for a minute (borrowed from the lesson “One script is not a system”, on the same idea). It gives you something to hang the video on.

Loading the interactive…

Can't use the diagram? Read a description instead

The dependency explorer shows seven modules in layers: units.py at the bottom; grid.py and report.py import units; io_csv.py and planner.py import grid; main.py imports io_csv, planner and report; test_planner.py imports planner and grid. Changing units.py affects all five modules above it. Ticking the shortcut makes grid.py also import planner.py, creating a circular import.

3.Watch, actively

A university lab shows an autonomous car's layered system, where perception, planning and low-level control each play their part.

Length: see YouTube · captions on YouTube · source

Nothing loads from YouTube until you press play.

Watch for…

  • → Notice which parts of the car's software react within milliseconds and which plan seconds ahead.

Pause whenever you like. Rewatching a hard minute is a good habit, not a failure.

Can't stream it? Read the idea instead

An autonomous car runs nested loops. Perception and planning decide a path a few times a second, while low-level controllers adjust steering and speed many times faster to follow it. A fast inner loop lets the slower outer loop plan without worrying about every bump.

What the video covers (our own note, written when we verified it): A university lab shows an autonomous car's layered system, where perception, planning and low-level control each play their part.

Written by Tactiverge in our own words, not a transcript. The full lesson below explains the idea without the video.

Read it instead

Jot down one thing that surprised you and one question you still have.

Private: saved only on this device, never sent to Tactiverge.

4.Practise what you just saw

These come from the lesson that use this video and are checked on the server. Wrong answers get a hint and another try.

Practice 1

A current loop runs at 20 kHz. What is its period, in microseconds?

µs

Practice 2

Which job should run at the highest rate?

Practice 3

Why must an inner speed loop be much faster than the position loop around it?

Practice 4

A team moves the wheel PID from the main computer (which also runs vision) onto a small microcontroller. What is the main benefit?

6.Where engineers use it

Drone flight controllers typically run attitude loops at hundreds of hertz to a few kilohertz on a microcontroller, while a companion computer handles mapping and route planning far more slowly.

From the applied view in the lesson Fast loops inside slow ones. Checked by automated tests only.

7.Build something with it

Follow-up project

For a line-following robot, list four loops (motor current, wheel speed, line tracking, lap strategy). Give each a rate with a one-line justification based on how fast its quantity changes, and calculate the updates per decision between each pair.

Where this video lives

In the course catalogue: ROB-350 Integrated robotics

The video is by AerospaceControlsLab, embedded from YouTube with privacy-enhanced mode and never autoplayed. The room around it (prompts, notes, practice, projects) is Tactiverge's, written with AI assistance and checked by automated tests only.