fix
This commit is contained in:
parent
1f64754b57
commit
3c72fa93e4
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue