7#define TABLE_RPM_MULTIPLIER 100
8#define TABLE_LOAD_MULTIPLIER 2
11#define TABLE_SHIFT_FACTOR 8
12#define TABLE_SHIFT_POWER (1UL<<TABLE_SHIFT_FACTOR)
15#define TABLE3D_SIZE_16 (16 * 16 + 32 + 32 + (16 * sizeof(byte*)))
16#define TABLE3D_SIZE_12 (12 * 12 + 24 + 24 + (12 * sizeof(byte*)))
17#define TABLE3D_SIZE_8 (8 * 8 + 16 + 16 + (8 * sizeof(byte*)))
18#define TABLE3D_SIZE_6 (6 * 6 + 12 + 12 + (6 * sizeof(byte*)))
19#define TABLE3D_SIZE_4 (4 * 4 + 8 + 8 + (4 * sizeof(byte*)))
22#define TABLE_FUEL1_SIZE 16;
23#define TABLE_FUEL2_SIZE 16;
24#define TABLE_IGN1_SIZE 16;
25#define TABLE_IGN2_SIZE 16;
26#define TABLE_AFR_SIZE 16;
27#define TABLE_STAGING_SIZE 8;
28#define TABLE_BOOST_SIZE 8;
29#define TABLE_VVT1_SIZE 8;
30#define TABLE_VVT2_SIZE 8;
31#define TABLE_WMI_SIZE 8;
32#define TABLE_TRIM1_SIZE 6;
33#define TABLE_TRIM2_SIZE 6;
34#define TABLE_TRIM3_SIZE 6;
35#define TABLE_TRIM4_SIZE 6;
36#define TABLE_TRIM5_SIZE 6;
37#define TABLE_TRIM6_SIZE 6;
38#define TABLE_TRIM7_SIZE 6;
39#define TABLE_TRIM8_SIZE 6;
40#define TABLE_DWELL_SIZE 4;
46#define TABLE_HEAP_SIZE ((5 * TABLE3D_SIZE_16) + (5 * TABLE3D_SIZE_8) + (8 * TABLE3D_SIZE_6) + (1 * TABLE3D_SIZE_4) + 1)
int16_t lastXMax
Definition: table.h:66
byte xSize
Definition: table.h:57
void * axisX
Definition: table.h:60
int16_t lastXMin
Definition: table.h:67
byte cacheTime
Definition: table.h:72
byte valueSize
Definition: table.h:55
int16_t lastOutput
Definition: table.h:71
void * values
Definition: table.h:59
int16_t lastInput
Definition: table.h:70
byte axisSize
Definition: table.h:56
byte lastXMax
Definition: table.h:92
byte ySize
Definition: table.h:85
int16_t lastYInput
Definition: table.h:96
byte ** values
Definition: table.h:87
byte lastYMin
Definition: table.h:93
byte lastOutput
Definition: table.h:97
bool cacheIsValid
This tracks whether the tables cache should be used. Ordinarily this is true, but is set to false whe...
Definition: table.h:98
int16_t * axisY
Definition: table.h:89
int16_t * axisX
Definition: table.h:88
int16_t lastXInput
Definition: table.h:96
byte xSize
Definition: table.h:84
byte lastYMax
Definition: table.h:93
byte lastXMin
Definition: table.h:92
int table2D_getValue(struct table2D *fromTable, int)
Definition: table.ino:84
int16_t table2D_getAxisValue(struct table2D *, byte)
Returns an axis (bin) value from the 2D table. This works regardless of whether that axis is bytes or...
Definition: table.ino:185
void table3D_setSize(struct table3D *targetTable, byte)
Definition: table.ino:54
void table2D_setSize(struct table2D *, byte)
int16_t table2D_getRawValue(struct table2D *, byte)
Returns an value from the 2D table given an index value. No interpolation is performed.
Definition: table.ino:202
int get3DTableValue(struct table3D *fromTable, int, int)
Definition: table.ino:215