hov havde ikke gemt authored by Steffan Lildholdt's avatar Steffan Lildholdt
...@@ -66,7 +66,7 @@ controlSignal(controlledValue); ...@@ -66,7 +66,7 @@ controlSignal(controlledValue);
lastError = error; lastError = error;
Delay.msDelay(dt); 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 ```java
protected void controlSignal(float controlledValue) { protected void controlSignal(float controlledValue) {
leftMotor.controlMotor((int)(Tp + controlledValue),1); leftMotor.controlMotor((int)(Tp + controlledValue),1);
... ...
......