This commit is contained in:
Abhishrek05
2023-03-14 15:13:41 -06:00
parent af17c0c056
commit 679568f3b2
4 changed files with 10 additions and 6 deletions
@@ -4,6 +4,7 @@
package frc4388.robot.commands;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import edu.wpi.first.wpilibj2.command.CommandBase;
import frc4388.utility.Gains;
@@ -54,6 +55,7 @@ public abstract class PelvicInflammatoryDisease extends CommandBase {
// Returns true when the command should end.
@Override
public boolean isFinished() {
SmartDashboard.putBoolean("isFinished", Math.abs(getError()) < tolerance);
return Math.abs(getError()) < tolerance;
}
}