rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
nissan_vq.cpp
Go to the documentation of this file.
1/*
2 * @file nissan_vq.cpp
3 *
4 * Created on: Jul 2, 2021
5 * @author Andrey Belomutskiy, (c) 2012-2021
6 */
7
8#include "pch.h"
9
10#include "nissan_vq.h"
11#include "hellen_all_meta.h"
12#include "defaults.h"
13
14#define NISSAN_VQ_VVT_OFFSET 157
15
18
19 setInline4();
21 strcpy(engineConfiguration->engineCode, "QR");
22
24
25 engineConfiguration->vvtMode[0] = VVT_NISSAN_VQ;
26
27 // we have this here and not in board_configuration.cpp so that unit test would get this value
29
31
32}
33
37
39 engineConfiguration->firingOrder = FO_1_2_3_4_5_6;
41 strcpy(engineConfiguration->engineCode, "VQ");
42
43 engineConfiguration->vvtMode[0] = VVT_NISSAN_VQ;
44
45 engineConfiguration->vvtOffsets[0 * CAMS_PER_BANK] = NISSAN_VQ_VVT_OFFSET;
46 engineConfiguration->vvtOffsets[1 * CAMS_PER_BANK] = NISSAN_VQ_VVT_OFFSET + NISSAN_VQ_CAM_OFFSET;
47
48 // VVT closed loop
53// engineConfiguration->auxPid[0].minValue = 20;
54// engineConfiguration->auxPid[0].maxValue = 90;
55
57}
58
60 #include "nissan_vq.lua"
61
63
64 // we have this here and not in board_configuration.cpp so that unit test would get this value
66
67#if HW_HELLEN && EFI_PROD_CODE
68 engineConfiguration->vvtPins[0 * CAMS_PER_BANK] = H176_LS_7;
69 engineConfiguration->vvtPins[1 * CAMS_PER_BANK] = H176_LS_8;
70#endif
71}
72
75
76 // open question if that's a board setting or engine setting
78}
79
81 // https://en.wikipedia.org/wiki/Nissan_QG_engine
82 // https://en.wikipedia.org/wiki/N-VCT
85 strcpy(engineConfiguration->engineCode, "N16");
86
87}
@ Unassigned
void setInline4()
static constexpr persistent_config_s * config
static constexpr engine_configuration_s * engineConfiguration
void setNissanMAF0031()
Definition maf.cpp:51
void setProteusNissanVQ()
Definition nissan_vq.cpp:73
void setHellen121nissanAltimaN16()
Definition nissan_vq.cpp:80
void setHellen121nissanQR()
Definition nissan_vq.cpp:16
static void setNissanVqEngineConfig()
Definition nissan_vq.cpp:34
void setHellen121nissanVQ()
Definition nissan_vq.cpp:59
float crankingCycleBaseFuel[CRANKING_CYCLE_CLT_SIZE][CRANKING_CURVE_SIZE]
constexpr void setTable(TElement(&dest)[N][M], const VElement value)