![]() |
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 "robodash/views/image.hpp"#include "robodash/views/selector.hpp"#include "colorSort.h"#include "warnings.h"#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 7 Hood", right_7_hood}, {"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, float max_turn_scale=1.5) |
| void | opcontrol () |
Variables | |
| rd::Console | console |
| rd::Image | image = rd::Image(&callogo, "logo") |
|
static |
Definition at line 34 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 79 of file main.cpp.
References intake_lift(), precompute_auton_paths(), and selector().
Referenced by initialize().
| void autonomous | ( | ) |
Definition at line 144 of file main.cpp.
References skills_auton().
| void create_alliance_selector | ( | ) |
Definition at line 49 of file main.cpp.
References alliance_btn_event_handler().
Referenced by initialize().
| float dynamic_steer_curve | ( | float | throttle, |
| float | steer, | ||
| float | min_turn_scale = 0.4, | ||
| float | max_turn_scale = 1.5 ) |
Definition at line 153 of file main.cpp.
Referenced by opcontrol().
| void initialize | ( | ) |
Definition at line 88 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 162 of file main.cpp.
References allianceColor, antiJamEnabled, chassis(), controller(), descore(), dynamic_steer_curve(), imu(), intake(), 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 7 Hood", right_7_hood}, {"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_hood(), right_7_wing(), right_auton_split(), right_rush(), and skills_auton().
Referenced by auton_check(), and initialize().
|
static |
Definition at line 18 of file main.cpp.
Referenced by alliance_btn_event_handler().
| rd::Console console |
Definition at line 76 of file main.cpp.
Referenced by initialize().