From 01d6a7ef435dd9f6835fc3916a7f623395288490 Mon Sep 17 00:00:00 2001 From: kartofen Date: Fri, 8 Mar 2024 10:55:54 +0200 Subject: changes --- src/main/java/frc/robot/subsystems/Chain.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/main/java/frc/robot/subsystems/Chain.java') diff --git a/src/main/java/frc/robot/subsystems/Chain.java b/src/main/java/frc/robot/subsystems/Chain.java index 40235fe..3ee7108 100644 --- a/src/main/java/frc/robot/subsystems/Chain.java +++ b/src/main/java/frc/robot/subsystems/Chain.java @@ -20,10 +20,6 @@ public class Chain extends SubsystemBase public Chain() { - // TODO: figure out invertedness - - // m_motor.setInverted(true); - m_encoder.setDistancePerPulse(1.0/Constants.ChainEncoderScale); m_encoder.reset(); } @@ -36,9 +32,9 @@ public class Chain extends SubsystemBase // perc between 0 and 1; public void atPercentage(double perc) { - // System.out.println(perc); Logger.recordOutput(getName() + "/perc", perc); double pid_out = m_pid.calculate(m_encoder.getDistance(), perc); + Logger.recordOutput(getName() + "/pidOUt", pid_out); m_motor.setVoltage(MathUtil.clamp(pid_out, -6, 6)); } -- cgit v1.2.3