Video 1.4 - Cruise Controller (Example)

Video

#Physics #Engineering #Control_Theory #Robotics

↩️ Go Back

Table of Contents:


C) Cruise Controller (Example)

Now that we have a way of describing "Dynamical systems" with "Differential Equations" in "Continuous Time", or "Difference Equations" in "Discrete Time”.

Let's do something interesting and build a "Cruise Controller" for a car.

The job of a "Cruise Controller" is to make a car drive at a desired speed "r"

C.1) Defining the Model for a Car

We can model the car using the Laws of Physics, and we can use Newton's 2nd Law to describe how a car (which has mass) behave.

|400

Now, *what is the state of the system?
We need to somehow relate Newton's 2nd Law to the system and its state.

In this case, since we want the "Cruise Controller" to control the speed of the car, we can say that the state x is the speed or velocity of the car.

Important Note

With this example, we are going to work with "speed", we don't care much about the direction of the car.
|500

But how does this relate with Newton's 2nd Law?

From the equation,

We know that the acceleration is the derivative of velocity (the derivative of our state "x" ).

The equation, F=ma describes how the system (the car) behaves given a specific force "F".
So we can use "F" to control the speed of the car.

|450

We can define F as,

with this equation we are mapping "stepping on the gas or the brake" onto the "force" that
is applied to the car. And this is done through some linear relationship.

As it was shown before "c" is the electro-mechanical transmission coefficient.

But…

Remember, our control design cannot rely on us knowing "c", otherwise it won't be Robust. We can't have our controller be too highly dependent on what the particular parameters of a model are.

The same argument applies to the mass "m" of the car, the number of passengers can change, etc).

Let's now write the differential equation of our system.

We know that,

And if we equate the 2 equation of force that we have we get,

C.2) Defining the Control Signal

  1. Assume we can measure the velocity of the car.

  1. The control signal should be a function of the error signal "e"

  1. Question: What properties should the control signal have for our application case?

↩️ Go Back


Z) 🗃️ Glossary

File Definition

↩️ Go Back