blob: 30b7bef640b9d6c5b21c05acd21131ae6dbf8c12 [file] [log] [blame]
Patrick Venture4bd518d2018-06-12 10:47:15 -07001#pragma once
2
Patrick Venture4bd518d2018-06-12 10:47:15 -07003#include "pid/controller.hpp"
Patrick Williams7df3c272025-01-30 19:44:28 -05004#include "pid/pidcontroller.hpp"
Patrick Venture7a98c192020-08-12 08:35:16 -07005#include "pid/zone_interface.hpp"
Patrick Venture4bd518d2018-06-12 10:47:15 -07006
Ed Tanousf8b6e552025-06-27 13:27:50 -07007#include <string>
8
Patrick Ventureda4a5dd2018-08-31 09:42:48 -07009#include <gmock/gmock.h>
10
Patrick Venturea0764872020-08-08 07:48:43 -070011namespace pid_control
12{
13
Patrick Venture4bd518d2018-06-12 10:47:15 -070014class ControllerMock : public PIDController
15{
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070016 public:
Ed Tanousd2768c52025-06-26 11:42:57 -070017 ~ControllerMock() override = default;
Patrick Venture4bd518d2018-06-12 10:47:15 -070018
Patrick Venture7a98c192020-08-12 08:35:16 -070019 ControllerMock(const std::string& id, ZoneInterface* owner) :
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070020 PIDController(id, owner)
Patrick Venturea83a3ec2020-08-04 09:52:05 -070021 {}
Patrick Venture4bd518d2018-06-12 10:47:15 -070022
Patrick Venture5f59c0f2018-11-11 12:55:14 -080023 MOCK_METHOD0(inputProc, double());
24 MOCK_METHOD0(setptProc, double());
25 MOCK_METHOD1(outputProc, void(double));
Patrick Venture4bd518d2018-06-12 10:47:15 -070026};
Patrick Venturea0764872020-08-08 07:48:43 -070027
28} // namespace pid_control