Remove value copy from controller into outputChannels #4095
This commit is contained in:
parent
a0f0e4d841
commit
ddd85e701e
|
@ -24,7 +24,7 @@ TEST(trigger, map_cam_by_magic_point) {
|
|||
eth.smartFireTriggerEvents2(/*count*/10, /*delayMs*/200);
|
||||
ASSERT_EQ(150, Sensor::getOrZero(SensorType::Rpm)) << "RPM";
|
||||
|
||||
ASSERT_EQ(1, engine->outputChannels.TEMPLOG_map_peak);
|
||||
ASSERT_EQ(1, engine->triggerCentral.mapVvt_map_peak);
|
||||
ASSERT_EQ(0, engine->outputChannels.vvtSyncCounter);
|
||||
|
||||
// Nothing should have been scheduled yet
|
||||
|
@ -35,9 +35,9 @@ TEST(trigger, map_cam_by_magic_point) {
|
|||
engine->outputChannels.instantMAPValue = 120;
|
||||
eth.smartFireTriggerEvents2(/*count*/4, /*delayMs*/200);
|
||||
|
||||
ASSERT_EQ(2, engine->outputChannels.TEMPLOG_map_peak);
|
||||
ASSERT_EQ(2, engine->triggerCentral.mapVvt_map_peak);
|
||||
ASSERT_EQ(1, engine->outputChannels.vvtSyncCounter);
|
||||
ASSERT_EQ(10, engine->outputChannels.TEMPLOG_MAP_AT_CYCLE_COUNT);
|
||||
ASSERT_EQ(10, engine->triggerCentral.mapVvt_MAP_AT_CYCLE_COUNT);
|
||||
|
||||
ASSERT_EQ(ClearReason::None, eth.engine.limpManager.allowIgnition().reason);
|
||||
ASSERT_EQ(ClearReason::None, eth.engine.limpManager.allowInjection().reason);
|
||||
|
|
Loading…
Reference in New Issue