blob: 29ffcf5efef6d8c237e4db8f90d8f4c819f03e3f [file] [log] [blame]
Parker Schuh18dbbb42017-10-18 21:45:33 -07001#include "frc971/codelab/basic.h"
2
3namespace frc971 {
4namespace codelab {
5
Austin Schuh55a13dc2019-01-27 22:39:03 -08006Basic::Basic(::aos::EventLoop *event_loop, const ::std::string &name)
Alex Perrycb7da4b2019-08-28 19:35:56 -07007 : aos::controls::ControlLoop<Goal, Position, Status, Output>(event_loop,
8 name) {}
Parker Schuh18dbbb42017-10-18 21:45:33 -07009
Alex Perrycb7da4b2019-08-28 19:35:56 -070010void Basic::RunIteration(const Goal *goal, const Position *position,
11 aos::Sender<Output>::Builder *output,
12 aos::Sender<Status>::Builder *status) {
Parker Schuh18dbbb42017-10-18 21:45:33 -070013 // 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