mirror of https://github.com/rusefi/rusefi-1.git
54 lines
1.6 KiB
C++
54 lines
1.6 KiB
C++
/*
|
|
* @file nissan_vq.cpp
|
|
*
|
|
* Created on: Jul 2, 2021
|
|
* @author Andrey Belomutskiy, (c) 2012-2021
|
|
*/
|
|
|
|
#include "nissan_vq.h"
|
|
|
|
void setHellen121nissanQR() {
|
|
engineConfiguration->trigger.type = TT_NISSAN_QR25;
|
|
|
|
engineConfiguration->specs.cylindersCount = 4;
|
|
engineConfiguration->specs.firingOrder = FO_1_3_4_2;
|
|
engineConfiguration->specs.displacement = 2;
|
|
strcpy(engineConfiguration->engineCode, "QR");
|
|
|
|
engineConfiguration->camInputs[1 * CAMS_PER_BANK] = Gpio::Unassigned;
|
|
|
|
engineConfiguration->vvtMode[0] = VVT_NISSAN_VQ;
|
|
|
|
// we have this here and not in board_configuration.cpp so that unit test would get this value
|
|
engineConfiguration->invertCamVVTSignal = true;
|
|
|
|
engineConfiguration->vvtOffsets[0] = NISSAN_VQ_VVT_OFFSET;
|
|
|
|
}
|
|
|
|
void setHellen121nissanVQ() {
|
|
engineConfiguration->trigger.type = TT_NISSAN_VQ35;
|
|
|
|
engineConfiguration->specs.cylindersCount = 6;
|
|
engineConfiguration->specs.firingOrder = FO_1_2_3_4_5_6;
|
|
engineConfiguration->specs.displacement = 4;
|
|
strcpy(engineConfiguration->engineCode, "VQ");
|
|
|
|
engineConfiguration->vvtMode[0] = VVT_NISSAN_VQ;
|
|
|
|
// we have this here and not in board_configuration.cpp so that unit test would get this value
|
|
engineConfiguration->invertCamVVTSignal = true;
|
|
|
|
engineConfiguration->vvtOffsets[0] = NISSAN_VQ_VVT_OFFSET;
|
|
engineConfiguration->vvtOffsets[1 * CAMS_PER_BANK] = NISSAN_VQ_VVT_OFFSET - NISSAN_VQ_CAM_OFFSET;
|
|
}
|
|
|
|
void setHellen121nissanAltimaN16() {
|
|
// https://en.wikipedia.org/wiki/Nissan_QG_engine
|
|
// https://en.wikipedia.org/wiki/N-VCT
|
|
setHellen121nissanQR();
|
|
engineConfiguration->specs.displacement = 1.8;
|
|
strcpy(engineConfiguration->engineCode, "N16");
|
|
|
|
}
|