Austin Schuh | 6d1ee0c | 2015-11-21 14:36:04 -0800 | [diff] [blame] | 1 | #ifndef Y2015_BOT3_CONTROL_LOOPS_INTAKE_H_ |
| 2 | #define Y2015_BOT3_CONTROL_LOOPS_INTAKE_H_ |
Comran Morshed | fab3200 | 2015-08-30 14:48:54 +0000 | [diff] [blame] | 3 | |
| 4 | #include "aos/common/controls/control_loop.h" |
| 5 | |
Austin Schuh | 6d1ee0c | 2015-11-21 14:36:04 -0800 | [diff] [blame] | 6 | #include "y2015_bot3/control_loops/intake/intake.q.h" |
Comran Morshed | fab3200 | 2015-08-30 14:48:54 +0000 | [diff] [blame] | 7 | |
Austin Schuh | 6d1ee0c | 2015-11-21 14:36:04 -0800 | [diff] [blame] | 8 | namespace y2015_bot3 { |
Comran Morshed | fab3200 | 2015-08-30 14:48:54 +0000 | [diff] [blame] | 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 |
Austin Schuh | 6d1ee0c | 2015-11-21 14:36:04 -0800 | [diff] [blame] | 26 | } // namespace y2015_bot3 |
Comran Morshed | fab3200 | 2015-08-30 14:48:54 +0000 | [diff] [blame] | 27 | |
Austin Schuh | 6d1ee0c | 2015-11-21 14:36:04 -0800 | [diff] [blame] | 28 | #endif // Y2015_BOT3_CONTROL_LOOPS_INTAKE_H_ |