summaryrefslogtreecommitdiff
path: root/robot/sim.h
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.h
parent1913a240aab3a2ad72d477aa6fff840afdcad7a3 (diff)
implement direct control
Diffstat (limited to 'robot/sim.h')
-rw-r--r--robot/sim.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/robot/sim.h b/robot/sim.h
index 25cc713..a595042 100644
--- a/robot/sim.h
+++ b/robot/sim.h
@@ -10,7 +10,7 @@
extern bool g_w2_sim_headless;
// debug fine-tuning
-#define DBG_ENABLE_PRINTFUNC (0)
+#define DBG_ENABLE_PRINTFUNC (1)
#define DBG_ENABLE_SIMWARN (1)
#define DBG_ENABLE_SIMINFO (1)
#define DBG_ENABLE_CYCLEINFO (0)
@@ -54,6 +54,8 @@ void serial_set_baud_rate(unsigned int rate); // NOLINT
void serial_send(char *message, unsigned int length); // NOLINT
void serial_receive_ring(char *buffer, unsigned char size); // NOLINT
unsigned char serial_get_received_bytes(); // NOLINT
+void set_motors(int left, int right); // NOLINT
+
void w2_sim_setup(int argc, char **argv);
void w2_sim_cycle_begin();
void w2_sim_print_serial(w2_s_bin *data);