From a2a019dbac2e3a0ea98fd724273615a8ce1fbc27 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Thu, 1 Dec 2022 15:40:36 -0800 Subject: [PATCH] add config --- firmware/boards/port.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/firmware/boards/port.h b/firmware/boards/port.h index 3a75b4d..3c5be0a 100644 --- a/firmware/boards/port.h +++ b/firmware/boards/port.h @@ -33,10 +33,18 @@ public: void LoadDefaults(); // Actual configuration data - uint8_t CanIndexOffset = 0; + union { + struct { + uint8_t CanIndexOffset = 0; + // AUX0 and AUX1 curves + float auxOutBins[2][8]; + float auxOutValues[2][8]; + uint8_t auxInput[2]; + } __attribute__((packed)); - // pad to 128 bytes - uint8_t pad[128 - 1 - 4]; + // pad to 256 bytes including tag + uint8_t pad[256 - 4]; + }; }; int InitConfiguration();