call handleShaftSignal (#3097)

This commit is contained in:
Matthew Kennedy 2021-08-02 04:02:45 -07:00 committed by GitHub
parent fcd6c3d520
commit f16173b4dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -174,7 +174,7 @@ void EngineTestHelper::firePrimaryTriggerRise() {
Engine *engine = &this->engine; Engine *engine = &this->engine;
EXPAND_Engine; EXPAND_Engine;
LogTriggerTooth(SHAFT_PRIMARY_RISING, nowNt PASS_ENGINE_PARAMETER_SUFFIX); LogTriggerTooth(SHAFT_PRIMARY_RISING, nowNt PASS_ENGINE_PARAMETER_SUFFIX);
engine->triggerCentral.handleShaftSignal(SHAFT_PRIMARY_RISING, nowNt PASS_ENGINE_PARAMETER_SUFFIX); handleShaftSignal(0, true, nowNt PASS_ENGINE_PARAMETER_SUFFIX);
} }
void EngineTestHelper::firePrimaryTriggerFall() { void EngineTestHelper::firePrimaryTriggerFall() {
@ -182,7 +182,7 @@ void EngineTestHelper::firePrimaryTriggerFall() {
Engine *engine = &this->engine; Engine *engine = &this->engine;
EXPAND_Engine; EXPAND_Engine;
LogTriggerTooth(SHAFT_PRIMARY_FALLING, nowNt PASS_ENGINE_PARAMETER_SUFFIX); LogTriggerTooth(SHAFT_PRIMARY_FALLING, nowNt PASS_ENGINE_PARAMETER_SUFFIX);
engine->triggerCentral.handleShaftSignal(SHAFT_PRIMARY_FALLING, nowNt PASS_ENGINE_PARAMETER_SUFFIX); handleShaftSignal(0, false, nowNt PASS_ENGINE_PARAMETER_SUFFIX);
} }
void EngineTestHelper::fireTriggerEventsWithDuration(float durationMs) { void EngineTestHelper::fireTriggerEventsWithDuration(float durationMs) {

View File

@ -30,7 +30,7 @@ static void fireTriggerEvent(EngineTestHelper*eth, double timestampS, trigger_wh
EXPAND_Engine; EXPAND_Engine;
timeNowUs = 1'000'000 * timestampS; timeNowUs = 1'000'000 * timestampS;
printf("MIATANA: posting time=%d event=%d\n", timeNowUs, event); printf("MIATANA: posting time=%d event=%d\n", timeNowUs, event);
engine->triggerCentral.handleShaftSignal(event, getTimeNowNt() PASS_ENGINE_PARAMETER_SUFFIX); hwHandleShaftSignal((int)channel, !isFall, getTimeNowNt() PASS_ENGINE_PARAMETER_SUFFIX);
} }
TEST(cranking, hardcodedRealCranking) { TEST(cranking, hardcodedRealCranking) {