... | ... | @@ -44,7 +44,7 @@ if(leftDistance < stopThreshold && |
|
|
}
|
|
|
```
|
|
|
|
|
|
The `rotate` function added to the `PrivateCar` class is defined as follows:
|
|
|
The `rotate()` function added to the `PrivateCar` class is defined as follows:
|
|
|
|
|
|
```java
|
|
|
public void rotate(boolean left, int power)
|
... | ... | @@ -163,7 +163,6 @@ In Fred Martins code, arrays are preallocated to be able to contain ten processe |
|
|
[Single behavior] - http://youtu.be/iFmBLXIuRiE
|
|
|
[Single behavior modified] - http://youtu.be/Xvs0y3kdMeA
|
|
|
[Concurrent behaviors] - http://youtu.be/Q02iTiezgPk
|
|
|
|
|
|
[Concurrent behavior - Light turning motor] - http://youtu.be/SRYQU0VrlH0
|
|
|
|
|
|
### Code
|
... | ... | |