State Hunter – Assignment 8
This is an adaptation of my previous robot for assignment 6, so the documentation for the robot is available here: Small Robot – Assignment 6.
-Sleep: The robot will sleep until something enters its hunting range. Sleep is triggered by the dark.
-Hunt: The robot will chase things that are close to until something gets too far away or too close, in which case it will run.
-Run: When in the run state, the robot will enter a wandering mode where it will avoid objects until its put to sleep.
Arduino Sketch: mti_state_bot