Quote:
Originally Posted by tyandjel94
Code:
while(true)
{
myDrive.tankDrive(-stickL.getAxis(Joystick.AxisType.kY),-stickR.getAxis(Joystick.AxisType.kY));
}
|
Watch out, that while loop has the potential to freeze the code because it never rests, you need to put some kind of Thread.sleep(...) in there.
Alternatively, you could try to figure out the Command System which is better for doing the kind of job you've written down (although for UDP stuff, you'll have to use a thread).