... | ... | @@ -62,6 +62,12 @@ We then tried with increasing the values of the threshold for turning left or ri |
|
|
|
|
|
### Vehicle 2
|
|
|
|
|
|
The robot was rebuilt to include two light sensors instead of the sound sensor, as shown in [Insert picture]
|
|
|
|
|
|
[Insert picture 2 light sensors]
|
|
|
|
|
|
A program was created, **LightLover.java** which behaves similarly to **SoundLover.java**. The difference being we now have two sensors, where we map one sensors light readings to one motors power, and the other sensors readings to the second motors power. We created Braitenberg's Vehicle 2a by simply mapping the left light sensors value to the left motor, and the right light sensors value to the right motor. As we have programmed for an exitatory behavior, this means that high light levels on the left sensor will mean a high power on the left motor, and as a result cause the robot to drive *away* from light sources.
|
|
|
|
|
|
|
|
|
### Vehicle 3
|
|
|
|
... | ... | |