summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-06-07 23:46:48 +0200
committerlonkaars <loek@pipeframe.xyz>2022-06-07 23:46:48 +0200
commit0d3c52e49dc34344f335fd6d7b214592723cbc93 (patch)
tree36c8b974556a5ee3c955549131ac3858208d373b /client
parentc88c7c7c6e6c687c3d8170cb07a467aa3c4d7f48 (diff)
implemented obstacle detection
Diffstat (limited to 'client')
-rw-r--r--client/main.h1
-rw-r--r--client/serial.c2
-rw-r--r--client/ui_dirc.c4
3 files changed, 0 insertions, 7 deletions
diff --git a/client/main.h b/client/main.h
index cd81348..b72b507 100644
--- a/client/main.h
+++ b/client/main.h
@@ -17,7 +17,6 @@ typedef struct {
uint8_t map_height;
w2_s_cmd_info_tx info;
- w2_s_cmd_sens_tx io;
} w2_s_client_state;
extern w2_s_client_state g_w2_state;
diff --git a/client/serial.c b/client/serial.c
index 044b636..2a4d26f 100644
--- a/client/serial.c
+++ b/client/serial.c
@@ -38,7 +38,6 @@ void w2_cmd_mode_tx(w2_s_bin *data) {
}
void w2_cmd_cord_tx(w2_s_bin *data) {}
void w2_cmd_bomd_tx(w2_s_bin *data) {}
-void w2_cmd_sens_tx(w2_s_bin *data) {}
void w2_cmd_info_tx(w2_s_bin *data) {
memcpy(&g_w2_state.info, data->data, sizeof(w2_s_cmd_info_tx));
@@ -51,7 +50,6 @@ void w2_cmd_cord_rx(w2_s_bin *data) { return; }
void w2_cmd_bomd_rx(w2_s_bin *data) { return; }
void w2_cmd_sres_rx(w2_s_bin *data) { return; }
void w2_cmd_mcfg_rx(w2_s_bin *data) { return; }
-void w2_cmd_sens_rx(w2_s_bin *data) { return; }
void w2_cmd_info_rx(w2_s_bin *data) { return; }
void w2_cmd_disp_rx(w2_s_bin *data) { return; }
void w2_cmd_play_rx(w2_s_bin *data) { return; }
diff --git a/client/ui_dirc.c b/client/ui_dirc.c
index e2da863..db91661 100644
--- a/client/ui_dirc.c
+++ b/client/ui_dirc.c
@@ -98,10 +98,6 @@ void w2_ui_onkey_dirc(int ch) {
if (ch == 'q' || ch == 'w') g_w2_rf++;
if (ch == 'a' || ch == 's') g_w2_rb++;
if (ch == ' ') w2_send_mode(W2_M_DIRC);
-
- char buf[32];
- sprintf(buf, "er is iets fout, %02x", ch);
- w2_errcatch_throw_msg(0x69, 32, buf);
}
void w2_ui_tab_dirc(bool first) {