only:getCurrentTarget getter into interface

This commit is contained in:
Andrey 2024-06-17 21:46:56 -04:00
parent 9e9d18822e
commit 3b988d02f9
3 changed files with 6 additions and 1 deletions

View File

@ -55,6 +55,6 @@ public:
virtual bool isEtbMode() const = 0;
virtual const pid_state_s& getPidState() const = 0;
virtual float getCurrentTarget() const = 0;
virtual void setLuaAdjustment(percent_t adjustment) = 0;
};

View File

@ -69,6 +69,10 @@ public:
return 0;
}
float getCurrentTarget() const override {
return etbCurrentTarget;
}
// Lua throttle adjustment
void setLuaAdjustment(percent_t adjustment) override;
float getLuaAdjustment() const;

View File

@ -27,6 +27,7 @@ public:
MOCK_METHOD(void, setWastegatePosition, (percent_t pos), (override));
MOCK_METHOD(void, autoCalibrateTps, (), (override));
MOCK_METHOD(const pid_state_s&, getPidState, (), (const, override));
MOCK_METHOD(float, getCurrentTarget, (), (const, override));
MOCK_METHOD(void, setLuaAdjustment, (percent_t adjustment), (override));