Skip to content

Commit

Permalink
Update Wristoffset
Browse files Browse the repository at this point in the history
  • Loading branch information
frc1987 committed Sep 14, 2023
1 parent 118b965 commit 61b1684
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*/
public final class Constants {

public static final ArmProfile ARM_A = new ArmProfile(569, -322.037); //+1
public static final ArmProfile ARM_A = new ArmProfile(1012, -322.037); //+1
public static final ArmProfile ARM_B = new ArmProfile(687, -201); // +1.412
public static ArmProfile INSTALLED_ARM = true ? ARM_A : ARM_B;

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -649,8 +649,8 @@ private void configureAutoCommands() {
TAB_MATCH.add("Re-Home Wrist", new HomeWrist(wrist));
TAB_MATCH.addBoolean("Cone", () -> claw.isCone());
TAB_MATCH.addBoolean("Cube", () -> claw.isCube());
TAB_MATCH.add("Stop Wrist Motor", new InstantCommand(() -> wrist.setPercent(0)));
TAB_MATCH.add("Stop Wrist Motor", new InstantCommand(() -> wrist.setPercent(0)));

TAB_TEST.add(
"ScoreConeMid",
new AutoScoreSequenceNoHome(
Expand Down
5 changes: 2 additions & 3 deletions src/main/java/frc/robot/commands/CollectSequence.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

package frc.robot.commands;

import edu.wpi.first.wpilibj.XboxController;
import edu.wpi.first.wpilibj.GenericHID.RumbleType;
import edu.wpi.first.wpilibj.XboxController;
import edu.wpi.first.wpilibj2.command.ConditionalCommand;
import edu.wpi.first.wpilibj2.command.InstantCommand;
import edu.wpi.first.wpilibj2.command.ParallelCommandGroup;
Expand Down Expand Up @@ -58,8 +58,7 @@ public CollectSequence(
new SequentialCommandGroup(
new InstantCommand(() -> controller.setRumble(RumbleType.kBothRumble, 1)),
new WaitCommand(0.4),
new InstantCommand(() -> controller.setRumble(RumbleType.kBothRumble, 0))
),
new InstantCommand(() -> controller.setRumble(RumbleType.kBothRumble, 0))),
new InstantCommand(),
() -> positionConfig.get().equals(Constants.PositionConfigs.BACK_CONE_FLOOR)),
new ParallelCommandGroup(
Expand Down

0 comments on commit 61b1684

Please sign in to comment.