This commit is contained in:
rusefillc 2021-03-14 17:40:33 -04:00
parent ee5e73b446
commit ef65c01a40
3 changed files with 22 additions and 1 deletions

View File

@ -236,6 +236,23 @@ void canDashboardW202(void) {
}
}
/**
* https://docs.google.com/spreadsheets/d/1XMfeGlhgl0lBL54lNtPdmmFd8gLr2T_YTriokb30kJg
*/
void canDashboardVagMqb() {
{ // 'turn-on'
CanTxMessage msg(0x3C0, 4);
// ignition ON
msg[2] = 3;
}
{ //RPM
CanTxMessage msg(0x107, 8);
msg[3] = ((int)(GET_RPM() / 3.5)) & 0xFF;
msg[4] = ((int)(GET_RPM() / 3.5)) >> 8;
}
}
void canDashboardBMWE90()
{
if (e90msgcounter == UINT16_MAX)

View File

@ -13,3 +13,4 @@ void canDashboardVAG();
void canMazdaRX8();
void canDashboardW202();
void canDashboardBMWE90();
void canDashboardVagMqb();

View File

@ -61,6 +61,9 @@ void CanWrite::PeriodicTask(efitime_t nowNt) {
case CAN_BUS_BMW_E90:
canDashboardBMWE90();
break;
case CAN_BUS_MQB:
canDashboardVagMqb();
break;
default:
break;
}