custom-board-bundle-sample-.../firmware/config/engines/nissan_vq.cpp

25 lines
675 B
C++
Raw Normal View History

2021-07-02 11:56:12 -07:00
/*
* @file nissan_vq.cpp
*
* Created on: Jul 2, 2021
* @author Andrey Belomutskiy, (c) 2012-2021
*/
#include "nissan_vq.h"
void setHellen121nissanQR(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
}
void setHellen121nissanVQ(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
engineConfiguration->trigger.type = TT_NISSAN_VQ35;
2021-07-02 11:56:12 -07:00
engineConfiguration->vvtMode[0] = VVT_NISSAN_VQ;
2021-07-21 20:08:56 -07:00
// 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;
2021-07-02 11:56:12 -07:00
}