View Single Post
  #13   Spotlight this post!  
Unread 27-01-2016, 15:40
techkid86's Avatar
techkid86 techkid86 is offline
Magic Programer
FRC #3044 (0xBE4)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: ballston spa
Posts: 58
techkid86 is an unknown quantity at this point
Re: Drive train PID control

yes, just switch out the teleop init and periodic with the following.

Code:
RobotDrive drive;

public void teleopInit()
{
leftPID.disable(); rightPID.disable(); drive=new RobotDrive(leftDrive, rightDrive);
} public void teleopPeriodic() {
drive.arcadeDrive(oneJoy); //where Joystick oneJoy = new Joystick(1);
}
__________________
"you can build a perfect machine out of imperfect parts" -Urza

Last edited by techkid86 : 27-01-2016 at 15:52.
Reply With Quote