![]() |
1516X Push Back 1.0
1516X's robot code for the 2025-2026 VEX Robotics Competition
|
#include "autonFunctions.h"#include "globals.h"#include "lemlib/util.hpp"#include "pros/rtos.hpp"#include <cmath>#include <sys/types.h>#include "colorSort.h"#include "IntakeAntiJam.h"Go to the source code of this file.
Functions | |
| void | antiJamTask () |
| void | intake (int power) |
| void | outtake (int power) |
| void | score_longgoal (int power, Color allianceColor) |
| void | intake_stop (bool hood_state) |
| void | score_midgoal (int power) |
| void | score_midgoal_auton (int power, Color allianceColor, int time) |
| void | score_longgoal_auton (int power, Color allianceColor, int time) |
| void | intake_to_basket () |
| void | matchload_state (bool state) |
| void | relativeMotion (float expected_x, float expected_y, float expected_theta, float distance, int timeout_ms, bool forw, float earlyExit) |
| double | calculateAngle (double robotHeading) |
Variables | |
| const VelocityControllerConfig | config |
| void antiJamTask | ( | ) |
Definition at line 21 of file autonFunctions.cpp.
References jamManager().
Referenced by initialize().
| double calculateAngle | ( | double | robotHeading | ) |
Definition at line 118 of file autonFunctions.cpp.
References frontDistance().
| void intake | ( | int | power | ) |
Definition at line 29 of file autonFunctions.cpp.
References hood(), and jamManager().
Referenced by awp_auton(), left_auton_split(), left_rush(), opcontrol(), right_7_hood(), right_7_wing(), right_auton_split(), right_rush(), and skills_auton().
| void intake_stop | ( | bool | hood_state | ) |
Definition at line 47 of file autonFunctions.cpp.
References hood(), intake_lift(), and jamManager().
Referenced by awp_auton(), left_auton_split(), opcontrol(), right_7_hood(), right_auton_split(), score_longgoal_auton(), score_midgoal_auton(), and skills_auton().
| void intake_to_basket | ( | ) |
Definition at line 89 of file autonFunctions.cpp.
| void matchload_state | ( | bool | state | ) |
Definition at line 94 of file autonFunctions.cpp.
References matchloader().
Referenced by awp_auton(), left_auton_split(), left_rush(), right_7_hood(), right_7_wing(), right_auton_split(), right_rush(), and skills_auton().
| void outtake | ( | int | power | ) |
Definition at line 35 of file autonFunctions.cpp.
References intake_lift(), and jamManager().
Referenced by opcontrol(), and right_auton_split().
| void relativeMotion | ( | float | expected_x, |
| float | expected_y, | ||
| float | expected_theta, | ||
| float | distance, | ||
| int | timeout_ms, | ||
| bool | forw, | ||
| float | earlyExit ) |
Definition at line 107 of file autonFunctions.cpp.
References chassis().
| void score_longgoal | ( | int | power, |
| Color | allianceColor ) |
Definition at line 41 of file autonFunctions.cpp.
References allianceColor, hood(), and jamManager().
Referenced by awp_auton(), and opcontrol().
| void score_longgoal_auton | ( | int | power, |
| Color | allianceColor, | ||
| int | time ) |
Definition at line 75 of file autonFunctions.cpp.
References allianceColor, chassis(), hood(), intake_stop(), and jamManager().
Referenced by awp_auton(), left_auton_split(), left_rush(), right_7_hood(), right_7_wing(), right_auton_split(), right_rush(), and skills_auton().
| void score_midgoal | ( | int | power | ) |
Definition at line 56 of file autonFunctions.cpp.
References jamManager().
Referenced by opcontrol().
| void score_midgoal_auton | ( | int | power, |
| Color | allianceColor, | ||
| int | time ) |
Definition at line 61 of file autonFunctions.cpp.
References allianceColor, chassis(), intake_stop(), and jamManager().
Referenced by awp_auton(), left_auton_split(), and skills_auton().
| const VelocityControllerConfig config |
Definition at line 11 of file autonFunctions.cpp.
Referenced by awp_auton(), left_auton_split(), left_rush(), ltv(), right_7_hood(), right_7_wing(), right_auton_split(), right_rush(), and skills_auton().