... | ... | @@ -136,15 +136,10 @@ while (true) { |
|
|
|
|
|
leftMotor.controlMotor((int) Math.abs(motorPowerLeft*scale), forward);
|
|
|
rightMotor.controlMotor((int) Math.abs(motorPowerRight*scale),forward);
|
|
|
|
|
|
Thread.sleep(30);
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
When using the mapping as seen in fig. 10. (above) we learned that the robot has a behaviour of moving towards objects and stop. This was because of the inhibitory connection between the ultrasonic sensor and the robot. The motor in the same side as the ultrasonic sensor would move slower as the distance to an object got smaller.
|
|
|
|
|
|
## References
|
... | ... | |