Parker Schuh | 18dbbb4 | 2017-10-18 21:45:33 -0700 | [diff] [blame^] | 1 | #include "frc971/codelab/basic.h" |
| 2 | |
| 3 | namespace frc971 { |
| 4 | namespace codelab { |
| 5 | |
| 6 | Basic::Basic(BasicQueue *my_basic_queue) |
| 7 | : aos::controls::ControlLoop<BasicQueue>(my_basic_queue) {} |
| 8 | |
| 9 | void Basic::RunIteration(const BasicQueue::Goal *goal, |
| 10 | const BasicQueue::Position *position, |
| 11 | BasicQueue::Output *output, |
| 12 | BasicQueue::Status *status) { |
| 13 | // TODO(you): Set the intake_voltage to 12 Volts when |
| 14 | // intake is requested (via intake in goal). Make sure not to set |
| 15 | // the motor to anything but 0 V when the limit_sensor is pressed. |
| 16 | |
| 17 | // Ignore: These are to avoid clang warnings. |
| 18 | (void)goal, (void)position, (void)output, (void)status; |
| 19 | } |
| 20 | |
| 21 | } // namespace codelab |
| 22 | } // namespace frc971 |