English subtitles

← 05-16 Pumping the Brake

Get Embed Code
1 Language

Showing Revision 2 created 10/24/2012 by Amara Bot.

  1. Before we get started with automatic control, let's try manual control.
  2. We want the driver to slam on the brake from 0 second to 0.7 seconds, then release the brake,
  3. then slam on the brake again from 1 second to 1.7 seconds, release the brake and so on.
  4. The code of the simulation runs twice--the first time with the strength of the brake close to optimum
  5. and the second time re-release slamming on the brake.
  6. Your job is to do something about that second time.
  7. In that case, this volume variable is pumping becomes true
  8. by the way these parenthesis are just for readability.
  9. Without them, the code look somewhat strange, and when we are pumping, simulate
  10. that this value of p is being modulated, which means that we have to complete this line here.
  11. What is the velocity of the rim of the wheel in the next step.