bixing build
This commit is contained in:
parent
513202a0af
commit
d9fee11d73
|
@ -162,7 +162,7 @@ void FuelConsumptionState::addData(float durationMs) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void FuelConsumptionState::update(efitick_t nowNt) {
|
void FuelConsumptionState::update(efitick_t nowNt DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
||||||
efitick_t deltaNt = nowNt - accumulatedSecondPrevNt;
|
efitick_t deltaNt = nowNt - accumulatedSecondPrevNt;
|
||||||
if (deltaNt >= US2NT(US_PER_SECOND_LL)) {
|
if (deltaNt >= US2NT(US_PER_SECOND_LL)) {
|
||||||
perSecondConsumption = getFuelRate(perSecondAccumulator, deltaNt PASS_ENGINE_PARAMETER_SUFFIX);
|
perSecondConsumption = getFuelRate(perSecondAccumulator, deltaNt PASS_ENGINE_PARAMETER_SUFFIX);
|
||||||
|
@ -253,7 +253,7 @@ void EngineState::periodicFastCallback(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// update fuel consumption states
|
// update fuel consumption states
|
||||||
fuelConsumption.update(nowNt);
|
fuelConsumption.update(nowNt PASS_ENGINE_PARAMETER_SUFFIX);
|
||||||
|
|
||||||
// post-cranking fuel enrichment.
|
// post-cranking fuel enrichment.
|
||||||
// for compatibility reasons, apply only if the factor is greater than zero (0.01 margin used)
|
// for compatibility reasons, apply only if the factor is greater than zero (0.01 margin used)
|
||||||
|
|
|
@ -110,7 +110,7 @@ class FuelConsumptionState {
|
||||||
public:
|
public:
|
||||||
FuelConsumptionState();
|
FuelConsumptionState();
|
||||||
void addData(float durationMs);
|
void addData(float durationMs);
|
||||||
void update(efitick_t nowNt);
|
void update(efitick_t nowNt DECLARE_ENGINE_PARAMETER_SUFFIX);
|
||||||
float perSecondConsumption;
|
float perSecondConsumption;
|
||||||
float perMinuteConsumption;
|
float perMinuteConsumption;
|
||||||
float perSecondAccumulator;
|
float perSecondAccumulator;
|
||||||
|
|
Loading…
Reference in New Issue