only:getCurrentTarget getter into interface
This commit is contained in:
parent
9e9d18822e
commit
3b988d02f9
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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));
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue