diff --git a/firmware/controllers/actuators/electronic_throttle.h b/firmware/controllers/actuators/electronic_throttle.h index 21dbe58245..5c5708e707 100644 --- a/firmware/controllers/actuators/electronic_throttle.h +++ b/firmware/controllers/actuators/electronic_throttle.h @@ -54,6 +54,7 @@ public: virtual void setWastegatePosition(percent_t pos) = 0; virtual void update() = 0; virtual void autoCalibrateTps() = 0; + virtual bool isEtbMode() = 0; virtual const pid_state_s& getPidState() const = 0; diff --git a/unit_tests/mocks.h b/unit_tests/mocks.h index e83abe5471..cc3e44bc55 100644 --- a/unit_tests/mocks.h +++ b/unit_tests/mocks.h @@ -20,6 +20,7 @@ public: // IEtbController mocks MOCK_METHOD(void, reset, (), (override)); + MOCK_METHOD(bool, isEtbMode, (), (override)); MOCK_METHOD(void, update, (), (override)); MOCK_METHOD(bool, init, (dc_function_e function, DcMotor* motor, pid_s* pidParameters, const ValueProvider3D* pedalMap, bool initializeThrottles), (override)); MOCK_METHOD(void, setIdlePosition, (percent_t pos), (override));