This commit is contained in:
rusefi 2020-04-20 23:44:59 -04:00
parent 799bd8489f
commit 387643047f
2 changed files with 6 additions and 1 deletions

View File

@ -320,6 +320,7 @@ static void tdcMarkCallback(trigger_event_e ckpSignalType,
// todo: use tooth event-based scheduling, not just time-based scheduling
if (isValidRpm(rpm)) {
angle_t tdcPosition = tdcPosition();
// we need a positive angle offset here
fixAngle(tdcPosition, "tdcPosition", CUSTOM_ERR_6553);
scheduleByAngle(&tdcScheduler[revIndex2], edgeTimestamp, tdcPosition,
{ onTdcCallback, engine } PASS_ENGINE_PARAMETER_SUFFIX);

View File

@ -19,5 +19,9 @@ void configureMazdaProtegeSOHC(TriggerWaveform *s);
void configureMazdaProtegeLx(TriggerWaveform *s);
void initialize_Mazda_Engine_z5_Shape(TriggerWaveform *s);
// TT_MIATA_NB2_VVT_CAM
/**
* TT_MIATA_NB2_VVT_CAM
* if you unplug VVT you can start & run your engine on it
* trigger offset "-90" seems to be doing the job
*/
void initializeMazdaMiataVVtCamShape(TriggerWaveform *s);