Quote:
Originally Posted by 279 EMPIE
I'm having the same problem and i cant seem to find the Solution.
I have tried old code and the Joysticks worked fine but after i copied it didnt work still. The i created a test program (Below) and that also didn't work.
SO CONFUSED
Code:
public class RobotTemplate extends SimpleRobot {
.
.
.
/**
* This function is called once each time the robot enters operator control.
*/
public void operatorControl() {
Jag_One.set(Joy.getY());
Jag_Two.set(Joy.getY());
Jag_Three.set(Joy.getY());
Jag_Four.set(Joy.getY());
}
|
Your code is extending SimpleRobot, but your operatorControl method doesn't have a loop in it. It is getting called once, and never again (until you disable and re-enable it. If you want to use SimpleRobot, you need to have a loop in OperatorControl. See
http://wpilib.screenstepslive.com/s/...ot-programming Or, you need to be using IterativeRobot instead of SimpleRobot.