auto-sync

This commit is contained in:
rusEfi 2015-09-02 21:03:43 -04:00
parent 133b30f0e7
commit 00feed272d
4 changed files with 9 additions and 2 deletions

View File

@ -38,6 +38,10 @@ WallFuel::WallFuel() {
memset(wallFuel, 0, sizeof(wallFuel));
}
void WallFuel::reset() {
}
floatms_t WallFuel::adjust(int injectorIndex, floatms_t target DECLARE_ENGINE_PARAMETER_S) {
if (cisnan(target)) {
return target;
@ -50,6 +54,7 @@ floatms_t WallFuel::adjust(int injectorIndex, floatms_t target DECLARE_ENGINE_PA
float addedToWallsAmount = result * addedToWallCoef;
wallFuel[injectorIndex] = wallFuel[injectorIndex] + addedToWallsAmount - suckedOffWallsAmount;
engine->wallFuelCorrection = result - target;
return result;
}

View File

@ -45,7 +45,7 @@ public:
WallFuel();
floatms_t adjust(int injectorIndex, floatms_t target DECLARE_ENGINE_PARAMETER_S);
floatms_t getWallFuel(int injectorIndex);
void reset();
private:
/**
* Amount of fuel on the wall, in injector open time scale, for specific injector.

View File

@ -191,6 +191,8 @@ public:
* Fuel injection duration for current engine cycle, without wall wetting
*/
floatms_t fuelMs;
float totalFuelCorrection;
floatms_t wallFuelCorrection;
/**
* This one with wall wetting accounted for, used for logging.

View File

@ -118,7 +118,7 @@ public class SensorLiveGraph extends JPanel {
if (!Node.isNumeric(lower))
return;
customLower = Double.parseDouble(lower);
config.setProperty(LOWER, customUpper);
config.setProperty(LOWER, customLower);
}
}
});