better code guard?

This commit is contained in:
rusefillc 2023-05-24 18:48:54 -04:00
parent b37e61b8ae
commit a1776d176d
2 changed files with 8 additions and 0 deletions

View File

@ -4,6 +4,8 @@
#include "closed_loop_fuel_cell.h" #include "closed_loop_fuel_cell.h"
#include "deadband.h" #include "deadband.h"
#if EFI_ENGINE_CONTROL
struct FuelingBank { struct FuelingBank {
ClosedLoopFuelCellImpl cells[STFT_CELL_COUNT]; ClosedLoopFuelCellImpl cells[STFT_CELL_COUNT];
}; };
@ -133,3 +135,5 @@ ClosedLoopFuelResult fuelClosedLoopCorrection() {
return result; return result;
} }
#endif // EFI_ENGINE_CONTROL

View File

@ -2,6 +2,8 @@
#include "closed_loop_fuel_cell.h" #include "closed_loop_fuel_cell.h"
#if EFI_ENGINE_CONTROL
constexpr float integrator_dt = FAST_CALLBACK_PERIOD_MS * 0.001f; constexpr float integrator_dt = FAST_CALLBACK_PERIOD_MS * 0.001f;
void ClosedLoopFuelCellBase::update(float lambdaDeadband, bool ignoreErrorMagnitude) void ClosedLoopFuelCellBase::update(float lambdaDeadband, bool ignoreErrorMagnitude)
@ -91,3 +93,5 @@ float ClosedLoopFuelCellImpl::getIntegratorGain() const {
return 1 / timeConstant; return 1 / timeConstant;
} }
#endif // EFI_ENGINE_CONTROL