aboutsummaryrefslogtreecommitdiff
path: root/robot/mode_dirc.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-05-26 18:56:41 +0200
committerlonkaars <loek@pipeframe.xyz>2022-05-26 18:56:41 +0200
commite75c48a4d79a838844aab071c81b2879aab2b5ee (patch)
tree175599e4df47cad9cb655080f3cbd0029e16973f /robot/mode_dirc.c
parent515ea1b4db5528a08deed32463f77cd03a7f7139 (diff)
check naming rules and moved some things around
Diffstat (limited to 'robot/mode_dirc.c')
-rw-r--r--robot/mode_dirc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/robot/mode_dirc.c b/robot/mode_dirc.c
index 0bbf3cb..9ed9fef 100644
--- a/robot/mode_dirc.c
+++ b/robot/mode_dirc.c
@@ -1,7 +1,10 @@
#include "mode_dirc.h"
-#include "orangutan_shim.h"
+#include "io.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); }
+void w2_mode_dirc() {
+ g_w2_io.motor_left.speed = g_w2_mode_dirc_motor_l;
+ g_w2_io.motor_right.speed = g_w2_mode_dirc_motor_r;
+}