| #include "frc971/codelab/basic.h" |
| |
| namespace frc971 { |
| namespace codelab { |
| |
| Basic::Basic(BasicQueue *my_basic_queue) |
| : aos::controls::ControlLoop<BasicQueue>(my_basic_queue) {} |
| |
| void Basic::RunIteration(const BasicQueue::Goal *goal, |
| const BasicQueue::Position *position, |
| BasicQueue::Output *output, |
| BasicQueue::Status *status) { |
| // TODO(you): Set the intake_voltage to 12 Volts when |
| // intake is requested (via intake in goal). Make sure not to set |
| // the motor to anything but 0 V when the limit_sensor is pressed. |
| |
| // Ignore: These are to avoid clang warnings. |
| (void)goal, (void)position, (void)output, (void)status; |
| } |
| |
| } // namespace codelab |
| } // namespace frc971 |