added check for deadzone

This commit is contained in:
‮Aarav Shah
2022-02-22 17:14:48 -07:00
parent 8ae78c9ef6
commit c2cd96040b
@@ -50,6 +50,14 @@ public class AimToCenter extends CommandBase {
} }
m_turret.runshooterRotatePID(m_targetAngle); m_turret.runshooterRotatePID(m_targetAngle);
}
public boolean noIsDeadzone(){
if ((-20 < m_targetAngle) && (m_targetAngle < 0)) {
return false;
} else {
return true;
}
} }
// Called once the command ends or is interrupted. // Called once the command ends or is interrupted.