-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Realdash can bmwe46 #11
Comments
Added BMW Siemens MS42 CAN file: https://github.com/janimm/RealDash-extras/tree/master/RealDash-CAN/XML-files/BMW Give it a try. |
|
Take a screenshot from CAN Monitor with vehicle running at idle. |
here is my option! |
frame id="0x316" endianess="little |
Would appreciate pull request or attach the updated XML. |
<value targetId="37" offset="2" length="2"conversion="V/6.42"> |
but I'm afraid that everything will change in id="0x316, since I changed "big" to "little" |
hello! tell me how to add to xml this sample is taken from the megasquirt files on the dashboard of bmw e46
if (ram5.can_bcast1 & 0x10) { // from Peter Florance
id = Engine_RPM316; //0x316 BMW E46 - engine control unit RPM is 6.42:1 ratio = outpc.rpm*6.42
val = (unsigned int)((outpc.rpm * 642UL) / 100);
data[0] = 0x00;
data[1] = 0x00;
data[2] = (unsigned char)(val & 0xff); //byte 3 = RPM, L
data[3] = (unsigned char)(val >> 8); //byte 4 = RPM, H
data[4] = 0x00;
data[5] = 0x00;
data[6] = 0x00;
data[7] = 0x00;
send_can11bit(id, data, 8);
}
if (ram5.can_bcast1 & 0x20) { // from Peter Florance
id = Engine_Temp329;// 0x329
// val = (((outpc.clt - 320) * 5) / 9)/10;
// val = (int)(((val + 48)*4)/3);
val = (1088 + (outpc.clt << 1)) / 27;
data[0] = 0x00;
data[1] = (unsigned char)val;
data[2] = 0x00;
data[3] = 0x00;
data[4] = 0x00;
data[5] = 0x00;
data[6] = 0x00;
data[7] = 0x00;
send_can11bit(id, data, 8);
The text was updated successfully, but these errors were encountered: