VVT support for VAG trigger #883
This commit is contained in:
parent
7867e83e43
commit
3a2670d5de
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -46,8 +46,7 @@ static int getTriggerZeroEventIndex(engine_type_e engineType) {
|
|||
|
||||
TriggerWaveform * shape = ð.engine.triggerCentral.triggerShape;
|
||||
return eth.engine.triggerCentral.triggerState.findTriggerZeroEventIndex(shape, triggerConfiguration,
|
||||
&engineConfiguration->trigger
|
||||
PASS_CONFIG_PARAMETER_SUFFIX);
|
||||
&engineConfiguration->trigger);
|
||||
}
|
||||
|
||||
TEST(misc, testSkipped2_0) {
|
||||
|
|
Loading…
Reference in New Issue