Go to Post Don't rely on the field staff to get every ball to work with your machine....engineer a robot that makes the change not matter. - PayneTrain [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 Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 23-02-2009, 13:33
chinckley chinckley is offline
Winner 2009 West Michigan District
FRC #1254 (Entropy)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Lawrence, Michigan
Posts: 204
chinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to all
Basic Robot Main vi

If we are not using cameras, do we delete the second and third while loops showing in the Basic Robot Main vi?

Is there a need for them? Will they hurt anything if we leave them there, but are not uing them?
__________________
2009 West Michigan District Winner
Thanks to Team 216 and Team 1918

2009 Traverse City Semifinalist
Thanks to Team 1596 and Team 47
2009 Traverse City UL Safety Award Winners

Attending 2009: West Michigan, Traverse City, & State
Reply With Quote
  #2   Spotlight this post!  
Unread 23-02-2009, 14:12
Shivang1923 Shivang1923 is offline
I make robot go VROOM VROOM!
FRC #1923 (MidKnight Inventors)
Team Role: Programmer
 
Join Date: Feb 2008
Rookie Year: 2008
Location: West Windsor, NJ
Posts: 38
Shivang1923 has a spectacular aura aboutShivang1923 has a spectacular aura about
Re: Basic Robot Main vi

As far as i know...it should not cause any issues. Just make sure you delete the camera open.vi as well as the camera close.vi and I think it should all work fine.
Reply With Quote
  #3   Spotlight this post!  
Unread 23-02-2009, 18:29
adamdb adamdb is offline
Registered User
#1583
 
Join Date: Feb 2005
Location: Parker, CO
Posts: 64
adamdb has a spectacular aura aboutadamdb has a spectacular aura aboutadamdb has a spectacular aura about
Re: Basic Robot Main vi

We used the timing loop, but deleted the whole camera loop. Seems to work fine and is faster when doing the "trace execution" on the PC, since it has one less loop to go through.
__________________
Adam Bryant
Programming Mentor
Team 1583
Ridge View Academy Rambotics
Reply With Quote
  #4   Spotlight this post!  
Unread 23-02-2009, 21:17
chinckley chinckley is offline
Winner 2009 West Michigan District
FRC #1254 (Entropy)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Lawrence, Michigan
Posts: 204
chinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to all
Re: Basic Robot Main vi

Quote:
Originally Posted by adamdb View Post
We used the timing loop, but deleted the whole camera loop. Seems to work fine and is faster when doing the "trace execution" on the PC, since it has one less loop to go through.
What is the timing loop used for?
__________________
2009 West Michigan District Winner
Thanks to Team 216 and Team 1918

2009 Traverse City Semifinalist
Thanks to Team 1596 and Team 47
2009 Traverse City UL Safety Award Winners

Attending 2009: West Michigan, Traverse City, & State
Reply With Quote
  #5   Spotlight this post!  
Unread 02-03-2009, 01:31
adamdb adamdb is offline
Registered User
#1583
 
Join Date: Feb 2005
Location: Parker, CO
Posts: 64
adamdb has a spectacular aura aboutadamdb has a spectacular aura aboutadamdb has a spectacular aura about
Re: Basic Robot Main vi

We put a 1 second delay inside the timing loop and increment a global counter in the timing loop. In the autonomous code we can read the global variable to see how many seconds have passed since autonomous started. We use this for timing movements during autonomous.
__________________
Adam Bryant
Programming Mentor
Team 1583
Ridge View Academy Rambotics
Reply With Quote
  #6   Spotlight this post!  
Unread 02-03-2009, 09:09
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,752
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: Basic Robot Main vi

That certainly works, but if you would rather, you can put your time comparison directly in the auto. If you place a GetTime function at the beginning of your auto, and another inside your loop or other places in your code, you just subtract to get your elapsed time.

Greg McKaskle
Reply With Quote
  #7   Spotlight this post!  
Unread 02-03-2009, 11:25
gwytheyrn gwytheyrn is offline
Registered User
AKA: David
FRC #0461 (West Side Boiler Invasion)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2004
Location: Indiana
Posts: 44
gwytheyrn is infamous around these parts
Send a message via AIM to gwytheyrn
Re: Basic Robot Main vi

You could use the structure posted
http://www.chiefdelphi.com/forums/sh...5&postcount=13. That make the loop run for 15 seconds and it will also monitor the amount of time elapsed in ms. This gives you a little more resolution and allows for a smaller step if you're trying to ramp based on time
Reply With Quote
  #8   Spotlight this post!  
Unread 03-03-2009, 15:54
lynca's Avatar
lynca lynca is offline
Andrew Lynch
FRC #2587 (DiscoBots)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Houston, TX
Posts: 1,612
lynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond repute
Send a message via AIM to lynca
Re: Basic Robot Main vi

This thread also posts multiple versions of autonomous,

http://www.chiefdelphi.com/forums/sh...590#post828590
__________________
History: 624 - Cryptonite --> 118 - Robonauts --> 2158 - AusTIN CANS --> 2587 DiscoBots
Bio: Andrew Lynch "How I Work" ---- LinkedIn , Facebook, Twitter
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
Using Robot Main LiLFiL Programming 1 14-02-2009 18:51
Coordinating Robot Main VI with Autonomous VI jjauss Programming 2 07-02-2009 09:26
Dashboard and Robot main with Axis camera Team2883 General Forum 9 10-01-2009 07:35
Basic Robot Layout gsorozco Technical Discussion 8 12-02-2006 19:15
Basic Robot Layout gsorozco Website Design/Showcase 0 30-01-2006 02:13


All times are GMT -5. The time now is 18:07.

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