From 3e65c70da770fa31fc8acc6ab9374d908cf1ed17 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Tue, 7 Jun 2022 21:27:16 +0200 Subject: implement orders --- client/i18n/en_us.h | 39 +++++++++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 12 deletions(-) (limited to 'client/i18n/en_us.h') diff --git a/client/i18n/en_us.h b/client/i18n/en_us.h index 47debd7..ceca215 100644 --- a/client/i18n/en_us.h +++ b/client/i18n/en_us.h @@ -24,7 +24,7 @@ #define W2_UI_TAB_LABEL_ERRCATCH "logs" #define W2_UI_TAB_LABEL_MCFG "map" #define W2_UI_TAB_LABEL_ORDERS "orders" -#define W2_UI_TAB_LABEL_MODE "set mode" +#define W2_UI_TAB_LABEL_MODES "set mode" #define W2_UI_TAB_START_MESSAGE "" \ "welcome to the wall-e2 console application!\n" \ @@ -33,18 +33,9 @@ "this application is functionally similar to a BIOS.\n" \ "here's a brief summary of keyboard commands:\n" \ "\n" \ - " switch to next tab\n" \ - "/, / select option\n" \ - ", edit option\n" \ - ", scroll to top\n" \ - ", scroll to bottom\n" \ - " back\n" \ - " exit\n" \ + " switch to next tab\n" \ + " exit\n" \ "\n" \ - "tab shortcuts:\n" \ - " info orders\n" \ - " logs set mode\n" \ - " direct control map\n" #define W2_UI_ERROR_SEVERITY_CRIT "CRIT" #define W2_UI_ERROR_SEVERITY_WARN "WARN" @@ -86,3 +77,27 @@ #define W2_UI_ERROR_USR_W2_E_WARN_SERIAL_NOISY "invalid serial data received (noisy channel / check connection?)" #define W2_UI_ERROR_USR_W2_E_WARN_MODE_HISTORY_BUFFER_IOB "mode history buffer index out of bounds" #define W2_UI_ERROR_USR_W2_E_WARN_PING_TIMEOUT "ping timed out" + +#define W2_UI_ORDER_CMD_HELP "help" +#define W2_UI_ORDER_CMD_START "start" +#define W2_UI_ORDER_CMD_COORDINATE "coordinate" +#define W2_UI_ORDER_CMD_DONE "done" +#define W2_UI_ORDER_CMD_SEND "send" + +#define W2_UI_ORDER_MSG_ERROR "unknown command, type 'help' to see a list of valid commands\n\n" +#define W2_UI_ORDER_MSG_HELP \ + "commands:\n" \ + "\n" \ + W2_UI_ORDER_CMD_HELP ": print this list\n" \ + W2_UI_ORDER_CMD_START ": start an order\n" \ + W2_UI_ORDER_CMD_COORDINATE " : add a coordinate to the current order\n" \ + W2_UI_ORDER_CMD_DONE ": finish the current order\n" \ + W2_UI_ORDER_CMD_SEND ": send the latest completed order to robot\n\n" +#define W2_UI_ORDER_MSG_ORDER_START_OK "order started\n\n" +#define W2_UI_ORDER_MSG_ORDER_START_ERR "order already started\n\n" +#define W2_UI_ORDER_MSG_ORDER_APPEND_OK "appended coordinate to order\n\n" +#define W2_UI_ORDER_MSG_ORDER_APPEND_ERR "no order active\n\n" +#define W2_UI_ORDER_MSG_ORDER_DONE_OK "order saved\n\n" +#define W2_UI_ORDER_MSG_ORDER_DONE_ERR "no order active\n\n" +#define W2_UI_ORDER_MSG_ORDER_SENT "order sent to robot\n\n" + -- cgit v1.2.3