4#include "lemlib/timer.hpp"
7#include "pros/rtos.hpp"
9#define SLOWER_VELOCITY 200
10#define FASTER_VELOCITY 600
25 if (
controller.get_digital(pros::E_CONTROLLER_DIGITAL_R1)) {
28 }
else if (
controller.get_digital(pros::E_CONTROLLER_DIGITAL_L1)) {
57 if (
controller.get_digital(pros::E_CONTROLLER_DIGITAL_RIGHT)) {
59 }
else if (
controller.get_digital(pros::E_CONTROLLER_DIGITAL_DOWN)) {
63 if (
controller.get_digital_new_press(pros::E_CONTROLLER_DIGITAL_A)) {
bool alliance_color
blue is false, red is true.
void run()
Runs the main function of the intake system.
The LadyBrown class represents the robot lady brown subsystem.
Robot::LadyBrown ladybrown
lemlib::PID crap_pid(0.3, 0, 0.5, 3, false)
pros::Motor IntakeMotor(-4, pros::v5::MotorGears::blue, pros::v5::MotorUnits::degrees)
pros::Motor HookMotor(3, pros::v5::MotorGears::green, pros::v5::MotorUnits::degrees)
pros::adi::Pneumatics IntakeLift('D', false)
pros::Controller controller(pros::E_CONTROLLER_MASTER)