Quote:
Originally Posted by Lesafian
I feel like it's a problem with the while loop.
Code:
while (counter.get() > 0) {
armMotor.stopMotor();
}
|
You'd be right. What does a while loop do? Yours will continuously be true so it will never break the loop.
What is the point of the counter by the way? There's probably a way to do what you want without this.