| Patrick Venture | 4bd518d | 2018-06-12 10:47:15 -0700 | [diff] [blame] | 1 | #pragma once |
| 2 | |||||
| Patrick Venture | 4bd518d | 2018-06-12 10:47:15 -0700 | [diff] [blame] | 3 | #include "pid/controller.hpp" |
| Patrick Williams | 7df3c27 | 2025-01-30 19:44:28 -0500 | [diff] [blame] | 4 | #include "pid/pidcontroller.hpp" |
| Patrick Venture | 7a98c19 | 2020-08-12 08:35:16 -0700 | [diff] [blame] | 5 | #include "pid/zone_interface.hpp" |
| Patrick Venture | 4bd518d | 2018-06-12 10:47:15 -0700 | [diff] [blame] | 6 | |
| Ed Tanous | f8b6e55 | 2025-06-27 13:27:50 -0700 | [diff] [blame] | 7 | #include <string> |
| 8 | |||||
| Patrick Venture | da4a5dd | 2018-08-31 09:42:48 -0700 | [diff] [blame] | 9 | #include <gmock/gmock.h> |
| 10 | |||||
| Patrick Venture | a076487 | 2020-08-08 07:48:43 -0700 | [diff] [blame] | 11 | namespace pid_control |
| 12 | { | ||||
| 13 | |||||
| Patrick Venture | 4bd518d | 2018-06-12 10:47:15 -0700 | [diff] [blame] | 14 | class ControllerMock : public PIDController |
| 15 | { | ||||
| Patrick Venture | da4a5dd | 2018-08-31 09:42:48 -0700 | [diff] [blame] | 16 | public: |
| Ed Tanous | d2768c5 | 2025-06-26 11:42:57 -0700 | [diff] [blame] | 17 | ~ControllerMock() override = default; |
| Patrick Venture | 4bd518d | 2018-06-12 10:47:15 -0700 | [diff] [blame] | 18 | |
| Patrick Venture | 7a98c19 | 2020-08-12 08:35:16 -0700 | [diff] [blame] | 19 | ControllerMock(const std::string& id, ZoneInterface* owner) : |
| Patrick Venture | da4a5dd | 2018-08-31 09:42:48 -0700 | [diff] [blame] | 20 | PIDController(id, owner) |
| Patrick Venture | a83a3ec | 2020-08-04 09:52:05 -0700 | [diff] [blame] | 21 | {} |
| Patrick Venture | 4bd518d | 2018-06-12 10:47:15 -0700 | [diff] [blame] | 22 | |
| Patrick Venture | 5f59c0f | 2018-11-11 12:55:14 -0800 | [diff] [blame] | 23 | MOCK_METHOD0(inputProc, double()); |
| 24 | MOCK_METHOD0(setptProc, double()); | ||||
| 25 | MOCK_METHOD1(outputProc, void(double)); | ||||
| Patrick Venture | 4bd518d | 2018-06-12 10:47:15 -0700 | [diff] [blame] | 26 | }; |
| Patrick Venture | a076487 | 2020-08-08 07:48:43 -0700 | [diff] [blame] | 27 | |
| 28 | } // namespace pid_control | ||||