Quote:
Originally Posted by krudeboy51
Code:
public void operatorControl() {
while(isEnabled() && isAutonomous()){
Drive.setSafetyEnabled(true);
Drive.arcadeDrive(stick);
Timer.delay(0.0004);
}
}
|
Your code isn't getting called. Your isAutonomous should be isOperatorControl.
Your delay is also very short, only 400 microseconds. The motors will only be updated at 5 ms, so use a delay of at least 0.005. You only get new joystick data every 20ms, so if you're only doing operator control, you can have a delay of 0.02