another huh (#4517)

* another huh

* why does this not compile
This commit is contained in:
rusefillc 2022-09-02 13:10:21 -04:00 committed by GitHub
parent 78c10c4be5
commit f6ae78e72c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

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

View File

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