Go to Post It looks like you put a robot through a paper shredder. - Madwolvez [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:02 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi