... | ... | @@ -66,7 +66,7 @@ controlSignal(controlledValue); |
|
|
lastError = error;
|
|
|
Delay.msDelay(dt);
|
|
|
````
|
|
|
where the function controlSignal controls the power of the two motors in the following way
|
|
|
where the function `controlSignal()` controls the power of the two motors in the following way
|
|
|
```java
|
|
|
protected void controlSignal(float controlledValue) {
|
|
|
leftMotor.controlMotor((int)(Tp + controlledValue),1);
|
... | ... | |