auto-sync
This commit is contained in:
parent
7f1858a57f
commit
070cdef25c
|
@ -305,8 +305,7 @@ void Engine::watchdog() {
|
|||
}
|
||||
|
||||
IgnitionEventList * Engine::ignitionList() {
|
||||
// int revolutionIndex = rpmCalculator.getRevolutionCounter() % 2;
|
||||
return &engineConfiguration2->ignitionEvents[0];
|
||||
return &engineConfiguration2->ignitionEvents;
|
||||
}
|
||||
|
||||
void Engine::prepareFuelSchedule(DECLARE_ENGINE_PARAMETER_F) {
|
||||
|
|
|
@ -94,11 +94,7 @@ public:
|
|||
|
||||
float fsioLastValue[LE_COMMAND_COUNT];
|
||||
|
||||
/**
|
||||
* We are alternating two event lists in order to avoid a potential issue around revolution boundary
|
||||
* when an event is scheduled within the next revolution.
|
||||
*/
|
||||
IgnitionEventList ignitionEvents[2];
|
||||
IgnitionEventList ignitionEvents;
|
||||
};
|
||||
|
||||
class ThermistorMath {
|
||||
|
|
|
@ -148,7 +148,7 @@ void test1995FordInline6TriggerDecoder(void) {
|
|||
eth.engine.periodicFastCallback(PASS_ENGINE_PARAMETER_F);
|
||||
eth.fireTriggerEvents(48);
|
||||
|
||||
IgnitionEventList *ecl = ð.ec2.ignitionEvents[0];
|
||||
IgnitionEventList *ecl = ð.ec2.ignitionEvents;
|
||||
assertEqualsM("ford inline ignition events size", 1, ecl->isReady);
|
||||
assertEqualsM("event index", 0, ecl->elements[0].dwellPosition.eventIndex);
|
||||
assertEqualsM("angle offset#1", 7, ecl->elements[0].dwellPosition.angleOffset);
|
||||
|
@ -300,7 +300,7 @@ void testRpmCalculator(void) {
|
|||
|
||||
EngineTestHelper eth(FORD_INLINE_6_1995);
|
||||
EXPAND_EngineTestHelper;
|
||||
IgnitionEventList *ilist = ð.engine.engineConfiguration2->ignitionEvents[0];
|
||||
IgnitionEventList *ilist = ð.engine.engineConfiguration2->ignitionEvents;
|
||||
assertEqualsM("size #1", 0, ilist->isReady);
|
||||
|
||||
assertEqualsM("engineCycle", 720, eth.engine.engineCycle);
|
||||
|
|
Loading…
Reference in New Issue