![]() |
1516X High Stakes 2.0
Codebase for 1516X High Stakes season
|
The LadyBrown class represents the robot lady brown subsystem. More...
#include <ladybrown.h>
Public Types | |
enum | LADYBROWN_STATE { BASE_STATE = 1 , LOAD_STATE = 2 , ATTACK_STATE = 3 } |
Public Member Functions | |
void | run (bool async=true, int timeout=1000) |
void | MoveToPoint (LadyBrown::LADYBROWN_STATE state, int max_error=150, int timeout=1000) |
LadyBrown () | |
int | get_target () |
Private Attributes | |
lemlib::PID | MoveToPointPID |
int | target |
bool | isPIDRunning |
Static Private Attributes | |
static LADYBROWN_STATE | current_state = LadyBrown::BASE_STATE |
The LadyBrown class represents the robot lady brown subsystem.
Definition at line 9 of file ladybrown.h.
LadyBrown::LadyBrown | ( | ) |
Definition at line 15 of file ladybrown.cpp.
References Robot::Globals::LadyBrownMotor(), Robot::Globals::LadyBrownRotation(), and MoveToPointPID.
int LadyBrown::get_target | ( | ) |
void LadyBrown::MoveToPoint | ( | LadyBrown::LADYBROWN_STATE | state, |
int | max_error = 150, | ||
int | timeout = 1000 ) |
Definition at line 72 of file ladybrown.cpp.
References ATTACK_STATE, BASE_STATE, current_state, isPIDRunning, Robot::Globals::LadyBrownMotor(), Robot::Globals::LadyBrownRotation(), LOAD_STATE, MoveToPointPID, and target.
Referenced by Robot::Autonomous::BluePos(), Robot::Autonomous::RedPos(), run(), and Robot::Autonomous::Skills().
void LadyBrown::run | ( | bool | async = true, |
int | timeout = 1000 ) |
Definition at line 20 of file ladybrown.cpp.
References ATTACK_STATE, BASE_STATE, Robot::Globals::controller(), current_state, isPIDRunning, LOAD_STATE, and MoveToPoint().
|
staticprivate |
Definition at line 25 of file ladybrown.h.
Referenced by MoveToPoint(), and run().
|
private |
Definition at line 29 of file ladybrown.h.
Referenced by MoveToPoint(), and run().
|
private |
Definition at line 23 of file ladybrown.h.
Referenced by LadyBrown(), and MoveToPoint().
|
private |
Definition at line 27 of file ladybrown.h.
Referenced by get_target(), and MoveToPoint().