Skip to content

Commit

Permalink
Not much after a ton of changes
Browse files Browse the repository at this point in the history
Same as before but got rid of unnecessary import in WristCommand
  • Loading branch information
nolandatall committed Nov 29, 2023
1 parent b5d28a1 commit 3596116
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
6 changes: 0 additions & 6 deletions src/main/java/frc/robot/Commands/WristCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@


package frc.robot.commands;


import frc.robot.subsystems.ElevatorSubsystem;
import frc.robot.subsystems.WristSubsystem;

import java.util.function.DoubleSupplier;


import edu.wpi.first.wpilibj2.command.CommandBase;


Expand Down
15 changes: 8 additions & 7 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ public static class Elevator{
public static final double GEAR_CIRCUMFERENCE = 1.432*Math.PI;

}
public static class Wrist{
/**the gear ratio of the motor to the final gear revolutions */
public static final double GEAR_RATIO = 0.02585856914;
/**The number of ticks per motor revolution */
public static final double TICKS_PER_REVOLUTION = 2048;
/**The gear circumferance for distance */
public static final double GEAR_CIRCUMFERENCE = 1.432*Math.PI;
public static class Wrist{
/**the gear ratio of the motor to the final gear revolutions */
public static final double GEAR_RATIO = 0.02585856914;
/**The number of ticks per motor revolution */
public static final double TICKS_PER_REVOLUTION = 2048;
/**The gear circumferance for distance */
public static final double GEAR_CIRCUMFERENCE = 1.432*Math.PI;
}
}
1 change: 1 addition & 0 deletions src/main/java/frc/robot/subsystems/WristSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import edu.wpi.first.wpilibj.shuffleboard.Shuffleboard;
import edu.wpi.first.wpilibj.shuffleboard.ShuffleboardTab;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
import frc.robot.Constants.Wrist;


public class WristSubsystem extends SubsystemBase {
Expand Down

0 comments on commit 3596116

Please sign in to comment.