Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/arm-updates' into wheel-testing-h
Browse files Browse the repository at this point in the history
  • Loading branch information
Hsaunders603 committed Oct 26, 2023
2 parents 67946ca + a80431e commit ecc57a1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/ArmPresets.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public enum ArmPresets {
76.3),

// Human Player Station = HPS
HPS_PICKUP(0, 77,
72),
HPS_PICKUP(0, 76.3,
71.3),

ARM_STOWED(1, 2, 1),

Expand Down
5 changes: 3 additions & 2 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,12 @@ public CommandBase rumbleAndIntakeSpinningOff() {
public CommandBase pickUpGamePiece = sequence(
new ConditionalCommand(
sequence(
armRotate.moveTo(ArmPresets.CONE_PICKUP), armExtend.moveTo(ArmPresets.CONE_PICKUP)),
armRotate.moveTo(ArmPresets.CONE_PICKUP), armExtend.moveTo(ArmPresets.CONE_PICKUP),
intake.toggle()),
sequence(
armRotate.moveTo(ArmPresets.CUBE_PICKUP), armExtend.moveTo(
ArmPresets.CUBE_PICKUP),
intake.coneRelease()),
intake.coneRelease(), intake.toggle()),
() -> {
return gamePieceSub.get() == "Cone";
}));
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/maps/FrostBiteMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public ArmRotateMap getArmRotateMap() {
absEncoder.setDutyCycleRange(1.0 / 1025.0, 1024.0 / 1025.0);
absEncoder.setDistancePerRotation(-360);
// Adjust this to move the encoder zero point to the retracted position
absEncoder.setPositionOffset(91.89780758483522 - 7);
absEncoder.setPositionOffset(54.8);

CSFusedEncoder fusedEncoder = new CSFusedEncoder(encoder, absEncoder);

Expand Down

0 comments on commit ecc57a1

Please sign in to comment.