|
Re: Iterative Robot Template
teleopPeriodic is called about every 50ms. This time period is based upon the data rate of new packets coming from the driver station. New joystick information is received about every 50ms, so there is no reason to update the robot drive more frequently, since the data would be exactly the same as the previous data.
So put your call to tank drive in teleoPeriodic.
Code:
public void teleopPeriodic()
{
// feed your watchdog
Watchdog.getInstance().feed();
// drive the robot
this.robotDrive.tankDrive(leftJoystick, rightJoystick);
}
__________________
FRC 623 2003,2004,2005,2006,2007,2008, 2009, 2010, 2011
FRC 1900 2007
FVC 60 and 193 2006
FVC 3271 2007
FTC 226 and 369 2008, 2009, 2010, 2011
FTC 3806 2010
|