diff --git a/firmware/controllers/algo/fuel/fuel_computer.cpp b/firmware/controllers/algo/fuel/fuel_computer.cpp index ac1e5ae7cb..b8d23f92fb 100644 --- a/firmware/controllers/algo/fuel/fuel_computer.cpp +++ b/firmware/controllers/algo/fuel/fuel_computer.cpp @@ -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(); diff --git a/firmware/controllers/algo/fuel/fuel_computer.h b/firmware/controllers/algo/fuel/fuel_computer.h index 3f42cb6af2..461283ac22 100644 --- a/firmware/controllers/algo/fuel/fuel_computer.h +++ b/firmware/controllers/algo/fuel/fuel_computer.h @@ -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;