Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
f692b45
elastic competition dashboard
VictorChen1-1 Apr 8, 2026
f8f66c8
Merge branch 'main' into timer-set-on-elastic
VictorChen1-1 Apr 8, 2026
686ea2d
Merge branch 'main' into timer-set-on-elastic
VictorChen1-1 Apr 9, 2026
b52601b
detector for is hood down or not
VictorChen1-1 Apr 9, 2026
f139200
Merge branch 'main' into timer-set-on-elastic
VictorChen1-1 Apr 9, 2026
95e254a
Merge branch 'main' into timer-set-on-elastic
VictorChen1-1 Apr 9, 2026
cde9c6c
Merge branch 'main' of https://github.com/Team488/TeamXbot2026 into t…
VictorChen1-1 Apr 9, 2026
6f564dc
fix merge conflicts
VictorChen1-1 Apr 9, 2026
2ea7f93
Merge branch 'timer-set-on-elastic' of https://github.com/Team488/Tea…
VictorChen1-1 Apr 9, 2026
feba9fd
have a blue and red alliance competition file
VictorChen1-1 Apr 9, 2026
55f6719
Merge branch 'main' into timer-set-on-elastic
VictorChen1-1 Apr 9, 2026
2142b7f
Merge branch 'main' into timer-set-on-elastic
VictorChen1-1 Apr 10, 2026
2c23914
finished autonomous menu
VictorChen1-1 Apr 10, 2026
22fa617
Merge branch 'main' into timer-set-on-elastic
VictorChen1-1 Apr 10, 2026
fecc467
Merge branch 'main' into timer-set-on-elastic
VictorChen1-1 Apr 10, 2026
fac440b
depo auto :)
VictorChen1-1 Apr 10, 2026
762e8d0
Update Robot.java
VictorChen1-1 Apr 10, 2026
38cf97b
removed auto select from robot.java and added it to operator command map
VictorChen1-1 Apr 10, 2026
bc66366
make command for hubtodepototower
VictorChen1-1 Apr 10, 2026
68b0218
elastic update
VictorChen1-1 Apr 10, 2026
4c8720a
Merge branch 'main' of ssh://ssh.github.com:443/Team488/TeamXbot2026 …
stephenjust Apr 10, 2026
8c76f47
Fixes so far
stephenjust Apr 10, 2026
3c34e7e
Fixes so far
stephenjust Apr 10, 2026
0ae3cb1
remove warmup shooter from depototower
VictorChen1-1 Apr 10, 2026
8d3bad4
remove another warmup shooter that caused the auto to not run
VictorChen1-1 Apr 10, 2026
7fa2a24
Merge branch 'main' into depo-outpost-auto-yay
VictorChen1-1 Apr 10, 2026
dd959d9
Merge branch 'main' into depo-outpost-auto-yay
VictorChen1-1 Apr 10, 2026
cb3e19c
Merge branch 'main' into depo-outpost-auto-yay
VictorChen1-1 Apr 11, 2026
3547a76
Merge branch 'main' into depo-outpost-auto-yay
VictorChen1-1 Apr 11, 2026
d03c913
update the hub depot tower auto with improvements
VictorChen1-1 Apr 11, 2026
ebdb5bb
Merge branch 'depo-outpost-auto-yay' of https://github.com/Team488/Te…
VictorChen1-1 Apr 11, 2026
7e69861
fixed auto
VictorChen1-1 Apr 11, 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
40 changes: 40 additions & 0 deletions elastic-layout/robot-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,46 @@
"show_type": true,
"maximize_button_space": false
}
},
{
"title": "DeviceHealth",
"x": 1152.0,
"y": 128.0,
"width": 256.0,
"height": 384.0,
"type": "Alerts",
"properties": {
"topic": "/AdvantageKit/RealOutputs/DeviceHealth",
"period": 0.06
}
},
{
"title": "Hub to Depo to Tower Auto",
"x": 384.0,
"y": 512.0,
"width": 256.0,
"height": 128.0,
"type": "Command",
"properties": {
"topic": "/SmartDashboard/Hub to Depo to Tower Auto",
"period": 0.06,
"show_type": true,
"maximize_button_space": false
}
},
{
"title": "Normal Bump Auto Right",
"x": 640.0,
"y": 512.0,
"width": 256.0,
"height": 128.0,
"type": "Command",
"properties": {
"topic": "/SmartDashboard/Normal Bump Auto Right",
"period": 0.06,
"show_type": true,
"maximize_button_space": false
}
}
]
}
Expand Down
87 changes: 87 additions & 0 deletions src/main/deploy/pathplanner/autos/HubToDepoToTower.auto
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"version": "2025.0",
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "deadline",
"data": {
"commands": [
{
"type": "wait",
"data": {
"waitTime": 4.0
}
},
{
"type": "named",
"data": {
"name": "WarmupShooterNear"
}
},
{
"type": "named",
"data": {
"name": "FireWhenShooterAndHoodReady"
}
}
]
}
},
{
"type": "named",
"data": {
"name": "IntakeDeployExtend"
}
},
{
"type": "wait",
"data": {
"waitTime": 0.1
}
},
{
"type": "path",
"data": {
"pathName": "HubToDepoPath"
}
},
{
"type": "parallel",
"data": {
"commands": []
}
},
{
"type": "path",
"data": {
"pathName": "DepoToTowerPath"
}
},
{
"type": "deadline",
"data": {
"commands": [
{
"type": "wait",
"data": {
"waitTime": 5.0
}
},
{
"type": "named",
"data": {
"name": "AimAndShootFromHere"
}
}
]
}
}
]
}
},
"resetOdom": true,
"folder": null,
"choreoAuto": false
}
54 changes: 54 additions & 0 deletions src/main/deploy/pathplanner/paths/BackUpFromHub.path
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"version": "2025.0",
"waypoints": [
{
"anchor": {
"x": 3.5574733096085422,
"y": 4.008102016607354
},
"prevControl": null,
"nextControl": {
"x": 3.073309608540926,
"y": 3.997342823250296
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 3.396,
"y": 5.095
},
"prevControl": {
"x": 3.5251957295373675,
"y": 5.955516014234875
},
"nextControl": null,
"isLocked": false,
"linkedName": null
}
],
"rotationTargets": [],
"constraintZones": [],
"pointTowardsZones": [],
"eventMarkers": [],
"globalConstraints": {
"maxVelocity": 2.5,
"maxAcceleration": 3.0,
"maxAngularVelocity": 540.0,
"maxAngularAcceleration": 720.0,
"nominalVoltage": 12.0,
"unlimited": false
},
"goalEndState": {
"velocity": 0,
"rotation": 179.19871266989296
},
"reversed": false,
"folder": null,
"idealStartingState": {
"velocity": 0,
"rotation": 179.33380002981693
},
"useDefaultConstraints": true
}
68 changes: 68 additions & 0 deletions src/main/deploy/pathplanner/paths/DepoToTowerPath.path
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"version": "2025.0",
"waypoints": [
{
"anchor": {
"x": 0.69,
"y": 5.945
},
"prevControl": null,
"nextControl": {
"x": 0.7610709357401938,
"y": 5.6925275432902565
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 1.0828588374851729,
"y": 4.933392645314354
},
"prevControl": {
"x": 0.9434991997628981,
"y": 5.4827779536440655
},
"nextControl": null,
"isLocked": false,
"linkedName": null
}
],
"rotationTargets": [],
"constraintZones": [
{
"name": "Constraints Zone",
"minWaypointRelativePos": 0.1,
"maxWaypointRelativePos": 0.4,
"constraints": {
"maxVelocity": 3.0,
"maxAcceleration": 3.0,
"maxAngularVelocity": 540.0,
"maxAngularAcceleration": 720.0,
"nominalVoltage": 12.0,
"unlimited": false
}
}
],
"pointTowardsZones": [],
"eventMarkers": [],
"globalConstraints": {
"maxVelocity": 2.5,
"maxAcceleration": 3.0,
"maxAngularVelocity": 540.0,
"maxAngularAcceleration": 720.0,
"nominalVoltage": 12.0,
"unlimited": false
},
"goalEndState": {
"velocity": 0,
"rotation": 180.0
},
"reversed": false,
"folder": null,
"idealStartingState": {
"velocity": 0,
"rotation": 180.0
},
"useDefaultConstraints": true
}
94 changes: 94 additions & 0 deletions src/main/deploy/pathplanner/paths/HubToDepoPath.path
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
{
"version": "2025.0",
"waypoints": [
{
"anchor": {
"x": 3.4,
"y": 5.152
},
"prevControl": null,
"nextControl": {
"x": 1.6746144721233698,
"y": 6.3966429418742585
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 0.69,
"y": 5.944756820877817
},
"prevControl": {
"x": 1.4323843416370106,
"y": 5.9124792408066424
},
"nextControl": null,
"isLocked": false,
"linkedName": null
}
],
"rotationTargets": [],
"constraintZones": [
{
"name": "Constraints Zone",
"minWaypointRelativePos": 0.821147356580429,
"maxWaypointRelativePos": 1.0,
"constraints": {
"maxVelocity": 2.5,
"maxAcceleration": 2.5,
"maxAngularVelocity": 540.0,
"maxAngularAcceleration": 720.0,
"nominalVoltage": 12.0,
"unlimited": false
}
},
{
"name": "Constraints Zone",
"minWaypointRelativePos": 0.09223847019122663,
"maxWaypointRelativePos": 0.3959505061867341,
"constraints": {
"maxVelocity": 3.0,
"maxAcceleration": 3.0,
"maxAngularVelocity": 540.0,
"maxAngularAcceleration": 720.0,
"nominalVoltage": 12.0,
"unlimited": false
}
}
],
"pointTowardsZones": [],
"eventMarkers": [
{
"name": "IntakeDeployExtend",
"waypointRelativePos": 0.10123734533183272,
"endWaypointRelativePos": null,
"command": null
},
{
"name": "CollectorIntake",
"waypointRelativePos": 0.33070866141732724,
"endWaypointRelativePos": 1.0,
"command": null
}
],
"globalConstraints": {
"maxVelocity": 2.5,
"maxAcceleration": 3.0,
"maxAngularVelocity": 540.0,
"maxAngularAcceleration": 720.0,
"nominalVoltage": 12.0,
"unlimited": false
},
"goalEndState": {
"velocity": 0,
"rotation": 180.0
},
"reversed": false,
"folder": null,
"idealStartingState": {
"velocity": 0,
"rotation": 132.20841353697384
},
"useDefaultConstraints": true
}
5 changes: 4 additions & 1 deletion src/main/java/competition/ConfigurePathPlannerLib.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.pathplanner.lib.config.RobotConfig;
import com.pathplanner.lib.controllers.PPHolonomicDriveController;
import competition.auto_programs.AimAndShootFromHereCommand;
import competition.command_groups.FireWhenShooterAndHoodReady;
import competition.command_groups.PrepareToShootCommandGroup;
import competition.command_groups.WaitForRotationAndHoodAndShooterToBeAtGoalCommandGroup;
import competition.subsystems.collector_intake.commands.CollectorIntakeCommand;
Expand All @@ -27,14 +28,16 @@ public ConfigurePathPlannerLib(PoseSubsystem pose, DriveSubsystem drive,
CollectorIntakeCommand collectorIntakeCommand,
AimAndShootFromHereCommand aimAndShootFromHereCommand,
PrepareToShootCommandGroup prepareToShootCommandGroup,
WaitForRotationAndHoodAndShooterToBeAtGoalCommandGroup waitForRotationAndHoodAndShooterToBeAtGoalCommandGroup
WaitForRotationAndHoodAndShooterToBeAtGoalCommandGroup waitForRotationAndHoodAndShooterToBeAtGoalCommandGroup,
FireWhenShooterAndHoodReady fireWhenShooterAndHoodReady
) {
NamedCommands.registerCommand("IntakeDeployExtend", intakeDeployExtendCommand);
NamedCommands.registerCommand("CollectorIntake", collectorIntakeCommand);
NamedCommands.registerCommand("AimAndShootFromHere", aimAndShootFromHereCommand);
NamedCommands.registerCommand("WaitForRotationAndHoodAndShooterToBeAtGoal", waitForRotationAndHoodAndShooterToBeAtGoalCommandGroup);

NamedCommands.registerCommand("WarmupShooterNear", prepareToShootCommandGroup.setPresetLocation(TrajectoriesCalculation.PresetShootingDistance.NEAR));
NamedCommands.registerCommand("FireWhenShooterAndHoodReady", fireWhenShooterAndHoodReady);

try {
AutoBuilder.configure(
Expand Down
Loading
Loading