![]() |
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 , SIZECHECK_STATE = 4 } |
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 |
| lemlib::PID | ActiveBrakePID |
| int | brake_target |
| int | target |
| bool | isPIDRunning |
| bool | manualControl |
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.
| Enumerator | |
|---|---|
| BASE_STATE | |
| LOAD_STATE | |
| ATTACK_STATE | |
| SIZECHECK_STATE | |
Definition at line 12 of file ladybrown.h.
| LadyBrown::LadyBrown | ( | ) |
Definition at line 15 of file ladybrown.cpp.
References ActiveBrakePID, Robot::Globals::LadyBrownMotor(), Robot::Globals::LadyBrownRotation(), manualControl, and MoveToPointPID.
| int LadyBrown::get_target | ( | ) |
| void LadyBrown::MoveToPoint | ( | LadyBrown::LADYBROWN_STATE | state, |
| int | max_error = 150, | ||
| int | timeout = 1000 ) |
Definition at line 83 of file ladybrown.cpp.
References ATTACK_STATE, BASE_STATE, current_state, isPIDRunning, Robot::Globals::LadyBrownMotor(), Robot::Globals::LadyBrownRotation(), LOAD_STATE, MoveToPointPID, SIZECHECK_STATE, and target.
Referenced by run().
| void LadyBrown::run | ( | bool | async = true, |
| int | timeout = 1000 ) |
Definition at line 22 of file ladybrown.cpp.
References ActiveBrakePID, BASE_STATE, brake_target, Robot::Globals::controller(), current_state, isPIDRunning, Robot::Globals::LadyBrownMotor(), Robot::Globals::LadyBrownRotation(), LOAD_STATE, manualControl, and MoveToPoint().
|
private |
Definition at line 25 of file ladybrown.h.
Referenced by LadyBrown(), and run().
|
private |
Definition at line 27 of file ladybrown.h.
Referenced by run().
|
staticprivate |
Definition at line 29 of file ladybrown.h.
Referenced by MoveToPoint(), and run().
|
private |
Definition at line 33 of file ladybrown.h.
Referenced by MoveToPoint(), and run().
|
private |
Definition at line 35 of file ladybrown.h.
Referenced by LadyBrown(), and run().
|
private |
Definition at line 23 of file ladybrown.h.
Referenced by LadyBrown(), and MoveToPoint().
|
private |
Definition at line 31 of file ladybrown.h.
Referenced by get_target(), and MoveToPoint().