Ok so in each runnable just put while(true). Could you also put while(isTeleop())?
Code:
Runnable driveJob = new Runnable()
{
RobotDrive myDrive = new RobotDrive(1, 2, 3, 4);
public void run()
{
while(true)
{
myDrive.tankDrive(-stickL.getAxis(Joystick.AxisType.kY), -stickR.getAxis(Joystick.AxisType.kY));
}
}
};
If you are sending information from the laptop to the robot through udp, can you put a thread in and the robot won't get caught somewhere. So you will still be able to drive and run conveyors and shoot the ball.
Thanks