Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
f1a5185
Launcher Subsystem and Command
MukhilAnanth Jan 12, 2026
232301b
update
Jan 17, 2026
2933f39
More updates to Climb system
Jan 17, 2026
fa71b2f
Sleep update (ERROR, NOT FULLY MADE)
Jan 17, 2026
e7283d5
if Update and Wait Command addition
Jan 17, 2026
ef9c874
If command updated with: DriverStation.isAutonomousEnabled()
Jan 17, 2026
0c8177c
Comments update (no major code revamp)
Jan 17, 2026
b896de9
Number change
Jan 17, 2026
3500169
E Date
Jan 22, 2026
878cbac
Subsystem -> Command migration
Jan 22, 2026
f8e799f
NOT FULLY MADE
Jan 22, 2026
5ca8075
Fixed Major bugs (Finalizable)
Jan 22, 2026
c1b2a67
addRequirements Update
Jan 22, 2026
9a02a4e
Very small edit :>
Jan 23, 2026
b14598f
Removal request
Jan 23, 2026
1125b88
WaitCommand() Transistion (Doing command groups next)
Jan 23, 2026
8e8d4ea
Trying to make a kry press :>
Jan 24, 2026
3b7eb0e
There only 2 errors in this ( Trying to import XBox controller :> )
Jan 24, 2026
881df24
I'm crying inside
Jan 29, 2026
2d4e356
Update that does stuff :>
Jan 30, 2026
23bb8c6
Smallest update
Jan 30, 2026
32ec589
Merge remote-tracking branch 'origin/Turret-Branch' into Climber
Jan 30, 2026
fee3424
Local Merging
Jan 30, 2026
e313a22
Climber command Update
Jan 30, 2026
f888335
Stupid file update that does stupid stuff
Jan 30, 2026
736a7c0
e
Jan 30, 2026
d35b3b5
E file adding :>
Jan 31, 2026
0b7112b
Motor name request
Jan 31, 2026
4da8c14
Code is pain, Hold off on merge
Jan 31, 2026
d4626f1
My problems have been solved
Jan 31, 2026
bd29ba2
Final Touches
Jan 31, 2026
0b2b29d
Constants edit
Jan 31, 2026
e0058a7
adding new stuff :>
Jan 31, 2026
80ba8ef
My system is to imbeded to revert.
Feb 3, 2026
3a1bd24
Intake updates from now on, Climb code final.
Feb 5, 2026
9446774
EMS (Emergency Management System) Added to Intake
Feb 5, 2026
0b7c482
Robot Container stuff :>
Feb 5, 2026
b7fed99
ChatGPT to the rescure :]
Feb 6, 2026
106a221
Text stuff :>
Feb 6, 2026
d136e80
More unessacary code
Feb 6, 2026
e9a285e
EEEEEEEEEEEEEEEEEEEEEEEE
Feb 6, 2026
d096dec
Create README.md
CNrailfaner4039 Feb 6, 2026
aff3a35
Update README.md
CNrailfaner4039 Feb 6, 2026
6dd50c4
Merge branch 'main' into Climber
CNrailfaner4039 Feb 7, 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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The version was made by Levi L (or CNrailfaner4039 on YouTube ©)
Other people assisted in the creation on this file (Located in the copyright and colaberators)
92 changes: 92 additions & 0 deletions simgui-ds.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
{
"keyboardJoysticks": [
{
"axisConfig": [
{
"decKey": 65,
"incKey": 68
},
{
"decKey": 87,
"incKey": 83
},
{
"decKey": 69,
"decayRate": 0.0,
"incKey": 82,
"keyRate": 0.009999999776482582
}
],
"axisCount": 3,
"buttonCount": 4,
"buttonKeys": [
90,
88,
67,
86
],
"povConfig": [
{
"key0": 328,
"key135": 323,
"key180": 322,
"key225": 321,
"key270": 324,
"key315": 327,
"key45": 329,
"key90": 326
}
],
"povCount": 1
},
{
"axisConfig": [
{
"decKey": 74,
"incKey": 76
},
{
"decKey": 73,
"incKey": 75
}
],
"axisCount": 2,
"buttonCount": 4,
"buttonKeys": [
77,
44,
46,
47
],
"povCount": 0
},
{
"axisConfig": [
{
"decKey": 263,
"incKey": 262
},
{
"decKey": 265,
"incKey": 264
}
],
"axisCount": 2,
"buttonCount": 6,
"buttonKeys": [
260,
268,
266,
261,
269,
267
],
"povCount": 0
},
{
"axisCount": 0,
"buttonCount": 0,
"povCount": 0
}
]
}
8 changes: 4 additions & 4 deletions src/main/java/frc/robot/BuildConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
* Automatically generated file containing build version information.
*/
public final class BuildConstants {
public static final String MAVEN_GROUP = "";
public static final String MAVEN_GROUP = "2530";
public static final String MAVEN_NAME = "RobotCode2026";
public static final String VERSION = "unspecified";
public static final String VERSION = "ThE mOsT rEcEnT oNe";
public static final int GIT_REVISION = 5;
public static final String GIT_SHA = "bccd7eb881eba8a2c445853e5af72829a1aaac19";
public static final String GIT_DATE = "2026-01-10 09:47:49 CST";
public static final String GIT_BRANCH = "updating";
public static final String GIT_DATE = "2026-01-30 09:14:49 CST";
public static final String GIT_BRANCH = "Climber";
public static final String BUILD_DATE = "2026-01-12 20:55:55 CST";
public static final long BUILD_UNIX_TIME = 1768272955275L;
public static final int DIRTY = 1;
Expand Down
105 changes: 100 additions & 5 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,111 @@ public static Alliance getAlliance() {
}
}

public static class SwerveModuleConstants {

// TODO: UPDATE BASED ON REAL ROBOT
public static final double WHEEL_DIAMETER = Units.inchesToMeters(3.85); // ~4 in
public static final double STEERING_GEAR_RATIO = 1.d / (150d / 7d);

// TODO: UPDATE BASED ON REAL ROBOT
// This is for L2 modules with 16T pinions
public static final double DRIVE_GEAR_RATIO = (1.d / 6.75d);

// TODO: UPDATE BASED ON REAL ROBOT
public static final double DRIVE_ROTATION_TO_METER = DRIVE_GEAR_RATIO * Math.PI * WHEEL_DIAMETER;
public static final double STEER_ROTATION_TO_RADIANS = STEERING_GEAR_RATIO * Math.PI * 2d;
public static final double DRIVE_METERS_PER_MINUTE = DRIVE_ROTATION_TO_METER / 60d;
public static final double STEER_RADIANS_PER_MINUTE = STEER_ROTATION_TO_RADIANS / 60d;
public static final double STEER_MAX_RAD_SEC = 0.8 * STEERING_GEAR_RATIO * ((5880.f * 2.f * Math.PI) / 60.f);

// TODO: UPDATE BASED ON REAL ROBOT
public static final double WHEEL_FRICTION_COEFFICIENT = 1.2;

// TODO: UPDATE BASED ON REAL ROBOT
public static final double MODULE_KP = 0.46368;
public static final double MODULE_KD = 0.0050806;

// --------- Front Left Module --------- \\
public static final int FL_DRIVE_ID = 10;
public static final int FL_STEER_ID = 11;
public static final int FL_ABSOLUTE_ENCODER_PORT = 30;

// TODO: UPDATE BASED ON REAL ROBOT
public static final double FL_OFFSET_RADIANS = Units.rotationsToRadians(0);
public static final boolean FL_ABSOLUTE_ENCODER_REVERSED = false;
public static final boolean FL_MOTOR_REVERSED = true;
public static final boolean FL_STEERING_MOTOR_REVERSED = true;

// --------- Front Right Module --------- \\
public static final int FR_DRIVE_ID = 12;
public static final int FR_STEER_ID = 13;
public static final int FR_ABSOLUTE_ENCODER_PORT = 31;

// TODO: UPDATE BASED ON REAL ROBOT
public static final double FR_OFFSET_RADIANS = Units.rotationsToRadians(0);
public static final boolean FR_ABSOLUTE_ENCODER_REVERSED = false;
public static final boolean FR_MOTOR_REVERSED = true;
public static final boolean FR_STEERING_MOTOR_REVERSED = true;

// --------- Back Right Module --------- \\
public static final int BR_DRIVE_ID = 14;
public static final int BR_STEER_ID = 15;
public static final int BR_ABSOLUTE_ENCODER_PORT = 32;

// TODO: UPDATE BASED ON REAL ROBOT
public static final double BR_OFFSET_RADIANS = Units.rotationsToRadians(0);
public static final boolean BR_ABSOLUTE_ENCODER_REVERSED = false;
public static final boolean BR_MOTOR_REVERSED = true;
public static final boolean BR_STEERING_MOTOR_REVERSED = true;

// --------- Back Left Module --------- \\
public static final int BL_DRIVE_ID = 16;
public static final int BL_STEER_ID = 17;
public static final int BL_ABSOLUTE_ENCODER_PORT = 33;

// TODO: UPDATE BASED ON REAL ROBOT
public static final double BL_OFFSET_RADIANS = Units.rotationsToRadians(0);
public static final boolean BL_ABSOLUTE_ENCODER_REVERSED = false;
public static final boolean BL_MOTOR_REVERSED = true;
public static final boolean BL_STEERING_MOTOR_REVERSED = true;
}



/*|-----------WARNING-----------------|
*|edit with caution, used in all subs|
*|-----------------------------------|
*|Motor Config (YOU HAVE BEEN WARNED)|
*|-----------------------------------|
*|edits can have catastafic falure---|
*|edits can have catastafic falures--|
*///|-----------WARNING-----------------|
//---Intake Motors---\\
public static class IntakeMotors {
//Intake motor 1
public static final int INTAKESUBSYSTEM_MOTOR = 4;//TODO: IDs and speeds need to be changed
public static final int INTAKESUBSYSTEM_MOTOR = 4;//TODO: IDs and speeds need to be changed. DONE: FALSE
public static final double INTAKE_SPEED = 0.6;
public static final int INTAKE_MOTOR1 = 5;
public static final double INTAKE_SPEED1 = 0.6;
//Pivot Motor for intake
public static final int INTAKE_PIVOT_MOTOR = 5;
public static final double INTAKE_PIVOT_SPEED = 0.6;
}
//----Climb Motors---\\
public static class ClimbMotors {
public static final int CLIMBSUBSYSTEM_MOTOR = 6;//TODO: IDs and speeds need to be changed
public static final double CLIMB_SPEED = 0.6;
}

//---------Speed Def---------\\
//time = seconds doing nothing\\
public static class Sleep {
public static final double up = 3; //TODO: time ajustment. (Time is Seconds)
public static final double finishUP = 1;
public static final double down = 1;
public static final double finishDN = 3;
}


public static class DriveConstants {
public static final class DriveConstants {
// TODO: Make sure that this is correct - this is from the SDS website but needs
// empirical verification
Expand Down Expand Up @@ -268,6 +358,11 @@ public static final class PoseConstants {
put(i, TAG_LAYOUT.getTagPose(i + 1).get().toPose2d());
}
}};

}
}
public static final class TurretConstants {
// TODO: UPDATE BASED ON REAL ROBOT
public static final int FlyWheelID = 20;
public static final double FlyWheelSpeed = 0.3;
public static final double FlyWheelDiameterMeters = Units.inchesToMeters(4);
}
}
4 changes: 4 additions & 0 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

package frc.robot;

import java.util.function.BooleanSupplier;

import org.littletonrobotics.urcl.URCL;

import com.ctre.phoenix6.SignalLogger;
Expand Down Expand Up @@ -129,6 +131,8 @@ public void disabledPeriodic() {

}



/**
* This autonomous runs the autonomous command selected by your
* {@link RobotContainer} class.
Expand Down
Loading