From 1dbceadb947c0c09ca9e04896f212ee9638fc184 Mon Sep 17 00:00:00 2001 From: Elijah Price Date: Fri, 28 Feb 2020 20:08:47 -0700 Subject: [PATCH] Fixed not working storage PID --- src/main/java/frc4388/robot/commands/StoragePositionPID.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/frc4388/robot/commands/StoragePositionPID.java b/src/main/java/frc4388/robot/commands/StoragePositionPID.java index 9536e24..da8708e 100644 --- a/src/main/java/frc4388/robot/commands/StoragePositionPID.java +++ b/src/main/java/frc4388/robot/commands/StoragePositionPID.java @@ -25,14 +25,14 @@ public class StoragePositionPID extends CommandBase { // Called when the command is initially scheduled. @Override public void initialize() { - startPos = m_storage.getEncoderPos(); + } // Called every time the scheduler runs while the command is scheduled. @Override public void execute() { System.err.println("oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooiujgxzxfghjkiujsdasdgioiedsdjkl"); - m_storage.runStoragePositionPID(m_storage.getEncoderPos() + StorageConstants.STORAGE_FULL_BALL); + m_storage.runStoragePositionPID(StorageConstants.STORAGE_FULL_BALL); } // Called once the command ends or is interrupted.