This commit is contained in:
rusefi 2021-07-05 17:47:59 -04:00
parent 13c130983e
commit 0393b038db
3 changed files with 13 additions and 1 deletions

View File

@ -938,6 +938,7 @@ typedef enum {
CAN_BUS_BMW_E90 = 6,
CAN_BUS_Haltech = 7,
CAN_BUS_MQB = 8,
CAN_BUS_NISSAN_VQ = 9,
Internal_ForceMyEnumIntSize_can_nbc = ENUM_32_BITS,
} can_nbc_e;

View File

@ -89,6 +89,7 @@ void canMazdaRX8(CanCycle cycle);
void canDashboardW202(CanCycle cycle);
void canDashboardBMWE90(CanCycle cycle);
void canDashboardVagMqb(CanCycle cycle);
void canDashboardNissanVQ(CanCycle cycle);
void updateDash(CanCycle cycle) {
@ -115,6 +116,9 @@ void updateDash(CanCycle cycle) {
case CAN_BUS_MQB:
canDashboardVagMqb(cycle);
break;
case CAN_BUS_NISSAN_VQ:
canDashboardNissanVQ(cycle);
break;
default:
break;
}
@ -293,6 +297,13 @@ void canDashboardW202(CanCycle cycle) {
}
}
void canDashboardNissanVQ(CanCycle cycle) {
if (cycle.isInterval(CI::_50ms)) {
}
}
/**
* https://docs.google.com/spreadsheets/d/1XMfeGlhgl0lBL54lNtPdmmFd8gLr2T_YTriokb30kJg
*/

View File

@ -649,7 +649,7 @@ float fanOffTemperature;+Cooling fan turn-off temperature threshold, in Celsius;
float vehicleSpeedCoef;+This coefficient translates vehicle speed input frequency (in Hz) into vehicle speed, km/h;"coef", 1, 0, 0.01, 2000, 2
custom can_nbc_e 4 bits, U32, @OFFSET@, [0:4], "None", "FIAT", "VAG", "MAZDA RX8", "BMW", "W202", "BMW E90", "Haltech", "VAG MQB", "type 9", "type 10", "INVALID", "INVALID"
custom can_nbc_e 4 bits, U32, @OFFSET@, [0:4], "None", "FIAT", "VAG", "MAZDA RX8", "BMW", "W202", "BMW E90", "Haltech", "VAG MQB", "Nissan VQ", "type 10", "INVALID", "INVALID"
can_nbc_e canNbcType;set can_mode X
int canSleepPeriodMs;CANbus thread period, ms;"ms", 1, 0, 0, 1000, 2