Go to Post Most of us are pretty friendly. - StephLee [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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
  #4   Spotlight this post!  
Unread 18-02-2010, 06:37
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Kicking while driving

The two code implementations are very similar. Do this as fast as you can until enough time passes.

A couple other approaches to try.

Put the kicking code in a parallel loop that looks at a global to see if it should kick, hold, or return the foot, etc. Then in teleop drive, just set the globals based on the joystick. In the parallel loop you can still use your timed sequence just fine.

A more efficient way of doing the notification is to use an occurrence, queue, or other programming mechanism to let drive signal the loop when it should start a new sequence.

Another approach is to break up the code and keep it in the teleop, but make it a state machine as already mentioned.

Greg McKaskle
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Castrol Kicking Robot SuperJake Chit-Chat 1 06-02-2010 21:13
The Kicking Mechanism Taxi Quinn Technical Discussion 11 06-02-2010 21:10
Effectiveness of Kicking vs. Pushing bobwrit Rules/Strategy 39 12-01-2010 20:20
Team 467 Driving while holding the ball Tsom467 Robot Showcase 18 16-02-2008 01:02
Kicking a robot's bottom... archiver 2001 5 24-06-2002 00:17


All times are GMT -5. The time now is 20:53.

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