Adaptive Cruise Control. Udacity micro challenge.
Look for cruise.py
and implement the control
function.
Join the #acc-challenge channel on the ND013 Slack and ask away.
Here are some reference links shared by Mac:
- https://www.codeproject.com/articles/36459/pid-process-control-a-cruise-control-example
- http://itech.fgcu.edu/faculty/zalewski/cda4170/files/pidcontrol.pdf
- https://github.com/slater1/AdaptiveCruiseControl
- https://github.com/commaai/openpilot/blob/master/selfdrive/controls/lib/adaptivecruise.py
python setup.py test
- Create assertions for reasonable behavior when implementing the maneuver and fail the tests when those do not pass. For example, distance to car in front is 0, or target speed is different to actual speed.
- Implement plotting of PID curves to compare solutions.
- Replace
gas=0
andbrake=0
for a simple solution that passes the tests. - Decide if we need to run the tests in real time or do something different.