mirror of https://github.com/FOME-Tech/fome-fw.git
auto-sync
This commit is contained in:
parent
83ab5dbccc
commit
55c8b58d13
|
@ -39,9 +39,12 @@ WallFuel::WallFuel() {
|
||||||
}
|
}
|
||||||
|
|
||||||
floatms_t WallFuel::adjust(int injectorIndex, floatms_t target DECLARE_ENGINE_PARAMETER_S) {
|
floatms_t WallFuel::adjust(int injectorIndex, floatms_t target DECLARE_ENGINE_PARAMETER_S) {
|
||||||
|
if (cisnan(target)) {
|
||||||
|
return target;
|
||||||
|
}
|
||||||
float addedToWallCoef = engineConfiguration->addedToWallCoef;
|
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);
|
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 length=%d", tpsInstance.cb.getSize());
|
||||||
scheduleMsg(logger, "TPS accel th=%f/mult=%f", engineConfiguration->tpsAccelEnrichmentThreshold, engineConfiguration->tpsAccelEnrichmentMultiplier);
|
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) {
|
static void setMapAccelThr(float value) {
|
||||||
|
|
|
@ -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.IGNITIONOFFSET, "Ignition offset").getContent()));
|
||||||
panel.add(UiUtils.wrap(new ConfigField(Fields.CRANKINGTIMINGANGLE, "Cranking timing").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")));
|
panel.add(UiUtils.wrap(RecentCommands.createButton(new AtomicBoolean(), "writeconfig")));
|
||||||
|
|
||||||
content.add(panel);
|
content.add(panel);
|
||||||
|
|
Loading…
Reference in New Issue