mirror of https://github.com/rusefi/rusefi-1.git
call handleShaftSignal (#3097)
This commit is contained in:
parent
fcd6c3d520
commit
f16173b4dd
|
@ -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) {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue