This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: a few working autos and tuned to driver preferences
Co-authored-by: DaviTheDinosaur <[email protected]>
- Loading branch information
1 parent
71b96c2
commit 93861ad
Showing
5 changed files
with
109 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{ | ||
"waypoints": [ | ||
{ | ||
"anchorPoint": { | ||
"x": 1.0449181196961987, | ||
"y": 6.538041767106257 | ||
}, | ||
"prevControl": null, | ||
"nextControl": { | ||
"x": 2.0395434268215062, | ||
"y": 6.538041767106257 | ||
}, | ||
"holonomicAngle": 0, | ||
"isReversal": false, | ||
"velOverride": null, | ||
"isLocked": false, | ||
"isStopPoint": false, | ||
"stopEvent": { | ||
"names": [], | ||
"executionBehavior": "parallel", | ||
"waitBehavior": "none", | ||
"waitTime": 0 | ||
} | ||
}, | ||
{ | ||
"anchorPoint": { | ||
"x": 10.256617190445908, | ||
"y": 6.559956990906613 | ||
}, | ||
"prevControl": { | ||
"x": 8.890568240223708, | ||
"y": 6.494211319505545 | ||
}, | ||
"nextControl": { | ||
"x": 8.890568240223708, | ||
"y": 6.494211319505545 | ||
}, | ||
"holonomicAngle": 0, | ||
"isReversal": true, | ||
"velOverride": null, | ||
"isLocked": false, | ||
"isStopPoint": false, | ||
"stopEvent": { | ||
"names": [], | ||
"executionBehavior": "parallel", | ||
"waitBehavior": "none", | ||
"waitTime": 0 | ||
} | ||
}, | ||
{ | ||
"anchorPoint": { | ||
"x": 1.8192560273087832, | ||
"y": 7.604582658723591 | ||
}, | ||
"prevControl": { | ||
"x": 2.856576620525642, | ||
"y": 7.538836987322523 | ||
}, | ||
"nextControl": null, | ||
"holonomicAngle": 0, | ||
"isReversal": false, | ||
"velOverride": null, | ||
"isLocked": false, | ||
"isStopPoint": false, | ||
"stopEvent": { | ||
"names": [], | ||
"executionBehavior": "parallel", | ||
"waitBehavior": "none", | ||
"waitTime": 0 | ||
} | ||
} | ||
], | ||
"markers": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/main/java/org/team1540/bunnybotTank2023/commands/auto/AutoLeftSideRamTotes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package org.team1540.bunnybotTank2023.commands.auto; | ||
|
||
import com.pathplanner.lib.PathConstraints; | ||
import edu.wpi.first.wpilibj2.command.Command; | ||
import edu.wpi.first.wpilibj2.command.Commands; | ||
import org.team1540.bunnybotTank2023.commands.drivetrain.Drivetrain; | ||
import org.team1540.bunnybotTank2023.commands.turret.Turret; | ||
import org.team1540.bunnybotTank2023.commands.turret.TurretZeroSequenceCommand; | ||
import org.team1540.bunnybotTank2023.utils.AutoCommand; | ||
|
||
import java.util.List; | ||
|
||
public class AutoLeftSideRamTotes extends AutoCommand { | ||
public AutoLeftSideRamTotes(Drivetrain drivetrain, Turret turret) { | ||
List<Command> pathCommands = getPathPlannerDriveCommandGroup( | ||
drivetrain, | ||
"LeftSideRamTotes", | ||
new PathConstraints[] {new PathConstraints(4, 2)}, | ||
true | ||
); | ||
addCommands( | ||
Commands.parallel( | ||
pathCommands.get(0), | ||
new TurretZeroSequenceCommand(turret).asProxy() | ||
) | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters