This commit is contained in:
parent
64b128034b
commit
50256b1fc6
|
@ -33,21 +33,21 @@ void initializeMazdaMiataNaShape(TriggerShape *s, bool useOnlyRisingEdgeForTrigg
|
|||
/**
|
||||
* http://rusefi.com/forum/viewtopic.php?f=3&t=729&p=12983#p12983
|
||||
*/
|
||||
s->addEvent720(useOnlyRisingEdgeForTrigger, 52.960405, T_SECONDARY, TV_RISE);
|
||||
s->addEvent720(useOnlyRisingEdgeForTrigger, 122.635956, T_SECONDARY, TV_FALL);
|
||||
s->addEvent720(52.960405, T_SECONDARY, TV_RISE);
|
||||
s->addEvent720(122.635956, T_SECONDARY, TV_FALL);
|
||||
|
||||
s->addEvent720(useOnlyRisingEdgeForTrigger, 216.897031, T_PRIMARY, TV_RISE);
|
||||
s->addEvent720(useOnlyRisingEdgeForTrigger, 232.640068, T_SECONDARY, TV_RISE);
|
||||
s->addEvent720(useOnlyRisingEdgeForTrigger, 288.819688, T_PRIMARY, TV_FALL);
|
||||
s->addEvent720(useOnlyRisingEdgeForTrigger, 302.646323, T_SECONDARY, TV_FALL);
|
||||
s->addEvent720(216.897031, T_PRIMARY, TV_RISE);
|
||||
s->addEvent720(232.640068, T_SECONDARY, TV_RISE);
|
||||
s->addEvent720(288.819688, T_PRIMARY, TV_FALL);
|
||||
s->addEvent720(302.646323, T_SECONDARY, TV_FALL);
|
||||
|
||||
s->addEvent720(useOnlyRisingEdgeForTrigger, 412.448056, T_SECONDARY, TV_RISE);
|
||||
s->addEvent720(useOnlyRisingEdgeForTrigger, 482.816719, T_SECONDARY, TV_FALL);
|
||||
s->addEvent720(412.448056, T_SECONDARY, TV_RISE);
|
||||
s->addEvent720(482.816719, T_SECONDARY, TV_FALL);
|
||||
|
||||
s->addEvent720(useOnlyRisingEdgeForTrigger, 577.035495, T_PRIMARY, TV_RISE);
|
||||
s->addEvent720(useOnlyRisingEdgeForTrigger, 592.878113, T_SECONDARY, TV_RISE);
|
||||
s->addEvent720(useOnlyRisingEdgeForTrigger, 662.899708, T_SECONDARY, TV_FALL);
|
||||
s->addEvent720(useOnlyRisingEdgeForTrigger, 720.0f, T_PRIMARY, TV_FALL);
|
||||
s->addEvent720(577.035495, T_PRIMARY, TV_RISE);
|
||||
s->addEvent720(592.878113, T_SECONDARY, TV_RISE);
|
||||
s->addEvent720(662.899708, T_SECONDARY, TV_FALL);
|
||||
s->addEvent720(720.0f, T_PRIMARY, TV_FALL);
|
||||
s->useOnlyPrimaryForSync = true;
|
||||
}
|
||||
|
||||
|
|
|
@ -484,6 +484,8 @@ void TriggerShape::initializeTriggerShape(Logging *logger, bool useOnlyRisingEdg
|
|||
|
||||
shapeDefinitionError = false;
|
||||
|
||||
this->useOnlyRisingEdgeForTriggerTemp = useOnlyRisingEdgeForTrigger;
|
||||
|
||||
switch (triggerConfig->type) {
|
||||
|
||||
case TT_TOOTHED_WHEEL:
|
||||
|
|
|
@ -311,8 +311,8 @@ void TriggerShape::addEvent2(angle_t angle, trigger_wheel_e const channelIndex,
|
|||
addEvent(engineConfiguration->useOnlyRisingEdgeForTrigger, angle / getEngineCycle(operationMode), channelIndex, stateParam);
|
||||
}
|
||||
|
||||
void TriggerShape::addEvent720(bool useOnlyRisingEdgeForTrigger, angle_t angle, trigger_wheel_e const channelIndex, trigger_value_e const stateParam) {
|
||||
addEvent(useOnlyRisingEdgeForTrigger, angle / 720, channelIndex, stateParam);
|
||||
void TriggerShape::addEvent720(angle_t angle, trigger_wheel_e const channelIndex, trigger_value_e const stateParam) {
|
||||
addEvent(useOnlyRisingEdgeForTriggerTemp, angle / 720, channelIndex, stateParam);
|
||||
}
|
||||
|
||||
// todo: the whole 'useOnlyRisingEdgeForTrigger' parameter and logic should not be here
|
||||
|
|
|
@ -175,12 +175,14 @@ public:
|
|||
*/
|
||||
int privateTriggerDefinitionSize;
|
||||
|
||||
bool useOnlyRisingEdgeForTriggerTemp;
|
||||
|
||||
/* 0..1 angle range */
|
||||
void addEvent(bool useOnlyRisingEdgeForTrigger, angle_t angle, trigger_wheel_e const channelIndex, trigger_value_e const state);
|
||||
/* 0..720 angle range
|
||||
* Deprecated?
|
||||
*/
|
||||
void addEvent720(bool useOnlyRisingEdgeForTrigger, angle_t angle, trigger_wheel_e const channelIndex, trigger_value_e const state);
|
||||
void addEvent720(angle_t angle, trigger_wheel_e const channelIndex, trigger_value_e const state);
|
||||
/* 0..720 angle range
|
||||
* Deprecated?
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue