DOC PREVIEW
CALTECH CDS 101 - Homework 1

This preview shows page 1 out of 2 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

HW 1 Cruise Control ModelRichard M. Murray Shreesh MysoreControl and Dynamical SystemsCalifornia Institute of Technology30 September 2002The file hw1cruise.mdl contains a simple model of a cruise controller for a car, depicted inFigure 1. The system consists of a simple model of a vehicle (“car dynamics”), with a proportionalplus integral (PI) control law to track a step change in the car velocity. The commanded and actualvariable are stored to the MATLAB workspace, along with the time vector.The vehicle model is given by a simple linear modelm ˙v = −bv + Fewhere v is the vehicle velocity, m is the mass of the vehicle, b is the damping coefficient and Feisthe force applied by the engine. We assume linear damping (−bv). The model is initialized at 55miles/hour. In addition a 0.2 second time delay is included to simulate the engine dynamics, andthe input force is saturated at a value corresponding to a maximum velocity of 100 miles/hour.These dynamics are in the subsytem block labelled “Car dynamics”.The control law attempts to maintain the vehicle speed by applying a motor force that is thesum of two terms:• a proportional gain that depends on the difference in speed between the commanded inputand current vehicle speed• an integral gain that depends on the integrated error of the commanded and current speed.Figure 1: SIMULINK model for hw1cruise.mdl.1The commanded speed is set by a step input, which changes from 55 miles/hour to 65 miles/hourat t = 10 seconds. The integrator is initialized so that the initial input from the control law keepsthe car at 55 miles/hour, the initial speed of the car.The gains for the control law are shown in the green (shaded) boxes. They can be set by doubleclicking on them and typing the new value in the dialog box. The default gains give a stable controllaw with some overshoot and a fairly long settling time.The simulation store three variables to the MATLAB workspace:• ref – the commanded (reference) velocity for the car• vel – the actual velocity of the car• time – the time vector for the simulatonThese variables are all stored as simple arrays, allowing them to be plotted using the plot


View Full Document

CALTECH CDS 101 - Homework 1

Documents in this Course
Load more
Download Homework 1
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Homework 1 and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Homework 1 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?