M62T vanos support #2243

This commit is contained in:
rusefi 2021-02-08 16:16:26 -05:00
parent a86481f3ba
commit a349bf1ca8
8 changed files with 27 additions and 14 deletions

View File

@ -1,7 +1,7 @@
#include "global.h"
#include "rusefi_enums.h"
#include "rusefi_hw_enums.h"
// was generated automatically by rusEfi tool from rusefi_hw_enums.h // was generated automatically by rusEfi tool from rusefi_enums.h // by enum2string.jar tool on Mon Feb 08 19:12:29 UTC 2021
// was generated automatically by rusEfi tool from rusefi_hw_enums.h // was generated automatically by rusEfi tool from rusefi_enums.h // by enum2string.jar tool on Mon Feb 08 16:09:52 EST 2021
// see also gen_config_and_enums.bat
@ -971,6 +971,8 @@ case TEST_ISSUE_366_RISE:
return "TEST_ISSUE_366_RISE";
case TEST_ISSUE_898:
return "TEST_ISSUE_898";
case TEST_QUAD_CAM:
return "TEST_QUAD_CAM";
case TLE8888_BENCH_ENGINE:
return "TLE8888_BENCH_ENGINE";
case TOYOTA_2JZ_GTE_VVTi:
@ -981,8 +983,6 @@ case UNUSED_33:
return "UNUSED_33";
case UNUSED_34:
return "UNUSED_34";
case UNUSED_36:
return "UNUSED_36";
case VAG_18_TURBO:
return "VAG_18_TURBO";
case VW_ABA:

View File

@ -1,7 +1,7 @@
#include "global.h"
#include "rusefi_enums.h"
#include "rusefi_hw_enums.h"
// was generated automatically by rusEfi tool from rusefi_hw_enums.h // was generated automatically by rusEfi tool from rusefi_enums.h // by enum2string.jar tool on Mon Feb 08 19:12:29 UTC 2021
// was generated automatically by rusEfi tool from rusefi_hw_enums.h // was generated automatically by rusEfi tool from rusefi_enums.h // by enum2string.jar tool on Mon Feb 08 16:09:52 EST 2021
// see also gen_config_and_enums.bat
@ -767,6 +767,8 @@ case TEST_ISSUE_366_RISE:
return "TEST_ISSUE_366_RISE";
case TEST_ISSUE_898:
return "TEST_ISSUE_898";
case TEST_QUAD_CAM:
return "TEST_QUAD_CAM";
case TLE8888_BENCH_ENGINE:
return "TLE8888_BENCH_ENGINE";
case TOYOTA_2JZ_GTE_VVTi:
@ -777,8 +779,6 @@ case UNUSED_33:
return "UNUSED_33";
case UNUSED_34:
return "UNUSED_34";
case UNUSED_36:
return "UNUSED_36";
case VAG_18_TURBO:
return "VAG_18_TURBO";
case VW_ABA:

View File

@ -1,7 +1,7 @@
#include "global.h"
#include "rusefi_enums.h"
#include "rusefi_hw_enums.h"
// was generated automatically by rusEfi tool from rusefi_hw_enums.h // was generated automatically by rusEfi tool from rusefi_enums.h // by enum2string.jar tool on Mon Feb 08 19:12:28 UTC 2021
// was generated automatically by rusEfi tool from rusefi_hw_enums.h // was generated automatically by rusEfi tool from rusefi_enums.h // by enum2string.jar tool on Mon Feb 08 16:09:52 EST 2021
// see also gen_config_and_enums.bat
@ -945,6 +945,8 @@ case TEST_ISSUE_366_RISE:
return "TEST_ISSUE_366_RISE";
case TEST_ISSUE_898:
return "TEST_ISSUE_898";
case TEST_QUAD_CAM:
return "TEST_QUAD_CAM";
case TLE8888_BENCH_ENGINE:
return "TLE8888_BENCH_ENGINE";
case TOYOTA_2JZ_GTE_VVTi:
@ -955,8 +957,6 @@ case UNUSED_33:
return "UNUSED_33";
case UNUSED_34:
return "UNUSED_34";
case UNUSED_36:
return "UNUSED_36";
case VAG_18_TURBO:
return "VAG_18_TURBO";
case VW_ABA:

View File

@ -1173,6 +1173,7 @@ void resetConfigurationExt(Logging * logger, configuration_callback_t boardCallb
case TEST_ISSUE_366_RISE:
setTestEngineIssue366rise(PASS_CONFIG_PARAMETER_SIGNATURE);
break;
case TEST_QUAD_CAM:
case TEST_ISSUE_898:
setIssue898(PASS_CONFIG_PARAMETER_SIGNATURE);
break;

View File

@ -112,7 +112,7 @@ typedef enum {
CAMARO_4 = ET_CAMARO,
UNUSED_36 = 36,
TEST_QUAD_CAM = 36,
MRE_SUBARU_EJ18 = ET_MRE_SUBARU_EJ18,

View File

@ -5,6 +5,7 @@ TESTS_SRC_CPP = \
tests/trigger/test_trigger_multi_sync.cpp \
tests/trigger/test_cam_vvt_input.cpp \
tests/trigger/test_2jz_vvt.cpp \
tests/trigger/test_quad_cam.cpp \
tests/trigger/test_injection_scheduling.cpp \
tests/ignition_injection/injection_mode_transition.cpp \
tests/ignition_injection/test_startOfCrankingPrimingPulse.cpp \

View File

@ -8,7 +8,7 @@
#include "engine_test_helper.h"
extern WarningCodeState unitTestWarningCodeState;
TEST(sensors, testNoStartUpWarningsNoSyncronizationTrigger) {
TEST(trigger, testNoStartUpWarningsNoSyncronizationTrigger) {
WITH_ENGINE_TEST_HELPER(TEST_ENGINE);
// one tooth does not need synchronization it just counts tooth
eth.setTriggerType(TT_ONE PASS_ENGINE_PARAMETER_SUFFIX);
@ -19,7 +19,7 @@ TEST(sensors, testNoStartUpWarningsNoSyncronizationTrigger) {
ASSERT_EQ( 0, unitTestWarningCodeState.recentWarnings.getCount()) << "warningCounter#testNoStartUpWarningsNoSyncronizationTrigger";
}
TEST(sensors, testNoStartUpWarnings) {
TEST(trigger, testNoStartUpWarnings) {
WITH_ENGINE_TEST_HELPER(TEST_ENGINE);
// for this test we need a trigger with isSynchronizationNeeded=true
engineConfiguration->trigger.customTotalToothCount = 3;
@ -54,7 +54,7 @@ TEST(sensors, testNoStartUpWarnings) {
ASSERT_EQ(CUSTOM_SYNC_COUNT_MISMATCH, unitTestWarningCodeState.recentWarnings.get(1));
}
TEST(sensors, testNoisyInput) {
TEST(trigger, testNoisyInput) {
WITH_ENGINE_TEST_HELPER(TEST_ENGINE);
ASSERT_EQ( 0, GET_RPM()) << "testNoisyInput RPM";
@ -75,7 +75,7 @@ TEST(sensors, testNoisyInput) {
ASSERT_EQ(OBD_Crankshaft_Position_Sensor_A_Circuit_Malfunction, unitTestWarningCodeState.recentWarnings.get(1)) << "@0";
}
TEST(sensors, testCamInput) {
TEST(trigger, testCamInput) {
// setting some weird engine
WITH_ENGINE_TEST_HELPER(FORD_ESCORT_GT);

View File

@ -0,0 +1,11 @@
/**
* @file test_quad_cam.cpp
*
*/
#include "engine_test_helper.h"
TEST(trigger, testQuadCam) {
WITH_ENGINE_TEST_HELPER(FORD_ESCORT_GT);
}