aboutsummaryrefslogtreecommitdiff
path: root/robot/mode_dirc.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-06-02 12:12:47 +0200
committerlonkaars <loek@pipeframe.xyz>2022-06-02 12:12:47 +0200
commitb12d6b2ecee0be03122a4bdba8ebbc91112fae3f (patch)
tree1bcc95eb0c26ffd1fbf23fab79f9ea80f26425b8 /robot/mode_dirc.c
parent139651d45a72d57c5147e2854647d95cb87c9e4e (diff)
dirc working
Diffstat (limited to 'robot/mode_dirc.c')
-rw-r--r--robot/mode_dirc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/robot/mode_dirc.c b/robot/mode_dirc.c
index 9ed9fef..5988816 100644
--- a/robot/mode_dirc.c
+++ b/robot/mode_dirc.c
@@ -1,10 +1,13 @@
#include "mode_dirc.h"
#include "io.h"
+#include "orangutan_shim.h"
+
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);
g_w2_io.motor_left.speed = g_w2_mode_dirc_motor_l;
g_w2_io.motor_right.speed = g_w2_mode_dirc_motor_r;
}