![]() |
1516X Push Back 1.0
1516X's robot code for the 2025-2026 VEX Robotics Competition
|
#include "main.h"#include "globals.h"#include "liblvgl/core/lv_obj_pos.h"#include "auton/autonRoutines.h"#include "pros/misc.h"#include "pros/misc.hpp"#include "robodash/views/image.hpp"#include "robodash/views/selector.hpp"#include "colorSort.h"#include "warnings.h"#include <cstdint>#include <string>#include "MCL.h"#include "distanceReset.h"#include "auton/autonFunctions.h"#include "motorDashboard.h"#include "IntakeAntiJam.h"Go to the source code of this file.
Functions | |
| LV_IMG_DECLARE (callogo) | |
| static void | update_alliance_btn (lv_obj_t *btn, Color newColor) |
| static void | alliance_btn_event_handler (lv_event_t *e) |
| void | create_alliance_selector () |
| rd::Selector | selector ({ {"Right 7 Split", right_auton_split}, {"Right 7 Wing", right_7_wing}, {"Right Rush", right_rush}, {"Left 7 Block", left_auton_split}, {"Left Rush", left_rush}, {"AWP", awp_auton}, {"Skills", skills_auton}, {"Carry", carry_auton} }) |
| void | auton_check (std::optional< rd::Selector::routine_t > auton) |
| void | initialize () |
| void | disabled () |
| void | competition_initialize () |
| void | autonomous () |
| float | dynamic_steer_curve (float throttle, float steer, float min_turn_scale=0.4) |
| void | opcontrol () |
Variables | |
| rd::Console | console |
| rd::Image | image = rd::Image(&callogo, "logo") |
|
static |
Definition at line 40 of file main.cpp.
References allianceColor, and update_alliance_btn().
Referenced by create_alliance_selector().
| void auton_check | ( | std::optional< rd::Selector::routine_t > | auton | ) |
Definition at line 84 of file main.cpp.
References auton_selected, intake_lift(), and selector().
Referenced by initialize().
| void autonomous | ( | ) |
Definition at line 150 of file main.cpp.
References selector().
| void competition_initialize | ( | ) |
| void create_alliance_selector | ( | ) |
Definition at line 55 of file main.cpp.
References alliance_btn_event_handler().
Referenced by initialize().
| void disabled | ( | ) |
| float dynamic_steer_curve | ( | float | throttle, |
| float | steer, | ||
| float | min_turn_scale = 0.4 ) |
Definition at line 171 of file main.cpp.
Referenced by opcontrol().
| void initialize | ( | ) |
Definition at line 94 of file main.cpp.
References antiJamTask(), auton_check(), chassis(), console, create_alliance_selector(), distance_sensor_disconnect_warning(), init_motor_dashboard(), motor_disconnect_warning(), and selector().
| void opcontrol | ( | ) |
Definition at line 183 of file main.cpp.
References abortAuton, allianceColor, antiJamEnabled, chassis(), controller(), descore(), dynamic_steer_curve(), image, imu(), intake(), intake_lift(), intake_stop(), jamManager(), leftMotors, liveReplay, matchloader(), mid_descore(), midgoal_first, outtake(), outtakeMotor(), rightMotors(), score_longgoal(), score_midgoal(), and storageMotor().
| rd::Selector selector | ( | { {"Right 7 Split", right_auton_split}, {"Right 7 Wing", right_7_wing}, {"Right Rush", right_rush}, {"Left 7 Block", left_auton_split}, {"Left Rush", left_rush}, {"AWP", awp_auton}, {"Skills", skills_auton}, {"Carry", carry_auton} } | ) |
References awp_auton(), carry_auton(), left_auton_split(), left_rush(), right_7_wing(), right_auton_split(), right_rush(), and skills_auton().
Referenced by auton_check(), autonomous(), competition_initialize(), disabled(), and initialize().
|
static |
Definition at line 24 of file main.cpp.
Referenced by alliance_btn_event_handler().
| rd::Console console |
Definition at line 81 of file main.cpp.
Referenced by initialize().
| rd::Image image = rd::Image(&callogo, "logo") |
Definition at line 82 of file main.cpp.
Referenced by opcontrol().