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

updated

parent b53b9402
Branches
No related tags found
No related merge requests found
......@@ -9,17 +9,6 @@
* e.g 1 is rpm and 2 is tps... etc
*/
static const uint8_t daqEcuDataToTag[8][4] = {
{1, 2, 3, 4},
{5, 6, 7, 8},
{9, 10, 11, 12},
{13, 14, 15, 16},
{17, 18, 19, 20},
{21, 22, 23, 24},
{25, 26, 27, 28},
{29, 30, 31, 32},
};
void daqEcuWrite(CanMsgTemplate *canMsg, uint8_t index)
{
static DaqEcuFormat daqEcuFormat;
......
......@@ -13,16 +13,29 @@ struct DaqEcuFormat
uint32_t timestamp;
uint16_t data;
uint8_t endTag;
};
} __attribute__((packed));
struct DaqEvoScannPressureFormat
{
uint8_t startTag;
uint32_t timestamp;
uint32_t data;
int data;
uint8_t endTag;
} __attribute__((packed));
static const uint8_t daqEcuDataToTag[8][4] = {
{1, 2, 3, 4},
{5, 6, 7, 8},
{9, 10, 11, 12},
{13, 14, 15, 16},
{17, 18, 19, 20},
{21, 22, 23, 24},
{25, 26, 27, 28},
{29, 30, 31, 32},
};
static const uint8_t daqEvoScannPressSensToTag[8] = {33, 34, 35, 36, 37, 38, 39, 40};
void daqEcuWrite(CanMsgTemplate *canMsg, uint8_t index);
#endif //DAQ_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment