View Single Post
  #1   Spotlight this post!  
Unread 02-17-2016, 09:30 PM
abilash123 abilash123 is offline
Registered User
FRC #2198
 
Join Date: Jan 2016
Location: Canada
Posts: 6
abilash123 is an unknown quantity at this point
Autonomous Time Delay

Ok so im trying to figure out how to get an autonomous for work. I tried to get the robot to drive forward with the code below:

drive.tankDrive(1.0,1.0);
Time.delay(3);
drive.tankDrive(0.0,0.0);

When i run the autonomous the robot just jerks forwards quickly and sometimes it won't even give a response. I tried changing the number in the time delay but it made no difference. Any ideas?
Reply With Quote