Ford Coyote Exhaust VVT position error #6402

only: unit test. weird how it shows same values
This commit is contained in:
rusefi 2024-05-02 12:12:36 -04:00
parent c422337b55
commit 687c23e0b8
2 changed files with 40 additions and 0 deletions

View File

@ -19,6 +19,7 @@ TESTS_SRC_CPP = \
tests/trigger/test_trigger_skipped_wheel.cpp \
tests/trigger/test_real_4b11.cpp \
tests/trigger/test_real_4g93.cpp \
tests/trigger/test_real_ford_coyote.cpp \
tests/trigger/test_real_volkswagen.cpp \
tests/trigger/test_real_nb2_cranking.cpp \
tests/trigger/test_real_gm_24x.cpp \

View File

@ -0,0 +1,39 @@
#include "pch.h"
#include "logicdata_csv_reader.h"
TEST(fordCoyote, intakeCam) {
CsvReader reader(1, /* vvtCount */ 0);
reader.open("tests/trigger/resources/ford-coyote-intake-cam.csv");
EngineTestHelper eth(engine_type_e::TEST_ENGINE);
eth.setTriggerType(trigger_type_e::TT_VVT_FORD_COYOTE);
engineConfiguration->isFasterEngineSpinUpEnabled = true;
engineConfiguration->alwaysInstantRpm = true;
while (reader.haveMore()) {
reader.processLine(&eth);
}
ASSERT_EQ( 1, eth.recentWarnings()->getCount())<< "warningCounter#intakeCam";
ASSERT_EQ( 1093, round(Sensor::getOrZero(SensorType::Rpm)))<< reader.lineIndex();
}
TEST(fordCoyote, exhaustCam) {
CsvReader reader(1, /* vvtCount */ 0);
reader.open("tests/trigger/resources/ford-coyote-exhaust-cam.csv");
EngineTestHelper eth(engine_type_e::TEST_ENGINE);
eth.setTriggerType(trigger_type_e::TT_VVT_FORD_COYOTE);
engineConfiguration->isFasterEngineSpinUpEnabled = true;
engineConfiguration->alwaysInstantRpm = true;
while (reader.haveMore()) {
reader.processLine(&eth);
}
ASSERT_EQ( 1, eth.recentWarnings()->getCount())<< "warningCounter#exhaustCam";
ASSERT_EQ( 1093, round(Sensor::getOrZero(SensorType::Rpm)))<< reader.lineIndex();
}