aboutsummaryrefslogtreecommitdiff
path: root/client/i18n/en_us.h
blob: 2a24c15aac566365218ee06e7e56aa8db7446d42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#pragma once

#define W2_UI_CLI_USAGE "usage: %s <serial port>\n"
#define W2_UI_CLI_SERPORT_ERROR "serial port open fout\n"
#define W2_UI_CLI_INITSCR_FAIL "ncurses initscr() failed\n"
#define W2_UI_CONN_STAT_CONNECTED "connected"
#define W2_UI_CONN_STAT_DISCONNECTED "disconnected"
#define W2_UI_CONN_STAT_PING "ping"
#define W2_UI_BATT_STAT_BATTERY "battery"
#define W2_UI_EXPT_STAT_WARNINGS "warning(s)"
#define W2_UI_EXPT_STAT_ERRORS "error(s)"

#define W2_UI_MODE_CHRG "charging station"
#define W2_UI_MODE_DIRC "direct control"
#define W2_UI_MODE_GRID "grid"
#define W2_UI_MODE_HALT "emergency stop"
#define W2_UI_MODE_LCAL "line calibration"
#define W2_UI_MODE_MAZE "maze"
#define W2_UI_MODE_SCAL "sensor calibration"
#define W2_UI_MODE_SPIN "wet floor simulation"

#define W2_UI_TAB_LABEL_START "info"
#define W2_UI_TAB_LABEL_DIRC "direct control"
#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_MODES "set mode"

#define W2_UI_TAB_START_MESSAGE "" \
	"welcome to the wall-e2 console application!\n" \
	"this is client version " W2_BUILD_STR "\n" \
	"\n" \
	"this application is functionally similar to a BIOS.\n" \
	"here's a brief summary of keyboard commands:\n" \
	"\n" \
	"<tab>        switch to next tab\n" \
	"<ctrl-c>     exit\n" \
	"\n" \

#define W2_UI_ERROR_SEVERITY_CRIT "CRIT"
#define W2_UI_ERROR_SEVERITY_WARN "WARN"
#define W2_UI_ERROR_SEVERITY_INFO "INFO"
#define W2_UI_ERROR_SEVERITY_VERB "VERB"

#define W2_UI_ERROR_INT_W2_E_UNKNOWN "W2_E_UNKNOWN"
#define W2_UI_ERROR_INT_W2_E_CRIT_CONN_LOST "W2_E_CRIT_CONN_LOST"
#define W2_UI_ERROR_INT_W2_E_CRIT_COM_UNAVAILABLE "W2_E_CRIT_COM_UNAVAILABLE"
#define W2_UI_ERROR_INT_W2_E_CRIT_LINE_LOST "W2_E_CRIT_LINE_LOST"
#define W2_UI_ERROR_INT_W2_E_CRIT_OBSTACLE_STUCK "W2_E_CRIT_OBSTACLE_STUCK"
#define W2_UI_ERROR_INT_W2_E_CRIT_VERSION_INCOMPATIBLE "W2_E_CRIT_VERSION_INCOMPATIBLE"
#define W2_UI_ERROR_INT_W2_E_WARN_BATTERY_LOW "W2_E_WARN_BATTERY_LOW"
#define W2_UI_ERROR_INT_W2_E_WARN_OBSTACLE_DETECTED "W2_E_WARN_OBSTACLE_DETECTED"
#define W2_UI_ERROR_INT_W2_E_WARN_CYCLE_EXPIRED "W2_E_WARN_CYCLE_EXPIRED"
#define W2_UI_ERROR_INT_W2_E_WARN_UNCAUGHT_ERROR "W2_E_WARN_UNCAUGHT_ERROR"
#define W2_UI_ERROR_INT_W2_E_WARN_ERR_BUFFER_FULL "W2_E_WARN_ERR_BUFFER_FULL"
#define W2_UI_ERROR_INT_W2_E_WARN_LINE_LOST "W2_E_WARN_LINE_LOST"
#define W2_UI_ERROR_INT_W2_E_WARN_SERCOMM_BUFFER_FULL "W2_E_WARN_SERCOMM_BUFFER_FULL"
#define W2_UI_ERROR_INT_W2_E_WARN_VERSION_INCOMPATIBLE "W2_E_WARN_VERSION_INCOMPATIBLE"
#define W2_UI_ERROR_INT_W2_E_WARN_SERIAL_NOISY "W2_E_WARN_SERIAL_NOISY"
#define W2_UI_ERROR_INT_W2_E_WARN_MODE_HISTORY_BUFFER_IOB "W2_E_WARN_MODE_HISTORY_BUFFER_IOB"
#define W2_UI_ERROR_INT_W2_E_WARN_PING_TIMEOUT "W2_E_WARN_PING_TIMEOUT"

#define W2_UI_ERROR_USR_W2_E_UNKNOWN "unknown error code"
#define W2_UI_ERROR_USR_W2_E_CRIT_CONN_LOST "connection to robot lost"
#define W2_UI_ERROR_USR_W2_E_CRIT_COM_UNAVAILABLE "COM-port unavailable"
#define W2_UI_ERROR_USR_W2_E_CRIT_LINE_LOST "line lost and unable to be found automatically"
#define W2_UI_ERROR_USR_W2_E_CRIT_OBSTACLE_STUCK "obstacle detected, robot stuck"
#define W2_UI_ERROR_USR_W2_E_CRIT_VERSION_INCOMPATIBLE "major version mismatch detected, please update robot"
#define W2_UI_ERROR_USR_W2_E_WARN_BATTERY_LOW "battery low, going to charging station"
#define W2_UI_ERROR_USR_W2_E_WARN_OBSTACLE_DETECTED "obstacle detected, waiting"
#define W2_UI_ERROR_USR_W2_E_WARN_CYCLE_EXPIRED "maximum logic module cycle time exceeded"
#define W2_UI_ERROR_USR_W2_E_WARN_UNCAUGHT_ERROR "uncaught error occurred"
#define W2_UI_ERROR_USR_W2_E_WARN_ERR_BUFFER_FULL "error buffer full"
#define W2_UI_ERROR_USR_W2_E_WARN_LINE_LOST "line lost, trying to find line automatically"
#define W2_UI_ERROR_USR_W2_E_WARN_SERCOMM_BUFFER_FULL "serial communication buffer full"
#define W2_UI_ERROR_USR_W2_E_WARN_VERSION_INCOMPATIBLE "minor version mismatch detected, this might cause problems"
#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 " <x> <y>: 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"

#define W2_UI_MODES_INFO \
	"press keys (0-9) for:\n" \
	"\n" \
	"1 - set to maze mode\n" \
	"2 - set to grid mode\n" \
	"3 - halt (emergency stop)\n" \
	"4 - set to charging station mode\n" \
	"5 - set to spinning mode (wet floor simulation)\n" \
	"6 - calibrate sensors\n" \
	"7 - set target area to maze\n" \
	"8 - set target area to grid\n" \
	"9 - set target area to charging station\n" \
	"\n" \
	"0 - previous\n" \