parent
afd441dce7
commit
0e27ec6633
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include "fuel_computer.h"
|
||||
|
||||
mass_t FuelComputerBase::getCycleFuel(mass_t airmass, int rpm, float load) const {
|
||||
mass_t FuelComputerBase::getCycleFuel(mass_t airmass, int rpm, float load) {
|
||||
load = getTargetLambdaLoadAxis(load);
|
||||
|
||||
float stoich = getStoichiometricRatio();
|
||||
|
|
|
@ -6,13 +6,13 @@ class ValueProvider3D;
|
|||
#include "fuel_computer_generated.h"
|
||||
|
||||
struct IFuelComputer : public fuel_computer_s {
|
||||
virtual mass_t getCycleFuel(mass_t airmass, int rpm, float load) const = 0;
|
||||
virtual mass_t getCycleFuel(mass_t airmass, int rpm, float load) = 0;
|
||||
};
|
||||
|
||||
// This contains the math of the fuel model, but doesn't actually read any configuration
|
||||
class FuelComputerBase : public IFuelComputer {
|
||||
public:
|
||||
mass_t getCycleFuel(mass_t airmass, int rpm, float load) const override;
|
||||
mass_t getCycleFuel(mass_t airmass, int rpm, float load) override;
|
||||
|
||||
virtual float getStoichiometricRatio() const = 0;
|
||||
virtual float getTargetLambda(int rpm, float load) const = 0;
|
||||
|
|
Loading…
Reference in New Issue