Go to Post Isn't that sort of like asking "is that an African or European swallow?" - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-06-2010, 12:49
isaacdl isaacdl is offline
I have a white hat..it's just dirty
AKA: Isaac Dontje Lindell
FRC #3018 (Nordic Storm)
 
Join Date: Oct 2009
Rookie Year: 2010
Location: St. Peter
Posts: 32
isaacdl is an unknown quantity at this point
Re: no control of bot when kicker is operating

We're using Timer.delay(xnumberofseconds). Is that what you mean?
  #2   Spotlight this post!  
Unread 11-06-2010, 12:56
ATannahill ATannahill is offline
Registered User
AKA: Alex Tannahill
no team
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Southfield, Michigan
Posts: 3,258
ATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond repute
Re: no control of bot when kicker is operating

What is happening is that your code is stopping there and is not checking for new values for the joystick.

I don't know much about java but what will probably work is assigning the time at the beginning of the kick to a variable. When the time is equal to or greater than the variable plus .5 move on with the kick.

This will let your code loop and read the joysticks.
__________________

- Arizona North
  #3   Spotlight this post!  
Unread 11-06-2010, 12:59
Andrew Schreiber Andrew Schreiber is offline
Joining the 900 Meme Team
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,062
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: no control of bot when kicker is operating

Quote:
Originally Posted by isaacdl View Post
We're using Timer.delay(xnumberofseconds). Is that what you mean?
I believe so... There should be a way of setting a timer to go off in X period of time. In C++ these would be the Timer.Start Timer.Stop and Timer.HasPeriodPassed (Referenced http://www.virtualroadside.com/WPILib/class_timer.html) Java should have an equivalent. This should not delay the loop you are in which is your problem. (If I am assuming your problem correctly)
__________________




.
  #4   Spotlight this post!  
Unread 11-06-2010, 13:04
isaacdl isaacdl is offline
I have a white hat..it's just dirty
AKA: Isaac Dontje Lindell
FRC #3018 (Nordic Storm)
 
Join Date: Oct 2009
Rookie Year: 2010
Location: St. Peter
Posts: 32
isaacdl is an unknown quantity at this point
Re: no control of bot when kicker is operating

Quote:
Originally Posted by Andrew Schreiber View Post
I believe so... There should be a way of setting a timer to go off in X period of time. In C++ these would be the Timer.Start Timer.Stop and Timer.HasPeriodPassed (Referenced http://www.virtualroadside.com/WPILib/class_timer.html) Java should have an equivalent. This should not delay the loop you are in which is your problem. (If I am assuming your problem correctly)
As far as I can tell, it's literally a delay; if you set a state for something (ie motor 1 forward 50%) and then use that delay method for 2 seconds, motor 1 will continue to operate at 50% until the timer is done and you send a command to change the state.

Last edited by isaacdl : 11-06-2010 at 13:17. Reason: typo
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
842 Kicker On Bot kE7JLM General Forum 36 29-01-2010 11:51
How & where do you build the bot when it snows and your robo-base (school) is closed? Elgin Clock General Forum 28 03-03-2008 00:12
paper: Control an FRC bot with a Wiimote Greg Marra Extra Discussion 8 21-01-2008 12:41
1189 - Human-Bot Arm Control jmcr8on Robot Showcase 50 13-10-2007 22:58


All times are GMT -5. The time now is 03:32.

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