1516X High Stakes 2.0
Codebase for 1516X High Stakes season
Loading...
Searching...
No Matches
ladybrown.h
Go to the documentation of this file.
1#pragma once
2
3#include "lemlib/pid.hpp"
4namespace Robot {
5
9class LadyBrown {
10public:
11 // The ENUM associates with each location of the rotation sensor for the LadyBrown to move.
13
14 void run(bool async = true, int timeout = 1000);
15
16 void MoveToPoint(LadyBrown::LADYBROWN_STATE state, int max_error = 150, int timeout = 1000);
17
18 LadyBrown();
19
20 int get_target();
21
22private:
23 lemlib::PID MoveToPointPID;
24
25 lemlib::PID ActiveBrakePID;
26
28
30
31 int target;
32
34
36};
37} // namespace Robot
lemlib::PID ActiveBrakePID
Definition ladybrown.h:25
void run(bool async=true, int timeout=1000)
Definition ladybrown.cpp:22
lemlib::PID MoveToPointPID
Definition ladybrown.h:23
static LADYBROWN_STATE current_state
Definition ladybrown.h:29
void MoveToPoint(LadyBrown::LADYBROWN_STATE state, int max_error=150, int timeout=1000)
Definition ladybrown.cpp:83
Definition auton.h:10