Skip to content

Commit

Permalink
cool
Browse files Browse the repository at this point in the history
  • Loading branch information
Craptop committed Dec 5, 2023
1 parent d0e466e commit 1c44b3c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
7 changes: 7 additions & 0 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,11 @@ public static class Elevator {
/** The gear circumferance for distance */
public static final double GEAR_CIRCUMFERENCE = 1.432 * Math.PI;
}
public final class Wrist {
public static final int DRIVER_CONTROLLER_PORT = 0;
public static final int WRIST_MOTOR_DEVICE_NUMBER = 16;
public static final double TICKS = 2048;
public static final double DEGREES = 360;
public static final double GEAR_RATIO = 0.061;
}
}
9 changes: 2 additions & 7 deletions src/main/java/frc/robot/subsystems/WristSubsystem.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
package frc.robot.subsystems;

public // Copyright (c) FIRST and other WPILib contributors.
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.

Expand Down Expand Up @@ -80,7 +78,4 @@ public void periodic() {
// This method will be called once per scheduler run
wrist_motor.set(TalonFXControlMode.PercentOutput, -(MathUtil.clamp(motorPower, -0.5, 0.5)));
}
}
{

}
}

0 comments on commit 1c44b3c

Please sign in to comment.