To conduct our experiments we configured a LightVehicle.java class which mapped the light readings from each of the two sensors to the motors (see snippet).
For each experiment we implemented both the inhibitory and the exitatory behavior (ref). The exitatory behavior causes the robot to accelerate as it nears the light source, and the inhibatory behavior caused the robot to decelerate as it detects more light. The different behaviors were implemented using this mapping of the motors and sensors:
Exitatory behavior:
## References
## References
#### Literature
#### Literature
[1] Braitenberg, V. 1984. Vehicles, Experiments in Synthetic Psychology London, Cambridge: The MIT Press.
[1] Braitenberg, V. 1984. Vehicles, Experiments in Synthetic Psychology London, Cambridge: The MIT Press.
[2] Tom Dean, http://cs.brown.edu/people/tld/courses/cs148/02/introduction.html
[2] Tom Dean, http://cs.brown.edu/people/tld/courses/cs148/02/introduction.html