aboutsummaryrefslogtreecommitdiff
path: root/client/commands.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-06-24 11:42:23 +0200
committerlonkaars <loek@pipeframe.xyz>2022-06-24 11:42:23 +0200
commit40f6164ba6187a0160af9fe200bbd1d729e8c03b (patch)
tree84246633f40cb0c5d858168f63a5933d18006db3 /client/commands.c
parent2e537232404bf5123bc92e7218156ec03160c68f (diff)
added TARQ to robot and client
Diffstat (limited to 'client/commands.c')
-rw-r--r--client/commands.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/client/commands.c b/client/commands.c
index d2e53c8..768289e 100644
--- a/client/commands.c
+++ b/client/commands.c
@@ -64,3 +64,13 @@ void w2_send_mode(w2_e_mode mode) {
free(msg_bin);
}
}
+
+void w2_send_tarq(w2_e_target_area target_area) {
+ W2_CREATE_MSG_BIN(w2_s_cmd_tarq_rx, msg, msg_bin);
+
+ msg->opcode = W2_CMD_TARQ | W2_CMDDIR_RX;
+ msg->target_area = target_area;
+
+ w2_send_bin(msg_bin);
+ free(msg_bin);
+}