![]() |
1516X Push Back 1.0
1516X's robot code for the 2025-2026 VEX Robotics Competition
|
#include <sstream>#include <string>#include "lemlib/chassis/trackingWheel.hpp"#include "pros/ai_vision.h"#include "pros/ai_vision.hpp"#include "pros/colors.hpp"#include "pros/distance.hpp"#include "pros/misc.h"#include "lemlib/chassis/chassis.hpp"#include "pros/adi.h"#include "pros/adi.hpp"#include "pros/motors.h"#include "pros/optical.hpp"#include "pros/vision.hpp"#include "colorSort.h"Go to the source code of this file.
Functions | |
| pros::Controller | controller (pros::E_CONTROLLER_MASTER) |
| pros::MotorGroup | rightMotors ({-8, 10, 9}, pros::MotorGears::blue) |
| pros::MotorGroup | leftMotors ({1,-3,-2,}, pros::MotorGears::blue) |
| pros::Imu | imu (5) |
| pros::Rotation | horizontal_tracking_sensor (13) |
| pros::Rotation | vertical_tracking_sensor (-12) |
| lemlib::ControllerSettings | lateral_controller (16.5, 0, 120, 4, 0.5, 75, 3, 200, 25) |
| lemlib::ControllerSettings | angular_controller (3.2, 0.0, 25, 3, 0.5, 50, 3, 75, 0) |
| lemlib::ExpoDriveCurve | throttle_curve (20, 10, 1.01) |
| lemlib::ExpoDriveCurve | steer_curve (20, 10, 1.015) |
| lemlib::Chassis | chassis (drivebase, lateral_controller, angular_controller, sensors, &throttle_curve, &steer_curve) |
| pros::Motor | intakeMotor (18, pros::v5::MotorGears::blue) |
| pros::Motor | topMotor (19, pros::v5::MotorGears::blue) |
| pros::Distance | rightDistance (20) |
| pros::Distance | leftDistance (15) |
| pros::Distance | frontDistance (14) |
| pros::Distance | backDistance (16) |
| pros::Distance | frontDistance2 (17) |
| pros::adi::Pneumatics | trapDoor ('A', false) |
| pros::adi::Pneumatics | matchload ('E', false) |
| pros::adi::Pneumatics | basket ('F', false) |
| pros::adi::Pneumatics | descore ('D', false) |
| pros::adi::Pneumatics | intakeFunnel ('B', true) |
| pros::adi::Pneumatics | scoringBand ('C', false) |
| pros::adi::Pneumatics | blockBlocker ('G', false) |
| pros::Optical | color_sensor (7) |
| pros::Vision | vision_sensor (16) |
Variables | |
| lemlib::Drivetrain drivebase & | leftMotors |
| lemlib::TrackingWheel horizontal_tracking_wheel & | horizontal_tracking_sensor |
| lemlib::TrackingWheel vertical_tracking_wheel & | vertical_tracking_sensor |
| lemlib::OdomSensors sensors & | vertical_tracking_wheel |
| Color | allianceColor = Color::RED |
| bool | color_sort_enable = false |
| bool | midgoal_first = false |
| int | ramp_up_time = 0 |
| int | low_ramp_down_time = 0 |
| lemlib::ControllerSettings angular_controller | ( | 3. | 2, |
| 0. | 0, | ||
| 25 | , | ||
| 3 | , | ||
| 0. | 5, | ||
| 50 | , | ||
| 3 | , | ||
| 75 | , | ||
| 0 | ) |
| pros::Distance backDistance | ( | 16 | ) |
Referenced by calculateGlobalPosition(), distance_sensor_disconnect_warning(), distanceReset(), and distanceReset().
| pros::adi::Pneumatics basket | ( | 'F' | , |
| false | ) |
Referenced by opcontrol().
| pros::adi::Pneumatics blockBlocker | ( | 'G' | , |
| false | ) |
Referenced by opcontrol(), score_longgoal_auton(), and skills_auton().
| lemlib::Chassis chassis | ( | drivebase | , |
| lateral_controller | , | ||
| angular_controller | , | ||
| sensors | , | ||
| & | throttle_curve, | ||
| & | steer_curve ) |
References angular_controller, lateral_controller, sensors, steer_curve, and throttle_curve.
| pros::Optical color_sensor | ( | 7 | ) |
Referenced by get_color(), and initialize().
| pros::Controller controller | ( | pros::E_CONTROLLER_MASTER | ) |
| pros::adi::Pneumatics descore | ( | 'D' | , |
| false | ) |
Referenced by awp_auton(), elim_auton(), left_auton(), opcontrol(), right_auton(), and skills_auton().
| pros::Distance frontDistance | ( | 14 | ) |
| pros::Distance frontDistance2 | ( | 17 | ) |
Referenced by calculateAngle().
| pros::Rotation horizontal_tracking_sensor | ( | 13 | ) |
| pros::Imu imu | ( | 5 | ) |
| pros::adi::Pneumatics intakeFunnel | ( | 'B' | , |
| true | ) |
Referenced by intake(), opcontrol(), outtake(), and skills_auton().
| pros::Motor intakeMotor | ( | 18 | , |
| pros::v5::MotorGears::blue | ) |
Referenced by awp_auton(), intake(), intake_stop(), left_auton(), opcontrol(), outtake(), score_bottomgoal(), score_longgoal_auton(), and score_midgoal().
| lemlib::ControllerSettings lateral_controller | ( | 16. | 5, |
| 0 | , | ||
| 120 | , | ||
| 4 | , | ||
| 0. | 5, | ||
| 75 | , | ||
| 3 | , | ||
| 200 | , | ||
| 25 | ) |
| pros::Distance leftDistance | ( | 15 | ) |
Referenced by calculateGlobalPosition(), distance_sensor_disconnect_warning(), distanceReset(), and distanceReset().
| pros::MotorGroup leftMotors | ( | {1,-3,-2,} | , |
| pros::MotorGears::blue | ) |
| pros::adi::Pneumatics matchload | ( | 'E' | , |
| false | ) |
Referenced by crossBarrier(), elim_auton(), matchload_state(), opcontrol(), right_auton(), and skills_auton().
| pros::Distance rightDistance | ( | 20 | ) |
Referenced by calculateGlobalPosition(), distance_sensor_disconnect_warning(), distanceReset(), and distanceReset().
| pros::MotorGroup rightMotors | ( | {-8, 10, 9} | , |
| pros::MotorGears::blue | ) |
| pros::adi::Pneumatics scoringBand | ( | 'C' | , |
| false | ) |
Referenced by opcontrol(), and score_longgoal_auton().
| lemlib::ExpoDriveCurve steer_curve | ( | 20 | , |
| 10 | , | ||
| 1. | 015 ) |
| lemlib::ExpoDriveCurve throttle_curve | ( | 20 | , |
| 10 | , | ||
| 1. | 01 ) |
| pros::Motor topMotor | ( | 19 | , |
| pros::v5::MotorGears::blue | ) |
| pros::adi::Pneumatics trapDoor | ( | 'A' | , |
| false | ) |
Referenced by awp_auton(), elim_auton(), left_auton(), opcontrol(), resting_state(), right_auton(), score_midgoal(), and skills_auton().
| pros::Rotation vertical_tracking_sensor | ( | - | 12 | ) |
| pros::Vision vision_sensor | ( | 16 | ) |
Referenced by alignToGoal(), and calibrate_vision().
| Color allianceColor = Color::RED |
Definition at line 96 of file globals.cpp.
Referenced by alliance_btn_event_handler(), awp_auton(), colorSort(), colorSortFn(), elim_auton(), left_auton(), opcontrol(), right_auton(), score_longgoal(), score_longgoal_auton(), score_midgoal(), and score_midgoal_auton().
| bool color_sort_enable = false |
Definition at line 97 of file globals.cpp.
Referenced by awp_auton(), elim_auton(), left_auton(), opcontrol(), right_auton(), score_longgoal(), score_longgoal_auton(), score_midgoal(), and skills_auton().
| lemlib::TrackingWheel horizontal_tracking_wheel& horizontal_tracking_sensor |
Definition at line 35 of file globals.cpp.
| lemlib::Drivetrain drivebase & leftMotors |
Definition at line 22 of file globals.cpp.
Referenced by alignToGoal(), alignToGoal(), crossBarrier(), matchload_wiggle(), opcontrol(), score_longgoal_auton(), skills_auton(), and temp_warning().
| int low_ramp_down_time = 0 |
Definition at line 100 of file globals.cpp.
Referenced by opcontrol(), and outtake().
| bool midgoal_first = false |
Definition at line 98 of file globals.cpp.
Referenced by left_auton(), opcontrol(), score_midgoal(), and skills_auton().
| int ramp_up_time = 0 |
Definition at line 99 of file globals.cpp.
Referenced by opcontrol(), and score_midgoal().
| lemlib::TrackingWheel vertical_tracking_wheel& vertical_tracking_sensor |
Definition at line 36 of file globals.cpp.
| lemlib::OdomSensors sensors& vertical_tracking_wheel |
Definition at line 38 of file globals.cpp.