summaryrefslogtreecommitdiff
path: root/robot/mode_scal.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-05-26 17:56:56 +0200
committerlonkaars <loek@pipeframe.xyz>2022-05-26 17:56:56 +0200
commite4b0a76f56e290b7b052b4d5dad7ebb710f12c98 (patch)
treeafc14712cc67ea1550b830056ca5055c568fec3e /robot/mode_scal.c
parent6a1c9853402f623ef9eba76556a9a0213f04d3c8 (diff)
fix merge conflicts
Diffstat (limited to 'robot/mode_scal.c')
-rw-r--r--robot/mode_scal.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/robot/mode_scal.c b/robot/mode_scal.c
index e3a9c97..f3178d7 100644
--- a/robot/mode_scal.c
+++ b/robot/mode_scal.c
@@ -1,3 +1,19 @@
#include "mode_scal.h"
-void w2_mode_scal() {}
+void w2_mode_scal() {
+ // TODO ???
+ /* pololu_3pi_init(2000);
+ for (int counter = 0; counter < 80; counter++) {
+ if (counter < 20 || counter >= 60) {
+ g_w2_io.motor_left.speed = 40;
+ g_w2_io.motor_right.speed = -40;
+ } else {
+ g_w2_io.motor_left.speed = -40;
+ g_w2_io.motor_right.speed = 40;
+ }
+
+ calibrate_line_sensors(IR_EMITTERS_ON);
+
+ delay_ms(20); // TODO foei
+ } */
+}