1.5. A simplified Cruise Control Model #
1.5.1. Question:#
Simulate the time response of the simplified cruise control model equations descibed below.
1.5.2. Mathematical model:#
The car model can be approximated (for modeling purposes) using the free-body diagram as shown in the following figure
which defines coordinates, shows all forces acting on the body (thick lines), and indicates the acceleration (dashed lines). The coordinate of the car’s position, \(x\), is the distance from the reference line shown and chosen so that positive is to the right. Note that in this case the inertial acceleration is simply the second derivative of \(x\) (that is, \(a = \ddot x\)) because the car position is measured with respect to an inertial reference. The friction force acts opposite to the direction of motion; therefore it is drawn opposite the direction of positive motion and entered as a negative force.
The resulting equations are:
For a cruise control case, where the variable of interest is the speed \(v \,\) (\(=\dot x\)), the equation of motion becomes
If we are also interested in knowing the postion of the car then we need to introduce a first order differential equation to introduce the position in the model:
The resulting set of Ordinary Differential Equations (ODE’s) modelling a simplified cruise controle is
Python based simulation methods: