auto-sync
This commit is contained in:
parent
2fee72c75e
commit
77e34f224f
|
@ -84,6 +84,7 @@ void TriggerShape::clear() {
|
|||
void TriggerShape::reset(operation_mode_e operationMode, bool needSecondTriggerInput) {
|
||||
this->operationMode = operationMode;
|
||||
size = 0;
|
||||
this->needSecondTriggerInput = needSecondTriggerInput;
|
||||
triggerShapeSynchPointIndex = 0;
|
||||
memset(initialState, 0, sizeof(initialState));
|
||||
memset(switchTimesBuffer, 0, sizeof(switchTimesBuffer));
|
||||
|
@ -193,6 +194,8 @@ float TriggerShape::getAngle(int index) const {
|
|||
void TriggerShape::addEvent(float angle, trigger_wheel_e const waveIndex, trigger_value_e const stateParam) {
|
||||
efiAssertVoid(operationMode != OM_NONE, "operationMode not set");
|
||||
|
||||
efiAssertVoid(waveIndex!= T_SECONDARY || needSecondTriggerInput, "secondary needed or not?");
|
||||
|
||||
trigger_value_e state;
|
||||
if (invertOnAdd) {
|
||||
state = (stateParam == TV_LOW) ? TV_HIGH : TV_LOW;
|
||||
|
|
|
@ -21,8 +21,10 @@ extern float testMafValue;
|
|||
void testFuelMap(void) {
|
||||
printf("*************************************************** testFuelMap\r\n");
|
||||
|
||||
printf("Setting up FORD_ASPIRE_1996\r\n");
|
||||
EngineTestHelper eth(FORD_ASPIRE_1996);
|
||||
|
||||
printf("Filling fuel map\r\n");
|
||||
for (int k = 0; k < FUEL_LOAD_COUNT; k++) {
|
||||
for (int r = 0; r < FUEL_RPM_COUNT; r++) {
|
||||
eth.engine.engineConfiguration->fuelTable[k][r] = k * 200 + r;
|
||||
|
|
Loading…
Reference in New Issue