1516X High Stakes 2.0
Codebase for 1516X High Stakes season
|
The Intake class represents a robot intake system. More...
#include <ladybrown.h>
Public Member Functions | |
void | run () |
Runs the main function of the intake system. | |
void | checkStop () |
Checks whether the intake should stop to skip the ring depending on color. It is the embodiment of vision sensor usage in this codebase. | |
LadyBrown () | |
LadyBrown (double kP, double kI, double kD) | |
double | pid_update () |
void | toggle () |
Toggles intake elevation. | |
Static Public Member Functions | |
static void | edge_check (void *param) |
Static Public Attributes | |
static bool | needs_warning = false |
Private Attributes | |
double | kP |
double | kI |
double | kD |
bool | alliance_color |
blue is false, red is true. | |
The Intake class represents a robot intake system.
Definition at line 8 of file ladybrown.h.
LadyBrown::LadyBrown | ( | ) |
Definition at line 24 of file ladybrown.cpp.
References kD, kI, kP, Robot::Globals::LadyBrownMotor(), and needs_warning.
LadyBrown::LadyBrown | ( | double | kP, |
double | kI, | ||
double | kD ) |
Definition at line 15 of file ladybrown.cpp.
References kD, kI, kP, Robot::Globals::LadyBrownMotor(), and needs_warning.
void Robot::LadyBrown::checkStop | ( | ) |
|
static |
Definition at line 46 of file ladybrown.cpp.
References Robot::Globals::controller(), Robot::Globals::LadyBrownMotor(), and needs_warning.
double LadyBrown::pid_update | ( | ) |
Definition at line 72 of file ladybrown.cpp.
void LadyBrown::run | ( | ) |
Runs the main function of the intake system.
Takes optional user input to control the direction of the intake system in autonomous.
Definition at line 33 of file ladybrown.cpp.
References Robot::Globals::controller(), Robot::Globals::LadyBrownMotor(), needs_warning, and SLOWER_VELOCITY.
void LadyBrown::toggle | ( | ) |
|
private |
blue is false, red is true.
Definition at line 47 of file ladybrown.h.
|
private |
Definition at line 42 of file ladybrown.h.
Referenced by LadyBrown(), LadyBrown(), and checkStop().
|
private |
Definition at line 41 of file ladybrown.h.
Referenced by LadyBrown(), LadyBrown(), and checkStop().
|
private |
Definition at line 40 of file ladybrown.h.
Referenced by LadyBrown(), LadyBrown(), and checkStop().
|
static |
Definition at line 20 of file ladybrown.h.
Referenced by LadyBrown(), LadyBrown(), edge_check(), and run().