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

Commit

Permalink
5 note 🔥
Browse files Browse the repository at this point in the history
  • Loading branch information
spacey-sooty committed Aug 22, 2024
1 parent b2a6990 commit 5ad966e
Show file tree
Hide file tree
Showing 9 changed files with 6,856 additions and 6,248 deletions.
712 changes: 356 additions & 356 deletions src/main/deploy/choreo/Centre1423.1.traj

Large diffs are not rendered by default.

1,696 changes: 848 additions & 848 deletions src/main/deploy/choreo/Centre1423.2.traj

Large diffs are not rendered by default.

806 changes: 466 additions & 340 deletions src/main/deploy/choreo/Centre1423.3.traj

Large diffs are not rendered by default.

1,077 changes: 570 additions & 507 deletions src/main/deploy/choreo/Centre1423.4.traj

Large diffs are not rendered by default.

4,287 changes: 2,238 additions & 2,049 deletions src/main/deploy/choreo/Centre1423.traj

Large diffs are not rendered by default.

134 changes: 77 additions & 57 deletions src/main/deploy/pathplanner/autos/Centre1423.auto
Original file line number Diff line number Diff line change
Expand Up @@ -5,70 +5,90 @@
"x": 1.242100715637207,
"y": 5.6102094650268555
},
"rotation": -1.3958534722521843e-26
"rotation": 4.025176869272959e-26
},
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "named",
"type": "parallel",
"data": {
"name": "Arm"
}
},
{
"type": "named",
"data": {
"name": "Shoot"
}
},
{
"type": "path",
"data": {
"pathName": "Centre1423.1"
}
},
{
"type": "named",
"data": {
"name": "Shoot"
}
},
{
"type": "path",
"data": {
"pathName": "Centre1423.2"
}
},
{
"type": "named",
"data": {
"name": "Shoot"
}
},
{
"type": "path",
"data": {
"pathName": "Centre1423.3"
}
},
{
"type": "named",
"data": {
"name": "Shoot"
}
},
{
"type": "path",
"data": {
"pathName": "Centre1423.4"
}
},
{
"type": "named",
"data": {
"name": "Shoot"
"commands": [
{
"type": "named",
"data": {
"name": "Spinup"
}
},
{
"type": "sequential",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "Arm"
}
},
{
"type": "named",
"data": {
"name": "Passthrough"
}
},
{
"type": "path",
"data": {
"pathName": "Centre1423.1"
}
},
{
"type": "named",
"data": {
"name": "Passthrough"
}
},
{
"type": "path",
"data": {
"pathName": "Centre1423.2"
}
},
{
"type": "named",
"data": {
"name": "Passthrough"
}
},
{
"type": "path",
"data": {
"pathName": "Centre1423.3"
}
},
{
"type": "named",
"data": {
"name": "Passthrough"
}
},
{
"type": "path",
"data": {
"pathName": "Centre1423.4"
}
},
{
"type": "named",
"data": {
"name": "Passthrough"
}
}
]
}
}
]
}
}
]
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public Robot() {
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("Centre213"));
m_autoChooser.setDefaultOption("Centre1253", m_drivetrain.getAutoPath("Centre1423"));
SmartDashboard.putData(m_autoChooser);
SmartDashboard.putNumber("Arm", armangle);

Expand Down Expand Up @@ -171,7 +171,6 @@ public Robot() {
m_driver.a().whileTrue(m_drivetrain.applyRequest(() -> m_brake));
m_driver.y().onTrue(m_drivetrain.runOnce(() -> m_drivetrain.seedFieldRelative()));

m_codriver.a().onTrue(m_climber.climb());
m_codriver.leftBumper().whileTrue(m_index.shoot());
m_codriver.rightBumper().whileTrue(m_superstructure.outake());
m_codriver
Expand Down
8 changes: 5 additions & 3 deletions src/main/java/frc/robot/subsystems/Index.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ public class Index extends SubsystemBase {
public Index() {}

public Command shoot() {
// return run(() -> m_motor.setVoltage(-8)).until(m_hasNote);
return run(() -> m_motor.setVoltage(-8)).until(m_hasNote.negate());
// return run(() -> m_motor.setVoltage(-8));
if (!m_hasNote.getAsBoolean()) {
return runOnce(() ->{}).withName("Empty Index");
} else {
return run(() -> m_motor.setVoltage(-8)).until(m_hasNote.negate()).withName("Index PassThrough");
}
}

public Command intake(double voltage) {
Expand Down
Loading

0 comments on commit 5ad966e

Please sign in to comment.