Skip to content
This repository was archived by the owner on May 1, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
bf43822
rumble-fix
RainbowMarsussy Sep 26, 2025
5c82ba6
Pistons Update 2
shaylayle Sep 26, 2025
f972748
piston change
RainbowMarsussy Sep 26, 2025
b3c7753
Piston 3
shaylayle Sep 26, 2025
70bf7ea
Merge branch 'Piston' of https://github.com/Area-53-Robotics/53C into…
shaylayle Sep 26, 2025
35cd99e
Piston 4
shaylayle Sep 26, 2025
f5f2da7
e
RainbowMarsussy Sep 26, 2025
293aec2
Piston Update
shaylayle Sep 27, 2025
107e213
Piston Fix
RainbowMarsussy Sep 27, 2025
6b1bf18
Silly Auton
RainbowMarsussy Sep 27, 2025
51106b1
Silly Auton Correct
RainbowMarsussy Sep 27, 2025
f6bbe11
Autonomous Attempt
RainbowMarsussy Sep 27, 2025
e93ae90
PID - Angular Complete
RainbowMarsussy Sep 28, 2025
c656b0d
Auton Cord Attempt Bug Fix
RainbowMarsussy Oct 3, 2025
193de72
CORDINATES yipeee
RainbowMarsussy Oct 3, 2025
0e293d0
Auton Start (3 block) high goal right
mariellamcelhenny-cpu Oct 3, 2025
b554550
Auton Restart - PID Retune
RainbowMarsussy Oct 4, 2025
6b7f2ea
PID Retube
RainbowMarsussy Oct 6, 2025
c6b52be
Auton
RainbowMarsussy Oct 10, 2025
8e4b30d
Sigma
RainbowMarsussy Oct 24, 2025
704d25e
Sigma
RainbowMarsussy Oct 24, 2025
6457c02
auton left
mariellamcelhenny-cpu Oct 25, 2025
3b1d039
tournament changes
mariellamcelhenny-cpu Oct 26, 2025
6ae50c4
skills auton 1
mariellamcelhenny-cpu Nov 1, 2025
19c5fab
skills auton 2
mariellamcelhenny-cpu Nov 1, 2025
b5fdac7
skills
shaylayle Nov 3, 2025
e7e0821
Working on skills auton
shaylayle Nov 7, 2025
8fc27ef
Auton entries
shaylayle Nov 8, 2025
7b74607
skills 1
shaylayle Nov 8, 2025
eef22f9
skills
shaylayle Nov 8, 2025
f96d550
AOE auton
shaylayle Nov 8, 2025
12da8f6
Robot V2 Intake Changes
shaylayle Nov 13, 2025
639a368
Robot V2 Motor changes
shaylayle Nov 13, 2025
7a76a2e
Robot V2 Organization
shaylayle Nov 14, 2025
69bca1c
Piston Update & R1 Edit
RainbowMarsussy Nov 15, 2025
b9e1269
~ Auton Intake Functions & Piston Variable Edits ~
shaylayle Nov 15, 2025
edacb66
Remove Aligner Piston
shaylayle Nov 15, 2025
a63f92f
Implementing Descoring Mechanism
shaylayle Nov 15, 2025
8f37c16
Piston Changes & Auton Mapping
shaylayle Nov 15, 2025
0ce7220
Middle Outtake Piston Edit
shaylayle Nov 15, 2025
8564729
IMU Changes
shaylayle Nov 16, 2025
64c5038
Rotational PID - Auton Issue NEED FIX ASAP
RainbowMarsussy Nov 17, 2025
35a29c8
auton attempt
RainbowMarsussy Nov 17, 2025
b8943c1
pid UPDATE
RainbowMarsussy Nov 17, 2025
043b147
auton
shaylayle Nov 18, 2025
cdbd860
auton
shaylayle Nov 19, 2025
f64c109
Auton & Middle Outtake Pistons
shaylayle Nov 21, 2025
4c473e2
Removed Optical Sensor Code & Cleanup and Management
shaylayle Nov 21, 2025
f0f5d67
auton
shaylayle Nov 22, 2025
15e8ab3
Capital Beltway goated program
shaylayle Nov 23, 2025
dc883ed
auton right side wing
shaylayle Dec 12, 2025
afec0d1
auton right side
shaylayle Dec 13, 2025
3d548ee
auton right again
shaylayle Dec 13, 2025
9e69eb1
stampede comp
shaylayle Dec 14, 2025
9d2ba1b
auton left & right
shaylayle Dec 20, 2025
7f54fc7
Organizing
shaylayle Dec 20, 2025
230512f
hi
shaylayle Jan 8, 2026
22b51a0
pid tuning
shaylayle Jan 9, 2026
95cae55
hello
shaylayle Jan 9, 2026
0302317
pros mu
RainbowMarsussy Jan 9, 2026
105f49c
organizing
shaylayle Jan 13, 2026
735d6b7
Added auton functions + left pseudocode
shaylayle Jan 13, 2026
76d4643
Organizing
shaylayle Jan 13, 2026
36f6100
Middle outtake auton adjustments
shaylayle Jan 14, 2026
ad1fe54
pre cardinal classic
shaylayle Jan 17, 2026
c088dd7
pre pre cardinal classic
shaylayle Jan 17, 2026
dadb01f
post cardinal classic
shaylayle Jan 17, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 35 additions & 26 deletions 53C_New Code/include/globals.hpp
Original file line number Diff line number Diff line change
@@ -1,67 +1,76 @@
#include "lemlib/chassis/chassis.hpp"
#include "lemlib/api.hpp"
#include "pros/adi.h"
#include "pros/adi.hpp"
#include "pros/rotation.hpp"
#include <new>

//controller
inline pros::Controller controller(pros::E_CONTROLLER_MASTER);

inline pros::Controller master(pros::E_CONTROLLER_MASTER);
inline pros::Motor bottomMotor(2, pros::MotorGearset::green);
inline pros::Motor topMotor(15, pros::MotorGearset::green);
inline pros::Motor hopperMotor(4, pros::MotorGearset::green);
inline pros::Motor bottomMotor(1, pros::MotorGearset::green);
inline pros::Motor topMotor(2, pros::MotorGearset::green);

/*** Drivetain ***/
inline pros::Imu imu(1);
/*** Drivetrain ***/
inline pros::Imu imu(3);

inline pros::MotorGroup leftMotors({-11, -12, 13},
inline pros::MotorGroup leftMotors({-11, -12, -13},
pros::MotorGearset::blue);
// Creates a motor group for the left side of the drive train

inline pros::MotorGroup rightMotors({18, 19, -20},
inline pros::MotorGroup rightMotors({18, 19, 20},
pros::MotorGearset::blue);
// Creates a motor group for the right side of the drive train

inline lemlib::Drivetrain drivetrain(&leftMotors, // left motor group
&rightMotors, // right motor group
11.5, // track width
lemlib::Omniwheel::NEW_325, // wheel size
lemlib::Omniwheel::NEW_275, // wheel size
450, // drivetrain rpm
2 // horizontal drift
8 // horizontal drift
);


/* * * Sensors * * */

inline lemlib::OdomSensors sensors(nullptr, // vertical tracking wheel 1
inline pros::Rotation verticalRotation(-17); // port, reversed
inline lemlib::TrackingWheel vertical_tracking_wheel(&verticalRotation, lemlib::Omniwheel::NEW_275, 0.5);

inline lemlib::OdomSensors sensors(&vertical_tracking_wheel, // vertical tracking wheel 1
nullptr, // vertical tracking wheel 2
nullptr, // horizontal tracking wheel 1
nullptr, // horizontal tracking wheel 2
&imu // inertial sensor
);



/* * * Motion Controllers * * */
inline lemlib::ControllerSettings lateral_controller(2, // proportional gain (kP)
inline lemlib::ControllerSettings lateral_controller(
10, // proportional gain (kP)
0, // integral gain (kI)
10, // derivative gain (kD)
35, // derivative gain (kD)
3, // anti windup
1, // small error range, in inches
100, // small error range timeout, in milliseconds
3, // large error range, in inches
500, // large error range timeout, in milliseconds
0 // maximum acceleration (slew)
20 // maximum acceleration (slew)
);

inline lemlib::ControllerSettings angular_controller(3, // proportional gain (kP)
0, // integral gain (kI)
18, // derivative gain (kD)
0, // anti windup
0, // small error range, in inches
0, // small error range timeout, in milliseconds
0, // large error range, in inches
0, // large error range timeout, in milliseconds
inline lemlib::ControllerSettings angular_controller(
4, // proportional gain (kP)
-0.1, // integral gain (kI)
38, // derivative gain (kD)
4.0867, // anti windup
1, // small error range, in inches
100, // small error range timeout, in milliseconds
3, // large error range, in inches
500, // large error range timeout, in milliseconds
0 // maximum acceleration (slew)
);


/* * * Drive Curve * * */
// input curve for throttle input during driver control

Expand All @@ -86,7 +95,7 @@ inline lemlib::Chassis chassis(drivetrain, // drivetrain settings
//&steer_curve
);




// inline pros::Optical myOptical(3);
// Set these to the correct ports for the pistons
inline pros::adi::Pneumatics pistonE('E', false); /* ~ Middle Outtake Piston ~ */
inline pros::adi::Pneumatics pistonD('D', false); /* ~ Scapper Piston ~ */
inline pros::adi::Pneumatics pistonA('A', false); /* ~ Descoring Mech Piston ~ */
7 changes: 3 additions & 4 deletions 53C_New Code/include/variable.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@
extern pros::Controller controller;
extern pros::Motor bottomMotor;
extern pros::Motor topMotor;
extern pros::Motor hopperMotor;
extern bool tank;
extern int leftX;
extern int leftY;
extern int rightX;
extern int rightY;
extern lemlib::Chassis chassis;



extern pros::adi::DigitalOut PistonE;
extern pros::adi::DigitalOut PistonD;
extern pros::adi::DigitalOut PistonA;
Loading