summaryrefslogtreecommitdiff
path: root/robot/mode_scal.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-06-29 09:34:54 +0200
committerlonkaars <loek@pipeframe.xyz>2022-06-29 09:34:54 +0200
commit4d446fb2c1d14142304971095ee60668ba9c6bc5 (patch)
treed5e5670f17a2d8a89748645b0739ef95dd6bf4f4 /robot/mode_scal.c
parent0b50dfe730d87ff052ef08f0dd6df6071d50aef9 (diff)
[WIP] last touches for second assessment
Diffstat (limited to 'robot/mode_scal.c')
-rw-r--r--robot/mode_scal.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/robot/mode_scal.c b/robot/mode_scal.c
index e4e282c..245fec4 100644
--- a/robot/mode_scal.c
+++ b/robot/mode_scal.c
@@ -1,14 +1,15 @@
#include "mode_scal.h"
#include "modes.h"
#include "orangutan_shim.h"
+#include "io.h"
// callibrates the robot
void w2_mode_scal() {
for (int counter = 0; counter < 80; counter++) {
if (counter < 20 || counter >= 60) {
- set_motors(40, -40);
+ w2_set_motors(40, -40);
} else {
- set_motors(-40, 40);
+ w2_set_motors(-40, 40);
}
calibrate_line_sensors(IR_EMITTERS_ON);