Skip to content
Snippets Groups Projects
Commit 8fc62430 authored by nrs1g15's avatar nrs1g15
Browse files

Changed daq to be zero index based

parent 467974b1
No related branches found
No related tags found
No related merge requests found
...@@ -24,17 +24,17 @@ struct DaqEvoScannPressureFormat ...@@ -24,17 +24,17 @@ struct DaqEvoScannPressureFormat
} __attribute__((packed)); } __attribute__((packed));
static const uint8_t daqEcuDataToTag[8][4] = { static const uint8_t daqEcuDataToTag[8][4] = {
{1, 2, 3, 4}, {0, 1, 2, 3},
{5, 6, 7, 8}, {4, 5, 6, 7},
{9, 10, 11, 12}, {8, 9, 10, 11},
{13, 14, 15, 16}, {12, 13, 14, 15},
{17, 18, 19, 20}, {16, 17, 18, 19},
{21, 22, 23, 24}, {20, 21, 22, 23},
{25, 26, 27, 28}, {24, 25, 26, 27},
{29, 30, 31, 32}, {28, 29, 30, 31},
}; };
static const uint8_t daqEvoScannPressSensToTag[8] = {33, 34, 35, 36, 37, 38, 39, 40}; static const uint8_t daqEvoScannPressSensToTag[8] = {32, 33, 34, 35, 36, 37, 38, 39};
void daqEcuWrite(CanMsgTemplate *canMsg, uint8_t index); void daqEcuWrite(CanMsgTemplate *canMsg, uint8_t index);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment