5#define SLOWER_VELOCITY 200
6#define FASTER_VELOCITY 600
18 if (
controller.get_digital(pros::E_CONTROLLER_DIGITAL_R1)) {
21 }
else if (
controller.get_digital(pros::E_CONTROLLER_DIGITAL_L1)) {
void checkStop()
Checks whether the intake should stop to skip the ring depending on color. It is the embodiment of vi...
void toggle()
Toggles intake elevation.
bool alliance_color
blue is false, red is true.
void run()
Runs the main function of the intake system.
pros::Motor HookMotor(-2, pros::v5::MotorGears::green, pros::v5::MotorUnits::degrees)
pros::Motor IntakeMotor(-1, pros::v5::MotorGears::blue, pros::v5::MotorUnits::degrees)
pros::Controller controller(pros::E_CONTROLLER_MASTER)