summaryrefslogtreecommitdiff
path: root/src/main/java/frc/robot/subsystems/Chain.java
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2024-03-08 10:55:54 +0200
committerkartofen <mladenovnasko0@gmail.com>2024-03-08 10:55:54 +0200
commit01d6a7ef435dd9f6835fc3916a7f623395288490 (patch)
treed47bf6478e4b76009948b932cd86e4d49b56c267 /src/main/java/frc/robot/subsystems/Chain.java
parent4452529be059c5fbe4aaf9190f25cfc734715f01 (diff)
changes
Diffstat (limited to 'src/main/java/frc/robot/subsystems/Chain.java')
-rw-r--r--src/main/java/frc/robot/subsystems/Chain.java6
1 files changed, 1 insertions, 5 deletions
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));
}