diff --git a/firmware/controllers/algo/fuel/fuel_computer.h b/firmware/controllers/algo/fuel/fuel_computer.h index 44864f9a27..430076fa75 100644 --- a/firmware/controllers/algo/fuel/fuel_computer.h +++ b/firmware/controllers/algo/fuel/fuel_computer.h @@ -13,6 +13,8 @@ struct IFuelComputer { // This contains the math of the fuel model, but doesn't actually read any configuration class FuelComputerBase : public IFuelComputer { public: + DECLARE_ENGINE_PTR; + mass_t getCycleFuel(mass_t airmass, int rpm, float load) const override; protected: @@ -22,8 +24,6 @@ protected: // This class is a usable implemenation of a fuel model that reads real configuration class FuelComputer final : public FuelComputerBase { - DECLARE_ENGINE_PTR; - public: FuelComputer(const ValueProvider3D& afrTable); diff --git a/firmware/controllers/algo/fuel_math.cpp b/firmware/controllers/algo/fuel_math.cpp index bccd9f01b7..221d725f67 100644 --- a/firmware/controllers/algo/fuel_math.cpp +++ b/firmware/controllers/algo/fuel_math.cpp @@ -345,6 +345,8 @@ floatms_t getInjectorLag(float vBatt DECLARE_ENGINE_PARAMETER_SUFFIX) { void initFuelMap(DECLARE_ENGINE_PARAMETER_SIGNATURE) { INJECT_ENGINE_REFERENCE(&sdAirmass); INJECT_ENGINE_REFERENCE(&mafAirmass); + INJECT_ENGINE_REFERENCE(&alphaNAirmass); + INJECT_ENGINE_REFERENCE(&fuelComputer); #if (IGN_LOAD_COUNT == FUEL_LOAD_COUNT) && (IGN_RPM_COUNT == FUEL_RPM_COUNT) fuelPhaseMap.init(config->injectionPhase, config->injPhaseLoadBins, config->injPhaseRpmBins);