29 lines
873 B
C++
29 lines
873 B
C++
/*
|
|
* @file test_aux_valves.cpp
|
|
*
|
|
* @date: Nov 23, 2019
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
|
*/
|
|
|
|
#include "pch.h"
|
|
|
|
#include "aux_valves.h"
|
|
|
|
TEST(Actuators, AuxValves) {
|
|
Sensor::setMockValue(SensorType::DriverThrottleIntent, 0);
|
|
|
|
EngineTestHelper eth(NISSAN_PRIMERA);
|
|
|
|
engine->needTdcCallback = false;
|
|
|
|
setupSimpleTestEngineWithMafAndTT_ONE_trigger(ð, IM_SEQUENTIAL);
|
|
engineConfiguration->isInjectionEnabled = false;
|
|
|
|
eth.fireTriggerEvents2(2 /* count */ , 600 /* ms */);
|
|
ASSERT_EQ( 100, round(Sensor::getOrZero(SensorType::Rpm))) << "spinning-RPM#1";
|
|
|
|
eth.assertTriggerEvent("a0", 0, &engine->auxValves[0][0].open, (void*)&auxPlainPinTurnOn, 7, 86);
|
|
eth.assertTriggerEvent("a1", 1, &engine->auxValves[0][1].open, (void*)&auxPlainPinTurnOn, 3, 86);
|
|
eth.assertTriggerEvent("a2", 2, &engine->auxValves[1][0].open, (void*)&auxPlainPinTurnOn, 5, 86);
|
|
}
|