Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Empty file.
4 changes: 4 additions & 0 deletions PathWeaver/PathWeaver/Paths/AutoRemainder
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
X,Y,Tangent X,Tangent Y,Fixed Theta,Name
0.785134818779641,-2.4491953082746205,3.048,0.0,true,
3.9256439357052786,-0.9691852646659866,3.012461901832824,0.9257114703175879,false,
10.0502383438093,-0.7285332250548269,5.871909766512307,0.012032601980558,true,
8 changes: 8 additions & 0 deletions PathWeaver/PathWeaver/pathweaver.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"lengthUnit": "Meter",
"maxVelocity": 3.0,
"maxAcceleration": 3.0,
"wheelBase": 0.558,
"gameName": "Infinite Recharge",
"outputDir": ""
}
1 change: 1 addition & 0 deletions src/main/kotlin/frc/robot/Constants.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class Constants {
val kShooterSpeed = 1.0 * kShooterDir
val kShooterReverseSpeed = -0.3 * kShooterDir
val kGateSpeed = 1.0 * kGateDir
val kGateRSpeed = -0.5 * kGateDir
val kGateLoadSpeed = 0.5 * kGateDir
val kIntakeSpeed = 1.0 * kIntakeDir
val kIntake2Speed = 0.85
Expand Down
7 changes: 7 additions & 0 deletions src/main/kotlin/frc/robot/RobotContainer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,13 @@ class RobotContainer {
}

fun getAutonomousCommand(): Command {
if (gate.isBallTriggered()) {
return pathPlanningCommand("paths/") // update
} else{
return pathPlanningCommand("paths/")
}


// Return the selected command
return m_autoCommandChooser.selected
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/frc/robot/commands/CompositeShoot.kt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class CompositeShoot(val intakeSubsystem: IntakeSubsystem, val indexerSubsystem:
gateSubsystem.setSpeed(0.0)
}
} else {
gateSubsystem.setSpeed(0.0)
gateSubsystem.setSpeed(Constants.kGateRSpeed)
}
}

Expand Down