Skip to content

Commit

Permalink
adjust source side auto
Browse files Browse the repository at this point in the history
  • Loading branch information
KPatel008 committed Mar 1, 2024
1 parent 7d54494 commit 0002d55
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 58 deletions.
37 changes: 31 additions & 6 deletions src/main/deploy/pathplanner/autos/2 Note Source.auto
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@
"name": "feederOn"
}
},
{
"type": "named",
"data": {
"name": "intake"
}
},
{
"type": "wait",
"data": {
Expand All @@ -56,25 +62,38 @@
}
},
{
"type": "deadline",
"type": "race",
"data": {
"commands": [
{
"type": "path",
"type": "named",
"data": {
"pathName": "Sub to Centerline 5"
"name": "armDown"
}
},
{
"type": "wait",
"data": {
"waitTime": 0.5
}
}
]
}
},
{
"type": "parallel",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "intake"
"name": "sensorIntake"
}
},
{
"type": "named",
"type": "path",
"data": {
"name": "armDown"
"pathName": "Sub to Centerline 5"
}
}
]
Expand Down Expand Up @@ -105,6 +124,12 @@
]
}
},
{
"type": "wait",
"data": {
"waitTime": 0.5
}
},
{
"type": "race",
"data": {
Expand Down
14 changes: 13 additions & 1 deletion src/main/deploy/pathplanner/paths/Centerline 5 to Sub.path
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,19 @@
}
],
"rotationTargets": [],
"constraintZones": [],
"constraintZones": [
{
"name": "New Constraints Zone",
"minWaypointRelativePos": 0.85,
"maxWaypointRelativePos": 1.0,
"constraints": {
"maxVelocity": 3.0,
"maxAcceleration": 3.0,
"maxAngularVelocity": 540.0,
"maxAngularAcceleration": 720.0
}
}
],
"eventMarkers": [],
"globalConstraints": {
"maxVelocity": 3.0,
Expand Down
49 changes: 0 additions & 49 deletions src/main/deploy/pathplanner/paths/Intake to Centerline 5.path

This file was deleted.

14 changes: 13 additions & 1 deletion src/main/deploy/pathplanner/paths/SubToCenterline4.path
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,19 @@
"rotateFast": false
}
],
"constraintZones": [],
"constraintZones": [
{
"name": "New Constraints Zone",
"minWaypointRelativePos": 1.55,
"maxWaypointRelativePos": 2.0,
"constraints": {
"maxVelocity": 3.0,
"maxAcceleration": 3.0,
"maxAngularVelocity": 540.0,
"maxAngularAcceleration": 720.0
}
}
],
"eventMarkers": [],
"globalConstraints": {
"maxVelocity": 3.0,
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public Robot() {
PoseEstimation.getInstance().getPose().getTranslation(),
Rotation2d.fromDegrees(-32.98)),
m_drivetrain);
m_driverController.a().whileTrue(snapToAngle);
m_driverController.leftTrigger().whileTrue(snapToAngle);

// elbow = 1.147 rad
// wrist = 3.805 rad
Expand Down

0 comments on commit 0002d55

Please sign in to comment.