VVT support for VAG trigger #883

This commit is contained in:
rusefi 2020-08-24 02:07:58 -04:00
parent 7867e83e43
commit 3a2670d5de
3 changed files with 4 additions and 5 deletions

View File

@ -123,7 +123,7 @@ void calculateTriggerSynchPoint(TriggerWaveform *shape, TriggerState *state DECL
engine->triggerErrorDetection.clear();
shape->triggerShapeSynchPointIndex = state->findTriggerZeroEventIndex(shape,
&engine->primaryTriggerConfiguration,
triggerConfig PASS_CONFIG_PARAMETER_SUFFIX);
triggerConfig);
int length = shape->getLength();
engine->engineCycleEventCount = length;
@ -672,7 +672,7 @@ static void onFindIndexCallback(TriggerState *state) {
*/
uint32_t TriggerState::findTriggerZeroEventIndex(TriggerWaveform * shape,
const TriggerConfiguration * triggerConfiguration,
trigger_config_s const*triggerConfig DECLARE_CONFIG_PARAMETER_SUFFIX) {
trigger_config_s const*triggerConfig) {
UNUSED(triggerConfig);
#if EFI_PROD_CODE
efiAssert(CUSTOM_ERR_ASSERT, getCurrentRemainingStack() > 128, "findPos", -1);

View File

@ -133,7 +133,7 @@ public:
uint32_t findTriggerZeroEventIndex(TriggerWaveform * shape,
const TriggerConfiguration * triggerConfiguration,
trigger_config_s const*triggerConfig
DECLARE_CONFIG_PARAMETER_SUFFIX);
);
private:
void resetCurrentCycleState();

View File

@ -46,8 +46,7 @@ static int getTriggerZeroEventIndex(engine_type_e engineType) {
TriggerWaveform * shape = &eth.engine.triggerCentral.triggerShape;
return eth.engine.triggerCentral.triggerState.findTriggerZeroEventIndex(shape, triggerConfiguration,
&engineConfiguration->trigger
PASS_CONFIG_PARAMETER_SUFFIX);
&engineConfiguration->trigger);
}
TEST(misc, testSkipped2_0) {