Comran Morshed | fab3200 | 2015-08-30 14:48:54 +0000 | [diff] [blame^] | 1 | #ifndef BOT3_CONTROL_LOOPS_INTAKE_H_ |
| 2 | #define BOT3_CONTROL_LOOPS_INTAKE_H_ |
| 3 | |
| 4 | #include "aos/common/controls/control_loop.h" |
| 5 | |
| 6 | #include "bot3/control_loops/intake/intake.q.h" |
| 7 | |
| 8 | namespace bot3 { |
| 9 | namespace control_loops { |
| 10 | |
| 11 | constexpr double kIntakeVoltageFullPower = 12.0; |
| 12 | |
| 13 | class Intake : public aos::controls::ControlLoop<control_loops::IntakeQueue> { |
| 14 | public: |
| 15 | explicit Intake( |
| 16 | control_loops::IntakeQueue *intake_queue = &control_loops::intake_queue); |
| 17 | |
| 18 | protected: |
| 19 | void RunIteration(const control_loops::IntakeQueue::Goal *goal, |
| 20 | const control_loops::IntakeQueue::Position *position, |
| 21 | control_loops::IntakeQueue::Output *output, |
| 22 | control_loops::IntakeQueue::Status *status) override; |
| 23 | }; |
| 24 | |
| 25 | } // namespace control_loops |
| 26 | } // namespace bot3 |
| 27 | |
| 28 | #endif // BOT3_CONTROL_LOOPS_INTAKE_H_ |