![]() |
1516X Push Back 1.0
1516X's robot code for the 2025-2026 VEX Robotics Competition
|
#include "main.h"#include "globals.h"#include "pros/misc.h"#include "lemlib/api.hpp"#include "lemlib/util.hpp"#include "pros/motors.h"#include "pros/rtos.hpp"#include <cmath>#include "colorSort.h"Go to the source code of this file.
Functions | |
| void | intake (int power=12000) |
| void | outtake (int power=12000) |
| void | score_bottomgoal (int power=12000) |
| void | score_longgoal (int power=12000, Color allianceColor=Color::RED) |
| void | intake_stop () |
| void | score_midgoal (int power=12000) |
| void | score_midgoal_auton (int power=12000, Color allianceColor=Color::RED, int time=-1) |
| void | score_longgoal_auton (int power=12000, Color allianceColor=Color::RED, int time=-1) |
| void | intake_to_basket () |
| void | resting_state (bool trapDoor_commanded=false) |
| void | matchload_state (bool state) |
| void | matchload_wiggle (int time=1000, int speed=100) |
| void | relativeMotion (float expected_x, float expected_y, float expected_theta, float distance, int timeout_ms, bool forw=true, float earlyExit=0) |
| void | matchload_counter (int balls, int time_ms) |
| void | alignToGoal (double targetAngle) |
| double | calculateAngle (double robotHeading) |
| void alignToGoal | ( | double | targetAngle | ) |
Definition at line 256 of file autonFunctions.cpp.
References chassis, leftMotors, and rightMotors.
| double calculateAngle | ( | double | robotHeading | ) |
Definition at line 281 of file autonFunctions.cpp.
References frontDistance(), and frontDistance2().
| void intake | ( | int | power = 12000 | ) |
Definition at line 11 of file autonFunctions.cpp.
References intakeFunnel(), intakeMotor(), and topMotor().
Referenced by awp_auton(), elim_auton(), intake_to_basket(), left_auton(), opcontrol(), right_auton(), score_longgoal(), score_midgoal_auton(), and skills_auton().
| void intake_stop | ( | ) |
Definition at line 56 of file autonFunctions.cpp.
References intakeMotor(), and topMotor().
Referenced by elim_auton(), left_auton(), matchload_counter(), resting_state(), right_auton(), score_longgoal_auton(), and skills_auton().
| void intake_to_basket | ( | ) |
Definition at line 167 of file autonFunctions.cpp.
References intake(), and topMotor().
| void matchload_counter | ( | int | balls, |
| int | time_ms ) |
Definition at line 228 of file autonFunctions.cpp.
References frontDistance(), and intake_stop().
| void matchload_state | ( | bool | state | ) |
Definition at line 181 of file autonFunctions.cpp.
References matchload().
Referenced by awp_auton(), elim_auton(), left_auton(), right_auton(), and skills_auton().
| void matchload_wiggle | ( | int | time = 1000, |
| int | speed = 100 ) |
Definition at line 190 of file autonFunctions.cpp.
References chassis, leftMotors, and rightMotors.
| void outtake | ( | int | power = 12000 | ) |
Definition at line 19 of file autonFunctions.cpp.
References intakeFunnel(), intakeMotor(), low_ramp_down_time, and topMotor().
Referenced by opcontrol(), and right_auton().
| void relativeMotion | ( | float | expected_x, |
| float | expected_y, | ||
| float | expected_theta, | ||
| float | distance, | ||
| int | timeout_ms, | ||
| bool | forw = true, | ||
| float | earlyExit = 0 ) |
Definition at line 217 of file autonFunctions.cpp.
References chassis.
Referenced by skills_auton().
| void resting_state | ( | bool | trapDoor_commanded = false | ) |
Definition at line 173 of file autonFunctions.cpp.
References intake_stop(), topMotor(), and trapDoor().
Referenced by opcontrol().
| void score_bottomgoal | ( | int | power = 12000 | ) |
Definition at line 35 of file autonFunctions.cpp.
References intakeMotor().
| void score_longgoal | ( | int | power = 12000, |
| Color | allianceColor = Color::RED ) |
Definition at line 40 of file autonFunctions.cpp.
References allianceColor, color_sort_enable, get_color(), intake(), and topMotor().
Referenced by opcontrol().
| void score_longgoal_auton | ( | int | power = 12000, |
| Color | allianceColor = Color::RED, | ||
| int | time = -1 ) |
Definition at line 133 of file autonFunctions.cpp.
References allianceColor, blockBlocker(), chassis, color_sort_enable, get_color(), intake_stop(), intakeMotor(), leftMotors, rightMotors, scoringBand(), and topMotor().
Referenced by awp_auton(), elim_auton(), left_auton(), right_auton(), and skills_auton().
| void score_midgoal | ( | int | power = 12000 | ) |
Definition at line 62 of file autonFunctions.cpp.
References allianceColor, color_sort_enable, get_color(), intakeMotor(), midgoal_first, ramp_up_time, topMotor(), and trapDoor().
Referenced by opcontrol().
| void score_midgoal_auton | ( | int | power = 12000, |
| Color | allianceColor = Color::RED, | ||
| int | time = -1 ) |
Definition at line 114 of file autonFunctions.cpp.
References allianceColor, chassis, intake(), and topMotor().
Referenced by skills_auton().