Go to Post After all, bitterness takes all the fun out of wiring. - Venkatesh [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

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-02-2010, 16:51
1418VaeVictus 1418VaeVictus is offline
Registered User
FRC #1418
 
Join Date: Feb 2010
Location: Virginia
Posts: 2
1418VaeVictus is an unknown quantity at this point
Kicking while driving

We have finally gotten the kicking and the driving code working, however, we still can't do both at the same time...

The problem is our drive code is in the main loop, but we use a timed sequnce of pnuematics to kick, however, because of this the code gets stuck in this kicking sequence and cannot drive...

We tried changing the this by adding the drive code into the sequence of waiting as well, but for some reason the drive does not seem to be responding even then...

I'm posting images of our labview code, and i hope someone can see what's going wrong, and how we can fix it....

(BTW our drive code is the small sub vi).

Below are the two things we've already tried....



Reply With Quote
  #2   Spotlight this post!  
Unread 17-02-2010, 21:17
1418VaeVictus 1418VaeVictus is offline
Registered User
FRC #1418
 
Join Date: Feb 2010
Location: Virginia
Posts: 2
1418VaeVictus is an unknown quantity at this point
Re: Kicking while driving

Please, can anyone help?

thanks...

*BUMP*
Reply With Quote
  #3   Spotlight this post!  
Unread 17-02-2010, 22:51
Green2 Green2 is offline
Registered User
FRC #2338
 
Join Date: Mar 2009
Location: Oswego
Posts: 20
Green2 is an unknown quantity at this point
Re: Kicking while driving

To understand your problem, I think we need more information on how the rest of the code is structured. For example, is this timed sequence inside teleop? Or are you trying to program autonomous (which might make more sense since it's timed sequence).

The way timed sequence works, they execute left to right. So if you have another frame to the right of the drive code and that is the kicker, then the drive portion will execute first, then move onto the next frame for the kicker. But obviously if you only have the kicker in that second frame, then the drive will not execute. You can place another drive VI in the kicker frame (such that they will execute in parallel), but that is awfully inefficient way of programing.

You might want to revisit www.frcmastery.com and look over the video tutorials. In particular, review the walkthroughs and state machines. State machines are your friend.
Reply With Quote
  #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
Reply


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 08:41.

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