2022-09-24 12:37:51 -07:00
|
|
|
#include "pch.h"
|
|
|
|
|
|
|
|
#include "logicdata_csv_reader.h"
|
|
|
|
|
|
|
|
TEST(realk20, cranking) {
|
|
|
|
CsvReader reader(/* triggerCount */ 1, /* vvtCount */ 2);
|
|
|
|
|
2022-09-24 20:18:57 -07:00
|
|
|
reader.open("tests/trigger/resources/civic-K20-cranking.csv", NORMAL_ORDER, REVERSE_ORDER);
|
2022-09-24 12:37:51 -07:00
|
|
|
|
|
|
|
EngineTestHelper eth (PROTEUS_HONDA_ELEMENT_2003);
|
|
|
|
|
|
|
|
while (reader.haveMore()) {
|
2022-09-24 20:18:57 -07:00
|
|
|
reader.processLine(ð);
|
2022-09-24 12:37:51 -07:00
|
|
|
}
|
|
|
|
|
2022-09-24 20:18:57 -07:00
|
|
|
ASSERT_EQ(84, round(Sensor::getOrZero(SensorType::Rpm)));
|
|
|
|
|
2022-09-24 12:37:51 -07:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|