Comran Morshed | 41ed7c2 | 2015-11-04 21:03:37 +0000 | [diff] [blame] | 1 | #ifndef Y2014_BOT3_CONTROL_LOOPS_ROLLERS_H_ |
| 2 | #define Y2014_BOT3_CONTROL_LOOPS_ROLLERS_H_ |
Comran Morshed | e9b1292 | 2015-11-04 19:46:48 +0000 | [diff] [blame] | 3 | |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame^] | 4 | #include "aos/controls/control_loop.h" |
Comran Morshed | e9b1292 | 2015-11-04 19:46:48 +0000 | [diff] [blame] | 5 | |
Comran Morshed | 41ed7c2 | 2015-11-04 21:03:37 +0000 | [diff] [blame] | 6 | #include "y2014_bot3/control_loops/rollers/rollers.q.h" |
| 7 | |
| 8 | namespace y2014_bot3 { |
Comran Morshed | e9b1292 | 2015-11-04 19:46:48 +0000 | [diff] [blame] | 9 | namespace control_loops { |
| 10 | |
Comran Morshed | 41ed7c2 | 2015-11-04 21:03:37 +0000 | [diff] [blame] | 11 | class Rollers : public aos::controls::ControlLoop<control_loops::RollersQueue> { |
Comran Morshed | e9b1292 | 2015-11-04 19:46:48 +0000 | [diff] [blame] | 12 | public: |
| 13 | // Constructs a control loops which can take a rollers or defaults to the |
Comran Morshed | 41ed7c2 | 2015-11-04 21:03:37 +0000 | [diff] [blame] | 14 | // rollers at ::2014_bot3::control_loops::rollers. |
| 15 | explicit Rollers(control_loops::RollersQueue *rollers_queue = |
| 16 | &control_loops::rollers_queue); |
Comran Morshed | e9b1292 | 2015-11-04 19:46:48 +0000 | [diff] [blame] | 17 | |
| 18 | protected: |
| 19 | // Executes one cycle of the control loop. |
Comran Morshed | 41ed7c2 | 2015-11-04 21:03:37 +0000 | [diff] [blame] | 20 | void RunIteration(const control_loops::RollersQueue::Goal *goal, |
| 21 | const control_loops::RollersQueue::Position *position, |
| 22 | control_loops::RollersQueue::Output *output, |
| 23 | control_loops::RollersQueue::Status *status) override; |
Comran Morshed | e9b1292 | 2015-11-04 19:46:48 +0000 | [diff] [blame] | 24 | }; |
| 25 | |
| 26 | } // namespace control_loops |
Comran Morshed | 41ed7c2 | 2015-11-04 21:03:37 +0000 | [diff] [blame] | 27 | } // namespace y2014_bot3 |
Comran Morshed | e9b1292 | 2015-11-04 19:46:48 +0000 | [diff] [blame] | 28 | |
Comran Morshed | 41ed7c2 | 2015-11-04 21:03:37 +0000 | [diff] [blame] | 29 | #endif // Y2014_BOT3_CONTROL_LOOPS_ROLLERS_H_ |