@@ -98,7 +98,7 @@ The Braitenberg vehicle[10] using ultrasonic sensors bumps into several objects
...
@@ -98,7 +98,7 @@ The Braitenberg vehicle[10] using ultrasonic sensors bumps into several objects
*Vehicle 3 mounted with light and ultrasonic sensors.*
*Vehicle 3 mounted with light and ultrasonic sensors.*
We built the Braitenberg vehicle 3 using two ultrasonic sensors and two light sensors. The light sensors had the floodlight disabled. Our goal was to create a robot avoiding obstacles and shadows. First we made the vehicle's power only depend on the ultrasonic sensors. For calculating the motor power from the ultrasonic sensor, we used the following method:
We built the Braitenberg vehicle 3 using crossed (as in vehicle 2b) excitatory connections for two ultrasonic sensors and inhibitory connections for two light sensors. The light sensors had the floodlight disabled. Our goal was to create a robot avoiding obstacles and shadows. First we made the vehicle's power only depend on the ultrasonic sensors. For calculating the motor power from the ultrasonic sensor, we used the following method:
@@ -116,8 +116,7 @@ public static int motorPowerFromDistance(int distance) {
...
@@ -116,8 +116,7 @@ public static int motorPowerFromDistance(int distance) {
}
}
```
```
When calculating the motor power, using also the light sensors, we simply averaged the motor power from this method and the method used for the vehicle using 2 light sensors[2]. This seemed to create a reasonable balance between the 2 two sensors, and made the vehicle drive around objects and avoid shadows as seen in video [7]
When calculating the motor power, using also the light sensors, we simply averaged the motor power from this method and the method used for the vehicle using two light sensors[2]. This seemed to create a reasonable balance between the 2 two sensors, and made the vehicle drive around objects and avoid shadows as seen in video [7]