Skip to content

Commit

Permalink
Updated some autos
Browse files Browse the repository at this point in the history
  • Loading branch information
xorbotz committed Mar 15, 2024
1 parent 62c0ad6 commit 8602830
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 40 deletions.
20 changes: 7 additions & 13 deletions src/main/deploy/pathplanner/autos/bottom to escape.auto
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"version": 1.0,
"startingPose": null,
"startingPose": {
"position": {
"x": 0.93,
"y": 4.29
},
"rotation": -60.0
},
"command": {
"type": "sequential",
"data": {
Expand Down Expand Up @@ -58,12 +64,6 @@
"type": "sequential",
"data": {
"commands": [
{
"type": "wait",
"data": {
"waitTime": 6.5
}
},
{
"type": "path",
"data": {
Expand All @@ -77,12 +77,6 @@
"type": "sequential",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "intakeStop"
}
},
{
"type": "named",
"data": {
Expand Down
28 changes: 26 additions & 2 deletions src/main/deploy/pathplanner/autos/middle to middle.auto
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@
]
}
},
{
"type": "named",
"data": {
"name": "lowerIntake"
}
},
{
"type": "wait",
"data": {
"waitTime": 7.0
}
},
{
"type": "named",
"data": {
Expand All @@ -63,13 +75,13 @@
{
"type": "named",
"data": {
"name": "shooterStart"
"name": "lowerIntakeStop"
}
},
{
"type": "named",
"data": {
"name": "lowerIntakeStop"
"name": "shooterStart"
}
},
{
Expand Down Expand Up @@ -105,6 +117,18 @@
"data": {
"name": "bumpStop"
}
},
{
"type": "named",
"data": {
"name": "shooterStop"
}
},
{
"type": "named",
"data": {
"name": "zeroGyro"
}
}
]
}
Expand Down
8 changes: 4 additions & 4 deletions src/main/deploy/pathplanner/paths/Side to Bottom.path
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
},
"prevControl": null,
"nextControl": {
"x": 0.936445910102008,
"y": 4.3092801930168765
"x": 0.9364459101020081,
"y": 4.27422916773404
},
"isLocked": false,
"linkedName": null
Expand Down Expand Up @@ -39,13 +39,13 @@
},
"goalEndState": {
"velocity": 0,
"rotation": 90.0,
"rotation": 0.0,
"rotateFast": false
},
"reversed": false,
"folder": "Test Auto 1",
"previewStartingState": {
"rotation": 35.0,
"rotation": -60.0,
"velocity": 0
},
"useDefaultConstraints": false
Expand Down
20 changes: 2 additions & 18 deletions src/main/deploy/pathplanner/paths/bottom to escape.path
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,6 @@
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 2.820141697290522,
"y": 2.2521941480937606
},
"prevControl": {
"x": 2.8239422974843147,
"y": 2.253682741921189
},
"nextControl": {
"x": 2.8163410970967298,
"y": 2.2507055542663323
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 7.958264277573687,
Expand All @@ -55,13 +39,13 @@
},
"goalEndState": {
"velocity": 0,
"rotation": 90.0,
"rotation": 0.0,
"rotateFast": false
},
"reversed": false,
"folder": "Test Auto 1",
"previewStartingState": {
"rotation": 90.0,
"rotation": 0.0,
"velocity": 0
},
"useDefaultConstraints": false
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ public static final class Vision {
public static final class Flap{
public static final int FLAP_PWM_CHANNEL =1;
public static final double AMP_POSITION = 0.5;
public static final double SOURCE_POSITION = 0.75;
public static final double CLOSED_POSITION = 0.0;
public static final double SOURCE_POSITION = .5;
public static final double CLOSED_POSITION = 0.02;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public RobotContainer() {
Swerve::getSpeeds,
Swerve::driveRobotRelative,
Constants.Auto.PATH_FOLLOWER_CONFIG,
() -> false,//Robot.alliance == DriverStation.Alliance.Red,
() -> Robot.alliance == DriverStation.Alliance.Red,
Swerve
);

Expand Down

0 comments on commit 8602830

Please sign in to comment.