summaryrefslogtreecommitdiff
path: root/robot/sim.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/sim.c
parent1913a240aab3a2ad72d477aa6fff840afdcad7a3 (diff)
implement direct control
Diffstat (limited to 'robot/sim.c')
-rw-r--r--robot/sim.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/robot/sim.c b/robot/sim.c
index baf8a8a..ddc208a 100644
--- a/robot/sim.c
+++ b/robot/sim.c
@@ -123,3 +123,6 @@ void w2_sim_print_serial(w2_s_bin *data) {
printf("\n");
}
+void set_motors(int left, int right) {
+ simprintfunc("set_motors", "%i, %i", left, right);
+}