1516X High Stakes 2.0
Codebase for 1516X High Stakes season
|
The Intake class represents a robot intake system. More...
#include <intake.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. | |
Intake () | |
void | toggle () |
Toggles intake elevation. | |
Private Attributes | |
bool | elevated |
bool | alliance_color |
blue is false, red is true. | |
Intake::Intake | ( | ) |
void Intake::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.
Definition at line 33 of file intake.cpp.
void Intake::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 16 of file intake.cpp.
References Robot::Globals::controller(), FASTER_VELOCITY, Robot::Globals::HookMotor(), Robot::Globals::IntakeMotor(), and SLOWER_VELOCITY.
void Intake::toggle | ( | ) |
|
private |
|
private |