auto-sync

This commit is contained in:
rusEfi 2015-08-24 01:01:28 -04:00
parent 79f70d86a7
commit 6329d27dc3
2 changed files with 9 additions and 1 deletions

View File

@ -39,9 +39,12 @@ WallFuel::WallFuel() {
}
floatms_t WallFuel::adjust(int injectorIndex, floatms_t target DECLARE_ENGINE_PARAMETER_S) {
if (cisnan(target)) {
return target;
}
float addedToWallCoef = engineConfiguration->addedToWallCoef;
floatms_t suckedOffWallsAmount = 0;//wallFuel[injectorIndex] * engineConfiguration->suckedOffCoef;
floatms_t suckedOffWallsAmount = wallFuel[injectorIndex] * engineConfiguration->suckedOffCoef;
floatms_t result = (target - suckedOffWallsAmount) / (1 - addedToWallCoef);
@ -114,6 +117,8 @@ static void accelInfo() {
// scheduleMsg(logger, "TPS accel length=%d", tpsInstance.cb.getSize());
scheduleMsg(logger, "TPS accel th=%f/mult=%f", engineConfiguration->tpsAccelEnrichmentThreshold, engineConfiguration->tpsAccelEnrichmentMultiplier);
scheduleMsg(logger, "added to wall=%f/sucked=%f", engineConfiguration->addedToWallCoef, engineConfiguration->suckedOffCoef);
}
static void setMapAccelThr(float value) {

View File

@ -65,6 +65,9 @@ public class SettingsTab {
panel.add(UiUtils.wrap(new ConfigField(Fields.IGNITIONOFFSET, "Ignition offset").getContent()));
panel.add(UiUtils.wrap(new ConfigField(Fields.CRANKINGTIMINGANGLE, "Cranking timing").getContent()));
panel.add(UiUtils.wrap(new ConfigField(Fields.ADDEDTOWALLCOEF, "Added to wall").getContent()));
panel.add(UiUtils.wrap(new ConfigField(Fields.SUCKEDOFFCOEF, "Sucked off wall").getContent()));
panel.add(UiUtils.wrap(RecentCommands.createButton(new AtomicBoolean(), "writeconfig")));
content.add(panel);