Nissan HR crank trigger wheel #6773

only:ohh
This commit is contained in:
Andrey 2024-08-15 13:58:23 -04:00
parent b285e1caf0
commit 51c8f9cc28
1 changed files with 4 additions and 3 deletions

View File

@ -18,8 +18,8 @@ TEST(nissan, realFromFile) {
}
ASSERT_EQ( 1, eth.recentWarnings()->getCount())<< "warningCounter#nissanRealCranking";
ASSERT_EQ(1, engine->triggerCentral.triggerState.totalTriggerErrorCounter);
ASSERT_EQ(179, round(Sensor::getOrZero(SensorType::Rpm)))<< reader.lineIndex();
}
TEST(nissan, realNoSparkPlugsFromFile) {
@ -37,12 +37,12 @@ TEST(nissan, realNoSparkPlugsFromFile) {
reader.processLine(&eth);
}
ASSERT_EQ( 1, eth.recentWarnings()->getCount())<< "warningCounter#nissanRealCranking";
ASSERT_EQ(1, engine->triggerCentral.triggerState.totalTriggerErrorCounter);
ASSERT_EQ(215, round(Sensor::getOrZero(SensorType::Rpm)))<< reader.lineIndex();
}
TEST(nissan, realFromFile4seconds) {
CsvReader reader(1, /* vvtCount */ 0);
@ -60,5 +60,6 @@ TEST(nissan, realFromFile4seconds) {
}
ASSERT_EQ( 1, eth.recentWarnings()->getCount())<< "warningCounter#nissanRealCranking";
ASSERT_EQ(8, engine->triggerCentral.triggerState.totalTriggerErrorCounter);
ASSERT_EQ(179, round(Sensor::getOrZero(SensorType::Rpm)))<< reader.lineIndex();
}