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

Added implementation for ease of use saving to sd card ecu parameters in the...

Added implementation for ease of use saving to sd card ecu parameters in the correct form for host parsing
parent bd95e51d
No related branches found
No related tags found
No related merge requests found
...@@ -10,12 +10,9 @@ ...@@ -10,12 +10,9 @@
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="e173ebdc-c119-4235-9653-364cc21b27a5" name="Default Changelist" comment=""> <list default="true" id="e173ebdc-c119-4235-9653-364cc21b27a5" name="Default Changelist" comment="">
<change afterPath="$PROJECT_DIR$/ecuCan.cpp" afterDir="false" /> <change afterPath="$PROJECT_DIR$/ecuOpenloggerTags.h" afterDir="false" />
<change afterPath="$PROJECT_DIR$/ecuCan.h" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/buffer.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/buffer.cpp" afterDir="false" /> <change beforePath="$PROJECT_DIR$/ecuCan.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/ecuCan.cpp" afterDir="false" />
<change beforePath="$PROJECT_DIR$/can.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/can.cpp" afterDir="false" />
<change beforePath="$PROJECT_DIR$/can.h" beforeDir="false" afterPath="$PROJECT_DIR$/can.h" afterDir="false" />
<change beforePath="$PROJECT_DIR$/sufst-openlogger_controller.ino" beforeDir="false" afterPath="$PROJECT_DIR$/sufst-openlogger_controller.ino" afterDir="false" /> <change beforePath="$PROJECT_DIR$/sufst-openlogger_controller.ino" beforeDir="false" afterPath="$PROJECT_DIR$/sufst-openlogger_controller.ino" afterDir="false" />
</list> </list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
...@@ -49,8 +46,8 @@ ...@@ -49,8 +46,8 @@
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/sufst-openlogger_controller.ino"> <entry file="file://$PROJECT_DIR$/sufst-openlogger_controller.ino">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="629"> <state relative-caret-position="767">
<caret line="56" lean-forward="true" selection-start-line="56" selection-end-line="56" /> <caret line="62" column="40" selection-start-line="62" selection-start-column="40" selection-end-line="62" selection-end-column="40" />
<folding> <folding>
<element signature="e#57#90#0" expanded="true" /> <element signature="e#57#90#0" expanded="true" />
</folding> </folding>
...@@ -61,8 +58,8 @@ ...@@ -61,8 +58,8 @@
<file pinned="false" current-in-tab="true"> <file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/ecuCan.cpp"> <entry file="file://$PROJECT_DIR$/ecuCan.cpp">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="715"> <state relative-caret-position="867">
<caret line="59" lean-forward="true" selection-start-line="59" selection-end-line="59" /> <caret line="51" column="22" selection-start-line="51" selection-start-column="22" selection-end-line="51" selection-end-column="22" />
<folding> <folding>
<element signature="e#39#58#0" expanded="true" /> <element signature="e#39#58#0" expanded="true" />
<element signature="e#767#962#0" expanded="true" /> <element signature="e#767#962#0" expanded="true" />
...@@ -90,6 +87,15 @@ ...@@ -90,6 +87,15 @@
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/ecuOpenloggerTags.h">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="119">
<caret line="7" column="38" selection-start-line="7" selection-start-column="8" selection-end-line="7" selection-end-column="38" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/ecuCan.h"> <entry file="file://$PROJECT_DIR$/ecuCan.h">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
...@@ -102,8 +108,8 @@ ...@@ -102,8 +108,8 @@
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/openLoggerController.cpp"> <entry file="file://$PROJECT_DIR$/openLoggerController.cpp">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="683"> <state relative-caret-position="32">
<caret line="55" lean-forward="true" selection-start-line="55" selection-end-line="55" /> <caret line="40" column="13" lean-forward="true" selection-start-line="40" selection-start-column="13" selection-end-line="40" selection-end-column="13" />
<folding> <folding>
<element signature="e#40#73#0" expanded="true" /> <element signature="e#40#73#0" expanded="true" />
</folding> </folding>
...@@ -150,8 +156,8 @@ ...@@ -150,8 +156,8 @@
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/can.h"> <entry file="file://$PROJECT_DIR$/can.h">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="221"> <state relative-caret-position="401">
<caret line="13" column="28" lean-forward="true" selection-start-line="13" selection-start-column="28" selection-end-line="13" selection-end-column="28" /> <caret line="28" column="15" selection-start-line="28" selection-start-column="15" selection-end-line="28" selection-end-column="15" />
</state> </state>
</provider> </provider>
</entry> </entry>
...@@ -160,7 +166,6 @@ ...@@ -160,7 +166,6 @@
</component> </component>
<component name="FindInProjectRecents"> <component name="FindInProjectRecents">
<findStrings> <findStrings>
<find>cirBuffer</find>
<find>openloggerCommandTxCirBuffer</find> <find>openloggerCommandTxCirBuffer</find>
<find>begin</find> <find>begin</find>
<find>Cir</find> <find>Cir</find>
...@@ -189,6 +194,7 @@ ...@@ -189,6 +194,7 @@
<find>tail</find> <find>tail</find>
<find>Serial</find> <find>Serial</find>
<find>OPENLOGGER_TX_BUFFER_LEN</find> <find>OPENLOGGER_TX_BUFFER_LEN</find>
<find>startTag</find>
<find>openloggerProcess</find> <find>openloggerProcess</find>
</findStrings> </findStrings>
<replaceStrings> <replaceStrings>
...@@ -213,6 +219,7 @@ ...@@ -213,6 +219,7 @@
<option value="$PROJECT_DIR$/openLoggerController.cpp" /> <option value="$PROJECT_DIR$/openLoggerController.cpp" />
<option value="$PROJECT_DIR$/can.cpp" /> <option value="$PROJECT_DIR$/can.cpp" />
<option value="$PROJECT_DIR$/can.h" /> <option value="$PROJECT_DIR$/can.h" />
<option value="$PROJECT_DIR$/ecuOpenloggerTags.h" />
<option value="$PROJECT_DIR$/sufst-openlogger_controller.ino" /> <option value="$PROJECT_DIR$/sufst-openlogger_controller.ino" />
<option value="$PROJECT_DIR$/ecuCan.cpp" /> <option value="$PROJECT_DIR$/ecuCan.cpp" />
</list> </list>
...@@ -291,7 +298,7 @@ ...@@ -291,7 +298,7 @@
<servers /> <servers />
</component> </component>
<component name="TimeTrackingManager"> <component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="86593000" /> <option name="totallyTimeSpent" value="90843000" />
</component> </component>
<component name="ToolWindowManager"> <component name="ToolWindowManager">
<frame x="651" y="0" width="1915" height="1407" extended-state="0" /> <frame x="651" y="0" width="1915" height="1407" extended-state="0" />
...@@ -343,16 +350,6 @@ ...@@ -343,16 +350,6 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/openLoggerController.cpp">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="683">
<caret line="55" lean-forward="true" selection-start-line="55" selection-end-line="55" />
<folding>
<element signature="e#40#73#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/openLoggerController.h"> <entry file="file://$PROJECT_DIR$/openLoggerController.h">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="221"> <state relative-caret-position="221">
...@@ -374,17 +371,34 @@ ...@@ -374,17 +371,34 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/openLoggerController.cpp">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="32">
<caret line="40" column="13" lean-forward="true" selection-start-line="40" selection-start-column="13" selection-end-line="40" selection-end-column="13" />
<folding>
<element signature="e#40#73#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/ecuOpenloggerTags.h">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="119">
<caret line="7" column="38" selection-start-line="7" selection-start-column="8" selection-end-line="7" selection-end-column="38" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/can.h"> <entry file="file://$PROJECT_DIR$/can.h">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="221"> <state relative-caret-position="401">
<caret line="13" column="28" lean-forward="true" selection-start-line="13" selection-start-column="28" selection-end-line="13" selection-end-column="28" /> <caret line="28" column="15" selection-start-line="28" selection-start-column="15" selection-end-line="28" selection-end-column="15" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/sufst-openlogger_controller.ino"> <entry file="file://$PROJECT_DIR$/sufst-openlogger_controller.ino">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="629"> <state relative-caret-position="767">
<caret line="56" lean-forward="true" selection-start-line="56" selection-end-line="56" /> <caret line="62" column="40" selection-start-line="62" selection-start-column="40" selection-end-line="62" selection-end-column="40" />
<folding> <folding>
<element signature="e#57#90#0" expanded="true" /> <element signature="e#57#90#0" expanded="true" />
</folding> </folding>
...@@ -393,8 +407,8 @@ ...@@ -393,8 +407,8 @@
</entry> </entry>
<entry file="file://$PROJECT_DIR$/ecuCan.cpp"> <entry file="file://$PROJECT_DIR$/ecuCan.cpp">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="715"> <state relative-caret-position="867">
<caret line="59" lean-forward="true" selection-start-line="59" selection-end-line="59" /> <caret line="51" column="22" selection-start-line="51" selection-start-column="22" selection-end-line="51" selection-end-column="22" />
<folding> <folding>
<element signature="e#39#58#0" expanded="true" /> <element signature="e#39#58#0" expanded="true" />
<element signature="e#767#962#0" expanded="true" /> <element signature="e#767#962#0" expanded="true" />
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#include "ecuCan.h" #include "ecuCan.h"
#include "openLoggerController.h" #include "openLoggerController.h"
#include "ecuOpenloggerTags.h"
struct EcuDataOpenlogger struct EcuDataOpenlogger
{ {
...@@ -13,7 +14,9 @@ struct EcuDataOpenlogger ...@@ -13,7 +14,9 @@ struct EcuDataOpenlogger
uint8_t endTag; uint8_t endTag;
}; };
void ecuOpenloggerWrite(EcuDataOpenlogger &ecuDataOpenlogger); void ecuOpenloggerWrite(EcuDataOpenlogger *ecuDataOpenlogger);
void ecuOpenloggerSave(CanMsgTemplate *canMsgTemplate, uint8_t index);
void ecuOpenloggerWrite(EcuDataOpenlogger &ecuDataOpenlogger) void ecuOpenloggerWrite(EcuDataOpenlogger &ecuDataOpenlogger)
{ {
...@@ -30,6 +33,25 @@ void ecuOpenloggerWrite(EcuDataOpenlogger &ecuDataOpenlogger) ...@@ -30,6 +33,25 @@ void ecuOpenloggerWrite(EcuDataOpenlogger &ecuDataOpenlogger)
openloggerWrite(openloggerPayload, 8); openloggerWrite(openloggerPayload, 8);
} }
void ecuOpenloggerSave(CanMsgTemplate *canMsg, uint8_t index)
{
static EcuDataOpenlogger ecuDataOpenlogger;
uint8_t ecuId = canMsg->idByte[0];
uint8_t ecuParamterTag = ecuMsgParameterToOpenloggerTag[ecuId][index];
ecuDataOpenlogger.startTag = ecuParamterTag;
ecuDataOpenlogger.timestamp = canMsg->timestamp;
ecuDataOpenlogger.data = canMsg->data16[index];
ecuDataOpenlogger.endTag = ecuParamterTag;
ecuOpenloggerWrite(ecuDataOpenlogger);
}
void ecuCanMsg0x2000(CanMsgTemplate *canMsg) void ecuCanMsg0x2000(CanMsgTemplate *canMsg)
{ {
#if DEBUG_ECU_CAN #if DEBUG_ECU_CAN
...@@ -50,22 +72,10 @@ void ecuCanMsg0x2000(CanMsgTemplate *canMsg) ...@@ -50,22 +72,10 @@ void ecuCanMsg0x2000(CanMsgTemplate *canMsg)
uint16_t waterTempC = canMsg->data16[2]; uint16_t waterTempC = canMsg->data16[2];
uint16_t airTempC = canMsg->data16[3]; uint16_t airTempC = canMsg->data16[3];
static EcuDataOpenlogger tpsPercOpenlogger; ecuOpenloggerSave(canMsg, 0);
static EcuDataOpenlogger rpmOpenlogger; ecuOpenloggerSave(canMsg, 1);
ecuOpenloggerSave(canMsg, 2);
rpmOpenlogger.startTag = 1; ecuOpenloggerSave(canMsg, 3);
rpmOpenlogger.timestamp = canMsg->timestamp;
rpmOpenlogger.data = rpm;
rpmOpenlogger.endTag = 1;
ecuOpenloggerWrite(tpsPercOpenlogger);
tpsPercOpenlogger.startTag = 2;
tpsPercOpenlogger.timestamp = canMsg->timestamp;
tpsPercOpenlogger.data = tpsPerc;
tpsPercOpenlogger.endTag = 2;
ecuOpenloggerWrite(rpmOpenlogger);
} }
void ecuCanMsg0x2001(CanMsgTemplate *canMsg) void ecuCanMsg0x2001(CanMsgTemplate *canMsg)
...@@ -88,6 +98,11 @@ void ecuCanMsg0x2001(CanMsgTemplate *canMsg) ...@@ -88,6 +98,11 @@ void ecuCanMsg0x2001(CanMsgTemplate *canMsg)
uint16_t speedKphx10 = canMsg->data16[2]; uint16_t speedKphx10 = canMsg->data16[2];
uint16_t oilPressKpa = canMsg->data16[3]; uint16_t oilPressKpa = canMsg->data16[3];
ecuOpenloggerSave(canMsg, 0);
ecuOpenloggerSave(canMsg, 1);
ecuOpenloggerSave(canMsg, 2);
ecuOpenloggerSave(canMsg, 3);
} }
void ecuCanMsg0x2002(CanMsgTemplate *canMsg) void ecuCanMsg0x2002(CanMsgTemplate *canMsg)
...@@ -110,8 +125,12 @@ void ecuCanMsg0x2002(CanMsgTemplate *canMsg) ...@@ -110,8 +125,12 @@ void ecuCanMsg0x2002(CanMsgTemplate *canMsg)
uint16_t batteryVx10 = canMsg->data16[2]; uint16_t batteryVx10 = canMsg->data16[2];
uint16_t fuelComsumLpHrx10 = canMsg->data16[3]; uint16_t fuelComsumLpHrx10 = canMsg->data16[3];
// Serial.println((float)(batteryVx10 / 10.0)); ecuOpenloggerSave(canMsg, 0);
ecuOpenloggerSave(canMsg, 1);
ecuOpenloggerSave(canMsg, 2);
ecuOpenloggerSave(canMsg, 3);
// Serial.println((float)(batteryVx10 / 10.0));
} }
void ecuCanMsg0x2003(CanMsgTemplate *canMsg) void ecuCanMsg0x2003(CanMsgTemplate *canMsg)
...@@ -134,7 +153,10 @@ void ecuCanMsg0x2003(CanMsgTemplate *canMsg) ...@@ -134,7 +153,10 @@ void ecuCanMsg0x2003(CanMsgTemplate *canMsg)
uint16_t injectionTimeMsx100 = canMsg->data16[2]; uint16_t injectionTimeMsx100 = canMsg->data16[2];
uint16_t fuelComsumLp100kMx10 = canMsg->data16[3]; uint16_t fuelComsumLp100kMx10 = canMsg->data16[3];
Serial.println(currentGear); ecuOpenloggerSave(canMsg, 0);
ecuOpenloggerSave(canMsg, 1);
ecuOpenloggerSave(canMsg, 2);
ecuOpenloggerSave(canMsg, 3);
} }
void ecuCanMsg0x2004(CanMsgTemplate *canMsg) void ecuCanMsg0x2004(CanMsgTemplate *canMsg)
...@@ -156,6 +178,11 @@ void ecuCanMsg0x2004(CanMsgTemplate *canMsg) ...@@ -156,6 +178,11 @@ void ecuCanMsg0x2004(CanMsgTemplate *canMsg)
uint16_t ana2mV = canMsg->data16[1]; uint16_t ana2mV = canMsg->data16[1];
uint16_t ana3mV = canMsg->data16[2]; uint16_t ana3mV = canMsg->data16[2];
uint16_t camAdvanceDegx10 = canMsg->data16[3]; uint16_t camAdvanceDegx10 = canMsg->data16[3];
ecuOpenloggerSave(canMsg, 0);
ecuOpenloggerSave(canMsg, 1);
ecuOpenloggerSave(canMsg, 2);
ecuOpenloggerSave(canMsg, 3);
} }
void ecuCanMsg0x2005(CanMsgTemplate *canMsg) void ecuCanMsg0x2005(CanMsgTemplate *canMsg)
...@@ -199,6 +226,11 @@ void ecuCanMsg0x2006(CanMsgTemplate *canMsg) ...@@ -199,6 +226,11 @@ void ecuCanMsg0x2006(CanMsgTemplate *canMsg)
uint16_t cam2PwmPercx10 = canMsg->data16[2]; uint16_t cam2PwmPercx10 = canMsg->data16[2];
uint16_t external5VmV = canMsg->data16[3]; uint16_t external5VmV = canMsg->data16[3];
ecuOpenloggerSave(canMsg, 0);
ecuOpenloggerSave(canMsg, 1);
ecuOpenloggerSave(canMsg, 2);
ecuOpenloggerSave(canMsg, 3);
} }
void ecuCanMsg0x2007(CanMsgTemplate *canMsg) void ecuCanMsg0x2007(CanMsgTemplate *canMsg)
...@@ -220,6 +252,11 @@ void ecuCanMsg0x2007(CanMsgTemplate *canMsg) ...@@ -220,6 +252,11 @@ void ecuCanMsg0x2007(CanMsgTemplate *canMsg)
uint16_t lambdaPidTargPercx10 = canMsg->data16[1]; uint16_t lambdaPidTargPercx10 = canMsg->data16[1];
uint16_t lambdaPidAdjPercx10 = canMsg->data16[2]; uint16_t lambdaPidAdjPercx10 = canMsg->data16[2];
uint16_t ecuSwitchesBitField = canMsg->data16[3]; uint16_t ecuSwitchesBitField = canMsg->data16[3];
ecuOpenloggerSave(canMsg, 0);
ecuOpenloggerSave(canMsg, 1);
ecuOpenloggerSave(canMsg, 2);
ecuOpenloggerSave(canMsg, 3);
} }
void ecuCanMsg0x2008(CanMsgTemplate *canMsg) void ecuCanMsg0x2008(CanMsgTemplate *canMsg)
...@@ -242,6 +279,10 @@ void ecuCanMsg0x2008(CanMsgTemplate *canMsg) ...@@ -242,6 +279,10 @@ void ecuCanMsg0x2008(CanMsgTemplate *canMsg)
uint16_t ldSpeedKphx10 = canMsg->data16[2]; uint16_t ldSpeedKphx10 = canMsg->data16[2];
uint16_t lUdSpeedKphx10 = canMsg->data16[3]; uint16_t lUdSpeedKphx10 = canMsg->data16[3];
ecuOpenloggerSave(canMsg, 0);
ecuOpenloggerSave(canMsg, 1);
ecuOpenloggerSave(canMsg, 2);
ecuOpenloggerSave(canMsg, 3);
} }
void ecuCanMsg0x2009(CanMsgTemplate *canMsg) void ecuCanMsg0x2009(CanMsgTemplate *canMsg)
...@@ -259,5 +300,5 @@ void ecuCanMsg0x2009(CanMsgTemplate *canMsg) ...@@ -259,5 +300,5 @@ void ecuCanMsg0x2009(CanMsgTemplate *canMsg)
Serial.println("ECU : 0x2008"); Serial.println("ECU : 0x2008");
#endif //DEBUG_ECU_CAN_MINIMAL #endif //DEBUG_ECU_CAN_MINIMAL
//uint16_t rightLambdax1000 = canMsg->data16[0]; uint16_t rightLambdax1000 = canMsg->data16[0];
} }
\ No newline at end of file
//
// Created by Sil on 7/21/2019.
//
#ifndef ECUOPENLOGGERTAGS_H
#define ECUOPENLOGGERTAGS_H
uint8_t ecuMsgParameterToOpenloggerTag[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}
};
#endif //ECUOPENLOGGERTAGS_H
...@@ -43,20 +43,25 @@ void loop() ...@@ -43,20 +43,25 @@ void loop()
static CanMsgTemplate emulateCanMsg; static CanMsgTemplate emulateCanMsg;
emulateCanMsg.id = 0x2002;
emulateCanMsg.len = 8; emulateCanMsg.len = 8;
emulateCanMsg.data16[2] = 123;
emulateCanMsg.data16[3] = 555;
if ((currMs - lastSdWriteMs) >= 20) { if ((currMs - lastSdWriteMs) >= 20) {
emulateCanMsg.timestamp = millis(); emulateCanMsg.timestamp = millis();
emulateCanMsg.data16[0] = cnt++; emulateCanMsg.data16[0] = cnt++;
emulateCanMsg.data16[1] = cnt++; emulateCanMsg.data16[1] = cnt++;
emulateCanMsg.data16[2] = cnt++;
emulateCanMsg.data16[3] = cnt++;
emulateCanMsg.id = 0x2000;
ecuCanMsg0x2000(&emulateCanMsg); ecuCanMsg0x2000(&emulateCanMsg);
emulateCanMsg.id = 0x2002;
ecuCanMsg0x2002(&emulateCanMsg);
lastSdWriteMs = millis(); lastSdWriteMs = millis();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment