Skip to content

Commit

Permalink
Automatically applied spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
Gener1cU5ername authored and github-actions[bot] committed Jan 28, 2025
1 parent f0dffff commit 924710b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/main/java/frc/robot/constants/ENDEFFECTOR.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ public class ENDEFFECTOR {
// Pivot motor stuff
public static final double minAngleDegrees = 270;
public static final double maxAngleDegrees = 3;

public static final double kPivotP = 0.0;
public static final double kPivotI = 0.0;
public static final double kPivotD = 0.0;

public static final double endEffectorPivotGearRatio = 70.0;

public enum WRIST_SETPOINT{
public enum WRIST_SETPOINT {
STOWED(0),
L4(0),
L3_L2(0);

private final double angle;

WRIST_SETPOINT(double angle){
WRIST_SETPOINT(double angle) {
this.angle = angle;
}

Expand Down
11 changes: 3 additions & 8 deletions src/main/java/frc/robot/subsystems/EndEffectorWrist.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@
package frc.robot.subsystems;

import com.ctre.phoenix6.configs.TalonFXConfiguration;
import com.ctre.phoenix6.controls.MotionMagicTorqueCurrentFOC;
import com.ctre.phoenix6.hardware.CANcoder;
import com.ctre.phoenix6.hardware.TalonFX;
import com.ctre.phoenix6.signals.NeutralModeValue;

import edu.wpi.first.math.MathUtil;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
import frc.robot.constants.ENDEFFECTOR;
Expand Down Expand Up @@ -46,12 +44,9 @@ public boolean getState() {
}

public void setPosition(double rotations) {
m_desiredRotations = MathUtil.clamp(
rotations,
ENDEFFECTOR.minAngleDegrees,
ENDEFFECTOR.maxAngleDegrees
);
}
m_desiredRotations =
MathUtil.clamp(rotations, ENDEFFECTOR.minAngleDegrees, ENDEFFECTOR.maxAngleDegrees);
}

public double getPosition() {
return m_desiredRotations;
Expand Down

0 comments on commit 924710b

Please sign in to comment.