summaryrefslogtreecommitdiff
path: root/robot/mode_scal.c
diff options
context:
space:
mode:
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);