1516X High Stakes 2.0
Codebase for 1516X High Stakes season
|
Functions | |
pros::Controller | controller (pros::E_CONTROLLER_MASTER) |
pros::Controller | partner (pros::E_CONTROLLER_PARTNER) |
pros::Motor | RightFront (13, pros::v5::MotorGears::blue, pros::v5::MotorUnits::degrees) |
pros::Motor | LeftFront (-19, pros::v5::MotorGears::blue, pros::v5::MotorUnits::degrees) |
pros::Motor | LeftBack (-18, pros::v5::MotorGears::blue, pros::v5::MotorUnits::degrees) |
pros::Motor | RightBack (12, pros::v5::MotorGears::blue, pros::v5::MotorUnits::degrees) |
pros::Motor | LeftMid (20, pros::v5::MotorGears::blue, pros::v5::MotorUnits::degrees) |
pros::Motor | RightMid (-11, pros::v5::MotorGears::blue, pros::v5::MotorUnits::degrees) |
pros::Motor | IntakeMotor (-1, pros::v5::MotorGears::blue, pros::v5::MotorUnits::degrees) |
pros::Motor | HookMotor (-2, pros::v5::MotorGears::green, pros::v5::MotorUnits::degrees) |
pros::Motor | LadyBrownMotor (3, pros::v5::MotorGears::green, pros::v5::MotorUnits::degrees) |
pros::adi::Pneumatics | LatchControl ('A', false) |
pros::adi::Pneumatics | HangControl ('C', false) |
pros::adi::Pneumatics | SweeperControl ('B', false) |
pros::Distance | distance_sensor (10) |
pros::Rotation | lateral_sensor (16) |
pros::Rotation | horizontal_sensor (17) |
pros::Imu | inertial_sensor (14) |
pros::Vision | colorSensor (4) |
pros::MotorGroup | drive_left ({LeftFront.get_port(), LeftMid.get_port(), LeftBack.get_port()}) |
pros::MotorGroup | drive_right ({RightFront.get_port(), RightMid.get_port(), RightBack.get_port()}) |
pros::MotorGroup | drive_ ({LeftFront.get_port(), RightFront.get_port(), LeftMid.get_port(), RightMid.get_port(), LeftBack.get_port(), RightBack.get_port()}) |
lemlib::ControllerSettings | lateral_controller (5.25, 0, 13, 3, 1, 100, 3, 500, 20) |
lemlib::ControllerSettings | angular_controller (1.73, 0, 9, 3, 1, 100, 2, 500, 0) |
lemlib::ExpoDriveCurve | throttle_curve (3, 15, 1.019) |
lemlib::ExpoDriveCurve | steer_curve (3, 17, 1.01) |
lemlib::Chassis | chassis (drivetrain, lateral_controller, angular_controller, sensors, &throttle_curve, &steer_curve) |
Variables | |
pros::vision_signature_s_t | RED_SIG |
pros::vision_signature_s_t | BLUE_SIG |
pros::vision_signature_s_t | BLUE_DARK_SIG |
lemlib::TrackingWheel horizontal_tracking_wheel & | horizontal_sensor |
lemlib::TrackingWheel vertical_tracking_wheel & | lateral_sensor |
lemlib::Drivetrain | drivetrain |
lemlib::OdomSensors | sensors |
lemlib::ControllerSettings Robot::Globals::angular_controller | ( | 1. | 73, |
0 | , | ||
9 | , | ||
3 | , | ||
1 | , | ||
100 | , | ||
2 | , | ||
500 | , | ||
0 | ) |
Referenced by chassis().
lemlib::Chassis Robot::Globals::chassis | ( | drivetrain | , |
lateral_controller | , | ||
angular_controller | , | ||
sensors | , | ||
& | throttle_curve, | ||
& | steer_curve ) |
References angular_controller(), drivetrain, lateral_controller(), sensors, steer_curve(), and throttle_curve().
Referenced by Robot::Drivetrain::ArcadeDrive(), Robot::Drivetrain::CurvatureDrive(), initialize(), and Robot::Drivetrain::TankDrive().
pros::Vision Robot::Globals::colorSensor | ( | 4 | ) |
pros::Controller Robot::Globals::controller | ( | pros::E_CONTROLLER_MASTER | ) |
pros::Distance Robot::Globals::distance_sensor | ( | 10 | ) |
pros::MotorGroup Robot::Globals::drive_ | ( | {LeftFront.get_port(), RightFront.get_port(), LeftMid.get_port(), RightMid.get_port(), LeftBack.get_port(), RightBack.get_port()} | ) |
References LeftBack(), LeftFront(), LeftMid(), RightBack(), RightFront(), and RightMid().
pros::MotorGroup Robot::Globals::drive_left | ( | {LeftFront.get_port(), LeftMid.get_port(), LeftBack.get_port()} | ) |
References LeftBack(), LeftFront(), and LeftMid().
pros::MotorGroup Robot::Globals::drive_right | ( | {RightFront.get_port(), RightMid.get_port(), RightBack.get_port()} | ) |
References RightBack(), RightFront(), and RightMid().
pros::adi::Pneumatics Robot::Globals::HangControl | ( | 'C' | , |
false | ) |
Referenced by Robot::Hang::toggle().
pros::Motor Robot::Globals::HookMotor | ( | - | 2, |
pros::v5::MotorGears::green | , | ||
pros::v5::MotorUnits::degrees | ) |
Referenced by Robot::Intake::run().
pros::Rotation Robot::Globals::horizontal_sensor | ( | 17 | ) |
pros::Imu Robot::Globals::inertial_sensor | ( | 14 | ) |
pros::Motor Robot::Globals::IntakeMotor | ( | - | 1, |
pros::v5::MotorGears::blue | , | ||
pros::v5::MotorUnits::degrees | ) |
Referenced by Robot::Intake::run().
pros::Motor Robot::Globals::LadyBrownMotor | ( | 3 | , |
pros::v5::MotorGears::green | , | ||
pros::v5::MotorUnits::degrees | ) |
pros::adi::Pneumatics Robot::Globals::LatchControl | ( | 'A' | , |
false | ) |
Referenced by Robot::Latch::toggle().
lemlib::ControllerSettings Robot::Globals::lateral_controller | ( | 5. | 25, |
0 | , | ||
13 | , | ||
3 | , | ||
1 | , | ||
100 | , | ||
3 | , | ||
500 | , | ||
20 | ) |
Referenced by chassis().
pros::Rotation Robot::Globals::lateral_sensor | ( | 16 | ) |
pros::Motor Robot::Globals::LeftBack | ( | - | 18, |
pros::v5::MotorGears::blue | , | ||
pros::v5::MotorUnits::degrees | ) |
Referenced by drive_(), and drive_left().
pros::Motor Robot::Globals::LeftFront | ( | - | 19, |
pros::v5::MotorGears::blue | , | ||
pros::v5::MotorUnits::degrees | ) |
Referenced by drive_(), and drive_left().
pros::Motor Robot::Globals::LeftMid | ( | 20 | , |
pros::v5::MotorGears::blue | , | ||
pros::v5::MotorUnits::degrees | ) |
Referenced by drive_(), and drive_left().
pros::Controller Robot::Globals::partner | ( | pros::E_CONTROLLER_PARTNER | ) |
pros::Motor Robot::Globals::RightBack | ( | 12 | , |
pros::v5::MotorGears::blue | , | ||
pros::v5::MotorUnits::degrees | ) |
Referenced by drive_(), and drive_right().
pros::Motor Robot::Globals::RightFront | ( | 13 | , |
pros::v5::MotorGears::blue | , | ||
pros::v5::MotorUnits::degrees | ) |
Referenced by drive_(), and drive_right().
pros::Motor Robot::Globals::RightMid | ( | - | 11, |
pros::v5::MotorGears::blue | , | ||
pros::v5::MotorUnits::degrees | ) |
Referenced by drive_(), and drive_right().
lemlib::ExpoDriveCurve Robot::Globals::steer_curve | ( | 3 | , |
17 | , | ||
1. | 01 ) |
Referenced by chassis().
pros::adi::Pneumatics Robot::Globals::SweeperControl | ( | 'B' | , |
false | ) |
Referenced by Robot::Sweeper::run().
lemlib::ExpoDriveCurve Robot::Globals::throttle_curve | ( | 3 | , |
15 | , | ||
1. | 019 ) |
Referenced by chassis().
pros::vision_signature_s_t Robot::Globals::BLUE_DARK_SIG |
Definition at line 54 of file globals.cpp.
pros::vision_signature_s_t Robot::Globals::BLUE_SIG |
Definition at line 52 of file globals.cpp.
lemlib::Drivetrain Robot::Globals::drivetrain |
Definition at line 69 of file globals.cpp.
Referenced by chassis().
lemlib::TrackingWheel horizontal_tracking_wheel& Robot::Globals::horizontal_sensor |
Definition at line 64 of file globals.cpp.
Referenced by initialize().
lemlib::TrackingWheel vertical_tracking_wheel& Robot::Globals::lateral_sensor |
Definition at line 65 of file globals.cpp.
Referenced by initialize().
pros::vision_signature_s_t Robot::Globals::RED_SIG |
Definition at line 49 of file globals.cpp.
lemlib::OdomSensors Robot::Globals::sensors |
Definition at line 78 of file globals.cpp.
Referenced by chassis().