mirror of https://github.com/rusefi/rusefi.git
better code guard?
This commit is contained in:
parent
b37e61b8ae
commit
a1776d176d
|
@ -4,6 +4,8 @@
|
|||
#include "closed_loop_fuel_cell.h"
|
||||
#include "deadband.h"
|
||||
|
||||
#if EFI_ENGINE_CONTROL
|
||||
|
||||
struct FuelingBank {
|
||||
ClosedLoopFuelCellImpl cells[STFT_CELL_COUNT];
|
||||
};
|
||||
|
@ -133,3 +135,5 @@ ClosedLoopFuelResult fuelClosedLoopCorrection() {
|
|||
|
||||
return result;
|
||||
}
|
||||
|
||||
#endif // EFI_ENGINE_CONTROL
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
#include "closed_loop_fuel_cell.h"
|
||||
|
||||
#if EFI_ENGINE_CONTROL
|
||||
|
||||
constexpr float integrator_dt = FAST_CALLBACK_PERIOD_MS * 0.001f;
|
||||
|
||||
void ClosedLoopFuelCellBase::update(float lambdaDeadband, bool ignoreErrorMagnitude)
|
||||
|
@ -91,3 +93,5 @@ float ClosedLoopFuelCellImpl::getIntegratorGain() const {
|
|||
|
||||
return 1 / timeConstant;
|
||||
}
|
||||
|
||||
#endif // EFI_ENGINE_CONTROL
|
||||
|
|
Loading…
Reference in New Issue