mirror of https://github.com/rusefi/rusefi-1.git
One cylinder, 4 stroke, only crank sensor needs special wasted_mode spark control #968
just a unit test for now
This commit is contained in:
parent
e6f5a6e3f4
commit
fdfd2244ce
|
@ -108,4 +108,6 @@ void setGy6139qmbDefaultEngineConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE)
|
|||
|
||||
// set injection_mode 1
|
||||
engineConfiguration->injectionMode = IM_SEQUENTIAL;
|
||||
// set ignition_mode 0
|
||||
engineConfiguration->ignitionMode = IM_ONE_COIL;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* test_dwell_corver_case_issue_796.cpp
|
||||
* test_dwell_corner_case_issue_796.cpp
|
||||
*
|
||||
* Created on: Jul 1, 2019
|
||||
* @author Andrey Belomutskiy, (c) 2012-2019
|
|
@ -0,0 +1,34 @@
|
|||
/**
|
||||
* @file test_one_cylinder_logic.cpp
|
||||
* @author Andrey Belomutskiy, (c) 2012-2019
|
||||
*/
|
||||
|
||||
#include "engine_test_helper.h"
|
||||
#include "spark_logic.h"
|
||||
|
||||
TEST(issues, issueOneCylinderSpecialCase968) {
|
||||
WITH_ENGINE_TEST_HELPER(GY6_139QMB);
|
||||
// set injection_mode 1
|
||||
engineConfiguration->injectionMode = IM_SEQUENTIAL;
|
||||
|
||||
setOperationMode(engineConfiguration, FOUR_STROKE_CRANK_SENSOR);
|
||||
engineConfiguration->useOnlyRisingEdgeForTrigger = true;
|
||||
|
||||
eth.setTriggerType(TT_ONE PASS_ENGINE_PARAMETER_SUFFIX);
|
||||
|
||||
ASSERT_EQ( 0, engine->executor.size()) << "start";
|
||||
|
||||
eth.fireTriggerEvents2(/* count */ 3, 50 /* ms */);
|
||||
ASSERT_EQ( 0, GET_RPM()) << "RPM";
|
||||
ASSERT_EQ( 0, engine->executor.size()) << "first revolution(s)";
|
||||
|
||||
eth.fireTriggerEvents2(/* count */ 1, 50 /* ms */);
|
||||
|
||||
ASSERT_EQ( 2, engine->executor.size()) << "first revolution(s)";
|
||||
eth.assertEvent5("spark up#0", 0, (void*)turnSparkPinHigh, -43500);
|
||||
eth.assertEvent5("spark down#0", 1, (void*)fireSparkAndPrepareNextSchedule, -37500);
|
||||
|
||||
|
||||
eth.fireTriggerEvents2(/* count */ 1, 50 /* ms */);
|
||||
ASSERT_EQ( 4, engine->executor.size()) << "first revolution(s)";
|
||||
}
|
|
@ -9,12 +9,13 @@ TESTS_SRC_CPP = \
|
|||
tests/test_startOfCrankingPrimingPulse.cpp \
|
||||
tests/test_miata_na6_real_cranking.cpp \
|
||||
tests/test_fasterEngineSpinningUp.cpp \
|
||||
tests/test_dwell_corver_case_issue_796.cpp \
|
||||
tests/test_dwell_corner_case_issue_796.cpp \
|
||||
tests/test_idle_controller.cpp \
|
||||
tests/test_trigger_decoder.cpp \
|
||||
tests/test_trigger_noiseless.cpp \
|
||||
tests/test_issue_898.cpp \
|
||||
tests/test_fuel_map.cpp \
|
||||
tests/test_one_cylinder_logic.cpp \
|
||||
tests/test_maf2map.cpp \
|
||||
tests/test_fuelCut.cpp \
|
||||
tests/test_trigger_multi_sync.cpp \
|
||||
|
|
Loading…
Reference in New Issue