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 | score () |
Outakes alliance rings into latched mobile goal and ejects enemy rings. | |
Intake () | |
void | toggle () |
Toggles intake elevation. | |
Private Attributes | |
bool | elevated |
bool | alliance_color |
blue is false, red is true. | |
Intake::Intake | ( | ) |
Definition at line 8 of file intake.cpp.
References alliance_color, Robot::Globals::controller(), and elevated.
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 15 of file intake.cpp.
References Robot::Globals::controller(), Robot::Globals::HookMotor(), and Robot::Globals::IntakeMotor().
Referenced by opcontrol().
void Intake::score | ( | ) |
Outakes alliance rings into latched mobile goal and ejects enemy rings.
Definition at line 35 of file intake.cpp.
References alliance_color, Robot::Globals::colorSensor(), and Robot::Globals::IntakeMotor().
Referenced by Robot::Autonomous::Auton1(), and Robot::Autonomous::Auton2().
void Intake::toggle | ( | ) |
Toggles intake elevation.
Definition at line 29 of file intake.cpp.
References elevated, and Robot::Globals::IntakeToggle().
Referenced by Robot::Autonomous::Auton1(), and Robot::Autonomous::Auton2().
|
private |
|
private |