add config

This commit is contained in:
Matthew Kennedy 2022-12-01 15:40:36 -08:00
parent 5824028b54
commit a2a019dbac
1 changed files with 11 additions and 3 deletions

View File

@ -33,10 +33,18 @@ public:
void LoadDefaults(); void LoadDefaults();
// Actual configuration data // Actual configuration data
union {
struct {
uint8_t CanIndexOffset = 0; 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 // pad to 256 bytes including tag
uint8_t pad[128 - 1 - 4]; uint8_t pad[256 - 4];
};
}; };
int InitConfiguration(); int InitConfiguration();