diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-06-24 11:42:23 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-06-24 11:42:23 +0200 |
commit | 40f6164ba6187a0160af9fe200bbd1d729e8c03b (patch) | |
tree | 84246633f40cb0c5d858168f63a5933d18006db3 /client/commands.c | |
parent | 2e537232404bf5123bc92e7218156ec03160c68f (diff) |
added TARQ to robot and client
Diffstat (limited to 'client/commands.c')
-rw-r--r-- | client/commands.c | 10 |
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); +} |