This commit is contained in:
Matthew Kennedy 2020-08-10 21:53:45 -07:00
parent 1f64754b57
commit 3c72fa93e4
2 changed files with 4 additions and 2 deletions

View File

@ -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);

View File

@ -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);