Go to Post Competition and inspiration go hand in hand. Those who inspire will be pushed to do it again and again by those who see this as a healthy competition. Those who are inspired will compete to be an inspiration to others. You can have your cake (competition) and eat it (inspire) too. - Andy Baker [more]
Home
Go Back   Chief Delphi > Technical > National Instruments LabVIEW and Data Acquisition
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 22-02-2011, 19:57
Tub Tubs Tub Tubs is offline
Registered User
FRC #3049
 
Join Date: Feb 2010
Location: Washington
Posts: 23
Tub Tubs is an unknown quantity at this point
Autonomous Program HELP!

Hello, i made an autonomous program, and i would like to see if it will work, could anybody give me feedback?
Attached Thumbnails
Click image for larger version

Name:	Labview Auto.JPG
Views:	45
Size:	58.8 KB
ID:	10274  
Reply With Quote
  #2   Spotlight this post!  
Unread 22-02-2011, 20:26
MotorHead's Avatar
MotorHead MotorHead is offline
Programming Mentor
AKA: Jeff Beltramo
FRC #1922 (OZ-Ram)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Concord, NH
Posts: 68
MotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to behold
Re: Autonomous Program HELP!

In your while loops, you do not need to increment the counter 'i'. Each time through the loop it will increment itself. Other than that it should work. For a little more accurate timing, you could use a timer and a shift register. If you are not familiar with those, probably don't want to go down that path at this time.
__________________
Jeff Beltramo
Team #1922
Concord, New Hampshire

Reply With Quote
  #3   Spotlight this post!  
Unread 23-02-2011, 00:20
darist darist is offline
Registered User
AKA: David Aristizabal
no team
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Newark, NJ
Posts: 36
darist is an unknown quantity at this point
Re: Autonomous Program HELP!

Looks to me like it would work just fine.

I think the i + 1 is OK in the loop... it makes sure the loop executes exactly the number of times you want. In the left-most loop, that would be 200 times. If you took out the +1, it would execute 199 times. You could clean it up a bit by changing the while loop to a for loop, then wire 200 to the N terminal of the for loop (it would do the exact same thing, just easier to read).

I agree that you would get more accurate timing using timer functions. In your case, you are assuming that each iteration of the loop will take exactly 50ms. However, each iteration will take a bit longer: 50ms running the "wait" block, some time running the DriveMotors block, plus whatever it takes to loop back around. Over a few hundred iterations, that error will add up, but I don't think it will matter too much in our case: 10s may end up being 10.1s.

David
Reply With Quote
  #4   Spotlight this post!  
Unread 23-02-2011, 08:52
DavidGitz's Avatar
DavidGitz DavidGitz is offline
Lead Technical Advisor
FRC #1208 (MeTool Brigade)
Team Role: Coach
 
Join Date: Dec 2006
Rookie Year: 1996
Location: O'Fallon, IL
Posts: 341
DavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud of
Send a message via AIM to DavidGitz Send a message via MSN to DavidGitz Send a message via Yahoo to DavidGitz
Re: Autonomous Program HELP!

You probably already caught this, but you need a reference name for your Arcade Drive.
__________________
Reply With Quote
  #5   Spotlight this post!  
Unread 23-02-2011, 15:53
Tub Tubs Tub Tubs is offline
Registered User
FRC #3049
 
Join Date: Feb 2010
Location: Washington
Posts: 23
Tub Tubs is an unknown quantity at this point
Re: Autonomous Program HELP!

Thanks, i will deploy and try at competition
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


All times are GMT -5. The time now is 16:09.

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