Yep! Eclipse did the trick. Thanks guys. I'll be sure to check out the command-based programming - it seems neat.
Just one quick question: Am I able to do a while(true) loop in a thread and have it persistently be doing something or will it crash the network/roboRIO?
Basically what I'm doing here:
Code:
public void run() {
R.autonomousCounter = 0;
while (true) {
if ((Math.floor(R.autonomousCounter / loopsPerSecond)) < seconds) {
if (forward) {
theRobot.drive(-robotDriveSpeed, gyro.getAngle() * gyroModifierSpeed);
}else if (!forward) {
theRobot.drive(robotDriveSpeed, gyro.getAngle() * gyroModifierSpeed);
}
}else{
break;
}
}
theRobot.drive(0.0, 0.0);
}