Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
spinup shooter for whole auto (only in 4 note rn)
Browse files Browse the repository at this point in the history
  • Loading branch information
spacey-sooty committed Aug 22, 2024
1 parent d84dce2 commit b2a6990
Show file tree
Hide file tree
Showing 13 changed files with 25,397 additions and 4,961 deletions.
3,176 changes: 3,176 additions & 0 deletions src/main/deploy/choreo/Amp1456.1.traj

Large diffs are not rendered by default.

3,176 changes: 3,176 additions & 0 deletions src/main/deploy/choreo/Amp1456.traj

Large diffs are not rendered by default.

677 changes: 677 additions & 0 deletions src/main/deploy/choreo/Centre14523.1.traj

Large diffs are not rendered by default.

1,412 changes: 1,412 additions & 0 deletions src/main/deploy/choreo/Centre14523.2.traj

Large diffs are not rendered by default.

488 changes: 488 additions & 0 deletions src/main/deploy/choreo/Centre14523.3.traj

Large diffs are not rendered by default.

1,412 changes: 1,412 additions & 0 deletions src/main/deploy/choreo/Centre14523.4.traj

Large diffs are not rendered by default.

698 changes: 698 additions & 0 deletions src/main/deploy/choreo/Centre14523.5.traj

Large diffs are not rendered by default.

4,583 changes: 4,583 additions & 0 deletions src/main/deploy/choreo/Centre14523.traj

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions src/main/deploy/pathplanner/autos/Amp1456.auto
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"version": 1.0,
"startingPose": {
"position": {
"x": 0.8108881115913391,
"y": 6.524380683898926
},
"rotation": 58.81503015813043
},
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "Arm"
}
},
{
"type": "path",
"data": {
"pathName": "Amp1456"
}
}
]
}
},
"folder": null,
"choreoAuto": true
}
25 changes: 25 additions & 0 deletions src/main/deploy/pathplanner/autos/Centre14523.auto
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"version": 1.0,
"startingPose": {
"position": {
"x": 1.233476996421814,
"y": 5.618833065032959
},
"rotation": 1.035051827793095e-26
},
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "Centre14523"
}
}
]
}
},
"folder": null,
"choreoAuto": true
}
114 changes: 70 additions & 44 deletions src/main/deploy/pathplanner/autos/Centre213.auto
Original file line number Diff line number Diff line change
Expand Up @@ -12,51 +12,77 @@
"data": {
"commands": [
{
"type": "named",
"type": "parallel",
"data": {
"name": "Arm"
}
},
{
"type": "named",
"data": {
"name": "Shoot"
}
},
{
"type": "path",
"data": {
"pathName": "Centre213.1"
}
},
{
"type": "named",
"data": {
"name": "Shoot"
}
},
{
"type": "path",
"data": {
"pathName": "Centre213.2"
}
},
{
"type": "named",
"data": {
"name": "Shoot"
}
},
{
"type": "path",
"data": {
"pathName": "Centre213.3"
}
},
{
"type": "named",
"data": {
"name": "Shoot"
"commands": [
{
"type": "named",
"data": {
"name": "Spinup"
}
},
{
"type": "sequential",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "Arm"
}
},
{
"type": "wait",
"data": {
"waitTime": 0.5
}
},
{
"type": "named",
"data": {
"name": "Passthrough"
}
},
{
"type": "path",
"data": {
"pathName": "Centre213.1"
}
},
{
"type": "named",
"data": {
"name": "Passthrough"
}
},
{
"type": "path",
"data": {
"pathName": "Centre213.2"
}
},
{
"type": "named",
"data": {
"name": "Passthrough"
}
},
{
"type": "path",
"data": {
"pathName": "Centre213.3"
}
},
{
"type": "named",
"data": {
"name": "Passthrough"
}
}
]
}
}
]
}
}
]
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,10 @@ public Robot() {
NamedCommands.registerCommand(
"Intake", Commands.deferredProxy(() -> m_superstructure.intake()));
NamedCommands.registerCommand("OTFArm", m_arm.moveToPosition(0.7528).andThen(m_arm.maintain()));
NamedCommands.registerCommand("Spinup", m_shooter.spinup(200).andThen(m_shooter.maintain()));
NamedCommands.registerCommand("Passthrough", Commands.deferredProxy(() -> m_index.shoot()));

m_autoChooser.setDefaultOption("Centre1253", m_drivetrain.getAutoPath("Centre1253"));
m_autoChooser.setDefaultOption("Centre1253", m_drivetrain.getAutoPath("Centre213"));
SmartDashboard.putData(m_autoChooser);
SmartDashboard.putNumber("Arm", armangle);

Expand Down
Loading

0 comments on commit b2a6990

Please sign in to comment.