From b728a15887fa28cdd98d74017c4882d632d6e069 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 30 May 2022 13:31:47 +0200 Subject: status bar almost done --- shared/modes.h | 16 ++++++++++++++++ shared/protocol.h | 1 + 2 files changed, 17 insertions(+) create mode 100644 shared/modes.h (limited to 'shared') diff --git a/shared/modes.h b/shared/modes.h new file mode 100644 index 0000000..ff939ea --- /dev/null +++ b/shared/modes.h @@ -0,0 +1,16 @@ +#pragma once + +#define W2_MODE_COUNT 8 + +/** mode constants */ +typedef enum { + W2_M_PREV = -1, + W2_M_MAZE = 0, + W2_M_GRID = 1, + W2_M_HALT = 2, + W2_M_LCAL = 3, + W2_M_CHRG = 4, + W2_M_DIRC = 5, + W2_M_SPIN = 6, + W2_M_SCAL = 7, +} w2_e_mode; diff --git a/shared/protocol.h b/shared/protocol.h index 93e53f4..02d5526 100644 --- a/shared/protocol.h +++ b/shared/protocol.h @@ -155,6 +155,7 @@ typedef struct { uint8_t sercomm_ms; uint8_t mode_ms; uint32_t uptime_s; + uint8_t mode; } w2_s_cmd_info_tx; typedef struct { -- cgit v1.2.3