Skip to content

Commit 68f6dab

Browse files
authored
Merge pull request #109 from strykeforce/statefixes
State Champs Fixes
2 parents 44c6057 + 371c24f commit 68f6dab

21 files changed

+52
-43
lines changed

src/main/deploy/paths/pieceOneFetchBumpCubeTwo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ target_yaw = 0.0 #degrees
1212

1313
[end_pose]
1414
x = 6.77 #7.00
15-
y = 2.3 #2.34 red:2.29 blue:2.34
15+
y = 2.34 #2.3
1616
angle = 0.0
1717

1818
[[internal_points]]

src/main/deploy/paths/pieceOneFetchCubeThreePath.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ target_yaw = 0.0 #degrees
1111
angle = 0.0
1212

1313
[end_pose]
14-
x = 6.3 # 7
14+
x = 6.4 # 6.3
1515
y = 2.96 # cube 3
1616
angle = 0.0
1717

src/main/deploy/paths/pieceOneFetchPathBump.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ target_yaw = 0.0 #degrees
1111
angle = 0.0
1212

1313
[end_pose]
14-
x = 6.8
14+
x = 7.0 ##6.8
1515
y = 0.92 #0.92->1.02
1616
angle = 0.0
1717

src/main/deploy/paths/piecePlaceOverLinePath.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ target_yaw = 0.0 #degrees
1111
angle = 0.0
1212

1313
[end_pose]
14-
x = 6.5 #5.35 #test
14+
x = 6.6 #6.5 #test
1515
y = 2.18
1616
angle = 0.0
1717

src/main/deploy/paths/pieceTwoFetchCubeFourPath.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ target_yaw = 0.0 #degrees
1616
angle = 0.0
1717

1818
[[internal_points]]
19-
x = 4.5
20-
y = 4.36
19+
x = 2.75
20+
y = 4.5 #4.36

src/main/deploy/paths/pieceTwoPlaceCubeFourPath.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ target_yaw = 0.0 #degrees
77

88
[start_pose]
99
x = 6.90 # 7
10-
y = 4.58 # cube 4
10+
y = 4.58 # cube 4 #4.58
1111
angle = 180.0
1212

1313
[end_pose]
1414
x = 2.12 # 7
15-
y = 4.42 # cube 4 place mid 3.82
15+
y = 4.42 # cube 4 place mid 3.82 #4.42
1616
angle = 180.0
1717

1818
[[internal_points]]
1919
x = 4.5
20-
y = 4.85
20+
y = 4.85 #4.85

src/main/java/frc/robot/Constants.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public static final class RobotStateConstants {
8282
public static final Pose2d kCubeThreeAutoPickup =
8383
new Pose2d(new Translation2d(7.07, 3.36), new Rotation2d());
8484
public static final Pose2d kCubeTwoAutoPickup =
85-
new Pose2d(new Translation2d(6.9, 2.14), new Rotation2d());
85+
new Pose2d(new Translation2d(6.9, 2.18), new Rotation2d());
8686
public static final Pose2d kCubeOneAutoPickup =
8787
new Pose2d(new Translation2d(6.9, 0.92), new Rotation2d());
8888

@@ -860,18 +860,19 @@ public static class CompConstants {
860860
public static final double kWheelDiameterInches = 3.0 * (496 / 500.0);
861861

862862
// Elbow
863-
public static final int kElbowZeroTicks = 700; // 730
863+
public static final int kElbowZeroTicks = 705; // 700
864864

865865
// Shoulder
866866
public static final double kShoulderMainZeroTicks = 2050;
867867
public static final double kShoulderFollowerZeroTicks = 2057;
868868

869869
// Intake
870-
public static final int kIntakeZeroTicks = 2790; // 2440 ->2540
870+
public static final int kIntakeZeroTicks = 3_600; // 2440 ->2540
871871
public static final double kExtendPosTicks = -2_100;
872872

873873
// Hand
874-
public static final double kHandZeroTicks = 1230; // 686 ->976
874+
// 273 for a tooth on the hand
875+
public static final double kHandZeroTicks = 684; // 686 ->976
875876
}
876877

877878
public static class ProtoConstants {

src/main/java/frc/robot/commands/auto/MiddleToDockWithMobility.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public MiddleToDockWithMobility(
6565
new ReleaseGamepieceCommand(handSubsystem, robotStateSubsystem),
6666
new WaitCommand(1.0),
6767
firstPath,
68-
new WaitCommand(0.25),
68+
new WaitCommand(0.75),
6969
new ParallelRaceGroup(
7070
new AutoWaitForMatchTimeCommand(0.1),
7171
new SequentialCommandGroup(

src/main/java/frc/robot/commands/auto/ThreePieceBumpAutoCommandGroup.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public ThreePieceBumpAutoCommandGroup(
8383
robotStateSubsystem,
8484
RobotStateConstants.kCubeTwoAutoPickup,
8585
visionSubsystem)
86-
.withTimeout(0.9)),
86+
.withTimeout(0.75)),
8787
new ParallelDeadlineGroup(
8888
secondPath,
8989
new SetGamePieceCommand(robotStateSubsystem, GamePiece.CUBE),
@@ -101,7 +101,7 @@ public ThreePieceBumpAutoCommandGroup(
101101
() -> !visionSubsystem.isCameraWorking())),
102102
new ParallelCommandGroup(
103103
new SetVisionUpdateCommand(driveSubsystem, false),
104-
new ShootGamepieceCommand(handSubsystem, robotStateSubsystem)),
104+
new ShootGamepieceCommand(handSubsystem, robotStateSubsystem, true)),
105105
// Cube 2
106106
new ParallelDeadlineGroup(
107107
thirdPath,
@@ -115,7 +115,7 @@ public ThreePieceBumpAutoCommandGroup(
115115
robotStateSubsystem,
116116
RobotStateConstants.kCubeOneAutoPickup,
117117
visionSubsystem)
118-
.withTimeout(0.9)),
118+
.withTimeout(0.75)),
119119
new ParallelDeadlineGroup(
120120
fourthPath,
121121
new SetGamePieceCommand(robotStateSubsystem, GamePiece.CUBE),
@@ -132,7 +132,7 @@ public ThreePieceBumpAutoCommandGroup(
132132
.withTimeout(0.70),
133133
() -> !visionSubsystem.isCameraWorking())),
134134
new ParallelCommandGroup(
135-
new ShootGamepieceCommand(handSubsystem, robotStateSubsystem),
135+
new ShootGamepieceCommand(handSubsystem, robotStateSubsystem, false),
136136
new ClearGamePieceCommand(robotStateSubsystem))
137137
/*,new ParallelCommandGroup(
138138
fourthPath,

src/main/java/frc/robot/commands/auto/ThreePieceBumpFallbackAutoCommandGroup.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public ThreePieceBumpFallbackAutoCommandGroup(
8989
() -> !visionSubsystem.isCameraWorking())),
9090
new ParallelCommandGroup(
9191
new SetVisionUpdateCommand(driveSubsystem, false),
92-
new ShootGamepieceCommand(handSubsystem, robotStateSubsystem)),
92+
new ShootGamepieceCommand(handSubsystem, robotStateSubsystem, true)),
9393
// Cube 2
9494
new ParallelDeadlineGroup(
9595
thirdPath,
@@ -110,7 +110,7 @@ public ThreePieceBumpFallbackAutoCommandGroup(
110110
.withTimeout(0.70),
111111
() -> !visionSubsystem.isCameraWorking())),
112112
new ParallelCommandGroup(
113-
new ShootGamepieceCommand(handSubsystem, robotStateSubsystem),
113+
new ShootGamepieceCommand(handSubsystem, robotStateSubsystem, false),
114114
new ClearGamePieceCommand(robotStateSubsystem))
115115
/*,new ParallelCommandGroup(
116116
fourthPath,

0 commit comments

Comments
 (0)