File tree Expand file tree Collapse file tree 5 files changed +34
-21
lines changed
Expand file tree Collapse file tree 5 files changed +34
-21
lines changed Original file line number Diff line number Diff line change @@ -115,12 +115,9 @@ struct emu_data_t {
115115 float Batt; //V
116116 float IgnAngle; //deg
117117 float pulseWidth; //ms
118- float scondarypulseWidth; //ms
119118 uint16_t Egt1; //C
120119 uint16_t Egt2; //C
121- float knockLevel; //V
122120 float dwellTime; //ms
123- float wboAFR; //AFR
124121 int8_t gear; //
125122 uint8_t Baro; //kPa
126123 float analogIn1; //V
@@ -129,21 +126,15 @@ struct emu_data_t {
129126 float analogIn4; //V
130127 float analogIn5; //V
131128 float analogIn6; //V
132- float injDC; //%
133129 int8_t emuTemp; //C
134130 float oilPressure; //Bar
135131 uint8_t oilTemperature; //C
136132 float fuelPressure; //Bar
137133 int16_t CLT; //C
138134 float flexFuelEthanolContent; //%
139- int8_t ffTemp; //C
140135 float wboLambda; //λ
141136 uint16_t vssSpeed; //km/h
142- uint16_t deltaFPR; //kPa
143- uint8_t fuelLevel; //%
144- uint8_t tablesSet; //
145137 float lambdaTarget; //λ
146- float afrTarget; //AFR
147138 uint16_t cel; //
148139 float LambdaCorrection; //%
149140 uint8_t flags1; //Flags 1
@@ -155,6 +146,13 @@ struct emu_data_t {
155146 uint16_t boostTarget; //kPa
156147 uint8_t pwm2; //%
157148 float fuel_used; //L
149+ uint8_t DSGmode; //DSG mode
150+ float DBWpos; //%
151+ float DBWtarget; //%
152+ uint16_t TCdrpmRaw; //
153+ uint16_t TCdrpm; //
154+ uint8_t TCtorqueReduction; //%
155+ uint8_t PitLimitTorqueReduction; //%
158156};
159157```
160158
Original file line number Diff line number Diff line change 1111 "type" : " git" ,
1212 "url" : " https://github.com/designer2k2/EMUcan"
1313 },
14- "version" : " 1.0.6 " ,
14+ "version" : " 1.0.7 " ,
1515 "license" : " GPL-3.0-only" ,
1616 "frameworks" : " arduino" ,
1717 "platforms" : " *" ,
Original file line number Diff line number Diff line change 11name =EMUcan
2- version =1.0.6
2+ version =1.0.7
33author =Stephan M. <designer2k2@gmail.com>
44maintainer =Stephan M. <designer2k2@gmail.com>
55sentence =ECUMaster EMU CAN Stream Reader Arduino Library
Original file line number Diff line number Diff line change @@ -153,6 +153,21 @@ bool EMUcan::decodeEmuFrame(struct can_frame *msg) {
153153 // 7 ETHANOL %
154154 emu_data.flexFuelEthanolContent = msg->data [7 ];
155155 }
156+ // Base +5:
157+ if (msg->can_id == _EMUbase + 5 ) {
158+ // 0 DBW Pos 0.5%
159+ emu_data.DBWpos = msg->data [0 ] * 0.5 ;
160+ // 1 DBW Target 0.5%
161+ emu_data.DBWtarget = msg->data [1 ] * 0.5 ;
162+ // 2-3 TC DRPM RAW 16bit 1/bit
163+ emu_data.TCdrpmRaw = ((msg->data [3 ] << 8 ) + msg->data [2 ]);
164+ // 4-5 TC DRPM 16bit 1/bit
165+ emu_data.TCdrpm = ((msg->data [5 ] << 8 ) + msg->data [4 ]);
166+ // 6 TC Torque reduction %
167+ emu_data.TCtorqueReduction = msg->data [6 ];
168+ // 7 Pit Limit Torque reduction %
169+ emu_data.PitLimitTorqueReduction = msg->data [7 ];
170+ }
156171 // Base +6:
157172 if (msg->can_id == _EMUbase + 6 ) {
158173 // AIN in 16Bit unsigned 0.0048828125 V/bit
@@ -169,6 +184,8 @@ bool EMUcan::decodeEmuFrame(struct can_frame *msg) {
169184 emu_data.boostTarget = ((msg->data [1 ] << 8 ) + msg->data [0 ]);
170185 // 2 PWM#1 DC 1%/bit
171186 emu_data.pwm1 = msg->data [2 ];
187+ // 3 DSG mode 2=P 3=R 4=N 5=D 6=S 7=M 15=fault
188+ emu_data.DSGmode = msg->data [3 ];
172189 if (msg->can_dlc == 8 ) {
173190 // 4 Lambda target 8bit 0.01%/bit
174191 emu_data.lambdaTarget = msg->data [4 ] * 0.01 ;
Original file line number Diff line number Diff line change 2626
2727#include < mcp2515.h>
2828
29- #define EMUCAN_LIB_VERSION (F(" 1.0.6 " ))
29+ #define EMUCAN_LIB_VERSION (F(" 1.0.7 " ))
3030
3131// Available data
3232struct emu_data_t {
@@ -37,12 +37,9 @@ struct emu_data_t {
3737 float Batt; // V
3838 float IgnAngle; // deg
3939 float pulseWidth; // ms
40- float scondarypulseWidth; // ms
4140 uint16_t Egt1; // C
4241 uint16_t Egt2; // C
43- float knockLevel; // V
4442 float dwellTime; // ms
45- float wboAFR; // AFR
4643 int8_t gear; //
4744 uint8_t Baro; // kPa
4845 float analogIn1; // V
@@ -51,21 +48,15 @@ struct emu_data_t {
5148 float analogIn4; // V
5249 float analogIn5; // V
5350 float analogIn6; // V
54- float injDC; // %
5551 int8_t emuTemp; // C
5652 float oilPressure; // Bar
5753 uint8_t oilTemperature; // C
5854 float fuelPressure; // Bar
5955 int16_t CLT; // C
6056 float flexFuelEthanolContent; // %
61- int8_t ffTemp; // C
6257 float wboLambda; // λ
6358 uint16_t vssSpeed; // km/h
64- uint16_t deltaFPR; // kPa
65- uint8_t fuelLevel; // %
66- uint8_t tablesSet; //
6759 float lambdaTarget; // λ
68- float afrTarget; // AFR
6960 uint16_t cel; //
7061 float LambdaCorrection; // %
7162 uint8_t flags1; // Flags 1
@@ -77,6 +68,13 @@ struct emu_data_t {
7768 uint16_t boostTarget; // kPa
7869 uint8_t pwm2; // %
7970 float fuel_used; // L
71+ uint8_t DSGmode; // DSG mode
72+ float DBWpos; // %
73+ float DBWtarget; // %
74+ uint16_t TCdrpmRaw; //
75+ uint16_t TCdrpm; //
76+ uint8_t TCtorqueReduction; // %
77+ uint8_t PitLimitTorqueReduction; // %
8078};
8179
8280enum EMUcan_STATUS {
You can’t perform that action at this time.
0 commit comments