blob: 9a8e7a68e08edb4604fe26f73f77f447c5e76280 [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
Patrick Ventureda4a5dd2018-08-31 09:42:48 -07007#include <gmock/gmock.h>
8
Patrick Venturea0764872020-08-08 07:48:43 -07009namespace pid_control
10{
11
Patrick Venture4bd518d2018-06-12 10:47:15 -070012class ControllerMock : public PIDController
13{
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070014 public:
15 virtual ~ControllerMock() = default;
Patrick Venture4bd518d2018-06-12 10:47:15 -070016
Patrick Venture7a98c192020-08-12 08:35:16 -070017 ControllerMock(const std::string& id, ZoneInterface* owner) :
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070018 PIDController(id, owner)
Patrick Venturea83a3ec2020-08-04 09:52:05 -070019 {}
Patrick Venture4bd518d2018-06-12 10:47:15 -070020
Patrick Venture5f59c0f2018-11-11 12:55:14 -080021 MOCK_METHOD0(inputProc, double());
22 MOCK_METHOD0(setptProc, double());
23 MOCK_METHOD1(outputProc, void(double));
Patrick Venture4bd518d2018-06-12 10:47:15 -070024};
Patrick Venturea0764872020-08-08 07:48:43 -070025
26} // namespace pid_control