future fast spinning 60/2 test
This commit is contained in:
parent
0878462a09
commit
3697fc6052
|
@ -186,7 +186,8 @@ void assertRpm(const char *msg, int expectedRpm DECLARE_ENGINE_PARAMETER_SUFFIX)
|
|||
EXPECT_EQ(expectedRpm, engine->rpmCalculator.getRpm(PASS_ENGINE_PARAMETER_SIGNATURE)) << msg;
|
||||
}
|
||||
|
||||
void setupSimpleTestEngineWithMafAndTT_ONE_trigger(EngineTestHelper *eth, injection_mode_e injMode) {
|
||||
void setupSimpleTestEngineWithMaf(EngineTestHelper *eth, injection_mode_e injectionMode,
|
||||
trigger_type_e trigger) {
|
||||
Engine *engine = ð->engine;
|
||||
EXPAND_Engine
|
||||
|
||||
|
@ -197,7 +198,7 @@ void setupSimpleTestEngineWithMafAndTT_ONE_trigger(EngineTestHelper *eth, inject
|
|||
engineConfiguration->isIgnitionEnabled = false; // let's focus on injection
|
||||
engineConfiguration->specs.cylindersCount = 4;
|
||||
// a bit of flexibility - the mode may be changed by some tests
|
||||
engineConfiguration->injectionMode = injMode;
|
||||
engineConfiguration->injectionMode = injectionMode;
|
||||
// set cranking mode (it's used by getCurrentInjectionMode())
|
||||
engineConfiguration->crankingInjectionMode = IM_SIMULTANEOUS;
|
||||
|
||||
|
@ -215,3 +216,7 @@ void setupSimpleTestEngineWithMafAndTT_ONE_trigger(EngineTestHelper *eth, inject
|
|||
|
||||
eth->applyTriggerShape();
|
||||
}
|
||||
|
||||
void setupSimpleTestEngineWithMafAndTT_ONE_trigger(EngineTestHelper *eth, injection_mode_e injectionMode) {
|
||||
setupSimpleTestEngineWithMaf(eth, injectionMode, TT_ONE);
|
||||
}
|
||||
|
|
|
@ -54,5 +54,7 @@ public:
|
|||
void assertRpm(const char *msg, int expectedRpm DECLARE_ENGINE_PARAMETER_SUFFIX);
|
||||
|
||||
void setupSimpleTestEngineWithMafAndTT_ONE_trigger(EngineTestHelper *eth, injection_mode_e injMode = IM_BATCH);
|
||||
void setupSimpleTestEngineWithMaf(EngineTestHelper *eth, injection_mode_e injectionMode,
|
||||
trigger_type_e trigger);
|
||||
|
||||
#endif /* ENGINE_TEST_HELPER_H_ */
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include "engine_math.h"
|
||||
#include "engine_test_helper.h"
|
||||
|
||||
TEST(sensors, testFasterEngineSpinningUp) {
|
||||
TEST(cranking, testFasterEngineSpinningUp) {
|
||||
printf("*************************************************** testFasterEngineSpinningUp\r\n");
|
||||
|
||||
WITH_ENGINE_TEST_HELPER(TEST_ENGINE);
|
||||
|
@ -95,3 +95,14 @@ TEST(sensors, testFasterEngineSpinningUp) {
|
|||
eth.assertEvent5(&engine->executor, "inj start#3", 0, (void*)seTurnPinHigh, timeStartUs, MS2US(60) + 27974);
|
||||
eth.assertEvent5(&engine->executor, "inj end#3", 1, (void*)seTurnPinLow, timeStartUs, MS2US(60) + 27974 + 3000);
|
||||
}
|
||||
|
||||
|
||||
TEST(cranking, testFasterEngineSpinningUp60_2) {
|
||||
WITH_ENGINE_TEST_HELPER(TEST_ENGINE);
|
||||
// turn on FasterEngineSpinUp mode
|
||||
engineConfiguration->bc.isFasterEngineSpinUpEnabled = true;
|
||||
|
||||
setupSimpleTestEngineWithMafAndTT_ONE_trigger(ð, IM_SEQUENTIAL);
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue