Skip to content

Commit

Permalink
AMP MOBILITY AUTO
Browse files Browse the repository at this point in the history
  • Loading branch information
Nins97 committed Mar 8, 2024
1 parent 8b472f7 commit cfa93c5
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 0 deletions.
37 changes: 37 additions & 0 deletions src/main/deploy/pathplanner/autos/AmpSpeaker1Note - Mobility.auto
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"version": 1.0,
"startingPose": {
"position": {
"x": 0.74,
"y": 6.61
},
"rotation": 60.0
},
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "AutoStart"
}
},
{
"type": "named",
"data": {
"name": "ShootNote"
}
},
{
"type": "path",
"data": {
"pathName": "AmpSpeaker-Mobility"
}
}
]
}
},
"folder": "Source Speaker",
"choreoAuto": false
}
52 changes: 52 additions & 0 deletions src/main/deploy/pathplanner/paths/AmpSpeaker-Mobility.path
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"version": 1.0,
"waypoints": [
{
"anchor": {
"x": 0.7368290492269403,
"y": 6.605658518079129
},
"prevControl": null,
"nextControl": {
"x": 0.9198957657174576,
"y": 7.262887585960358
},
"isLocked": false,
"linkedName": "AmpSpeaker"
},
{
"anchor": {
"x": 2.5304594822152606,
"y": 7.65
},
"prevControl": {
"x": 1.4567305430907158,
"y": 7.3967256277105164
},
"nextControl": null,
"isLocked": false,
"linkedName": null
}
],
"rotationTargets": [],
"constraintZones": [],
"eventMarkers": [],
"globalConstraints": {
"maxVelocity": 3.8,
"maxAcceleration": 4.0,
"maxAngularVelocity": 500.0,
"maxAngularAcceleration": 2000.0
},
"goalEndState": {
"velocity": 0,
"rotation": 0,
"rotateFast": false
},
"reversed": false,
"folder": "Amp Speaker",
"previewStartingState": {
"rotation": 60.0,
"velocity": 0
},
"useDefaultConstraints": true
}
2 changes: 2 additions & 0 deletions src/main/java/frc/robot/Autos.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ public Autos(
desiredPoseTelemetryEntry::append);

autoChooser = AutoBuilder.buildAutoChooser("JustProbe");
autoChooser.addOption("elevator qf", elevatorSubsystem.sysIdQuasistatic(Direction.kForward));
autoChooser.addOption("elevator qr", elevatorSubsystem.sysIdQuasistatic(Direction.kReverse));

autoChooser.addOption(
"drive s qf", driveSubsystem.steerQuasistaticSysIDCommand(Direction.kForward));
Expand Down

0 comments on commit cfa93c5

Please sign in to comment.