aboutsummaryrefslogtreecommitdiff
path: root/robot/mode_dirc.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-05-26 15:34:58 +0200
committerlonkaars <loek@pipeframe.xyz>2022-05-26 15:34:58 +0200
commitf073c9d3848dab915bed4844e9d13684aa5e23eb (patch)
treeb98e96d8a3d56f2ba75189dbb65740e0091b6705 /robot/mode_dirc.c
parent1913a240aab3a2ad72d477aa6fff840afdcad7a3 (diff)
implement direct control
Diffstat (limited to 'robot/mode_dirc.c')
-rw-r--r--robot/mode_dirc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/robot/mode_dirc.c b/robot/mode_dirc.c
index 6c5d2bb..0bbf3cb 100644
--- a/robot/mode_dirc.c
+++ b/robot/mode_dirc.c
@@ -1,3 +1,7 @@
#include "mode_dirc.h"
+#include "orangutan_shim.h"
-void w2_mode_dirc() {}
+int16_t g_w2_mode_dirc_motor_l = 0;
+int16_t g_w2_mode_dirc_motor_r = 0;
+
+void w2_mode_dirc() { set_motors(g_w2_mode_dirc_motor_l, g_w2_mode_dirc_motor_r); }