Tip:
Highlight text to annotate it
X
Let's look at the results first. The blue curve is the one that we know, almost optimal braking.
And you see that this type of pumping doesn't really cut it.
It takes more than 5 seconds to bring the car to a complete stop.
As the driver slams on the brake, the wheels locked every second,
which means that the wheel slip is almost never close to the optimum.
The implementation uses this on/off factor to where switch the brake on and off.
To compute when to switch off the brake, it'll get the fractional part of the time--
the time minus its integer part.
In the solution, we won't be overly picky about this precise instance of time
to take the finite step size into account, which require some more thinking.