blob: 9890871882dc05370530f520bda18e46b4ef2134 [file] [log] [blame]
#ifndef Y2014_BOT3_CONTROL_LOOPS_ROLLERS_H_
#define Y2014_BOT3_CONTROL_LOOPS_ROLLERS_H_
#include "aos/controls/control_loop.h"
#include "y2014_bot3/control_loops/rollers/rollers.q.h"
namespace y2014_bot3 {
namespace control_loops {
class Rollers : public aos::controls::ControlLoop<control_loops::RollersQueue> {
public:
// Constructs a control loops which can take a rollers or defaults to the
// rollers at ::2014_bot3::control_loops::rollers.
explicit Rollers(
::aos::EventLoop *event_loop,
const ::std::string &name = ".y2014_bot3.control_loops.rollers_queue");
protected:
// Executes one cycle of the control loop.
void RunIteration(const control_loops::RollersQueue::Goal *goal,
const control_loops::RollersQueue::Position *position,
control_loops::RollersQueue::Output *output,
control_loops::RollersQueue::Status *status) override;
};
} // namespace control_loops
} // namespace y2014_bot3
#endif // Y2014_BOT3_CONTROL_LOOPS_ROLLERS_H_