Go to Post The first law of programming is that there are always ways of doing things quicker and in less space than you already are. - jgannon [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 04-02-2017, 13:02
Robodawgs2221 Robodawgs2221 is online now
Registered User
FRC #2221
 
Join Date: Jan 2017
Location: Mandeville, Louisiana
Posts: 9
Robodawgs2221 is an unknown quantity at this point
Timer.Delay stops motor movement?

I'm currently trying to program autonomous and it's working, I've isolated this issue to be with the Timer.Delay(seconds) command. When hovering over the command, it states that it allows: "Motors [to] continue to run at their last assigned values," but it simply stops them for the time allotted. Are there any alternative timing methods that allow motors to continue to run and change the command after an allotted time?

code:
Code:
case leftAuto:
			System.out.print("YOU'RE LEFT");
			Timer.delay(2.5);
			arcadeDrive.drive(1, 0);
			Timer.delay(5);
			arcadeDrive.drive(0.75, .6);
			Timer.delay(3);
			solenoid2.set(DoubleSolenoid.Value.kForward);
			Timer.delay(2);
			solenoid2.set(DoubleSolenoid.Value.kReverse);
			arcadeDrive.drive(-1, .8);
			Timer.delay(4.8);
			arcadeDrive.drive(-.25, 0);
			Timer.delay(2);
			break;
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 13:17.

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