Go to Post Be afraid. Be very, very, graciously afraid. - Rich Kressly [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 19-02-2010, 17:18
Wicked Wicked is offline
Registered User
FRC #0354 (G-House Pirates)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2008
Location: New York
Posts: 46
Wicked is an unknown quantity at this point
Autonomous Programming

This is what we're trying to do:

Use the optical encoder, in place of a joystick, to control the motors, by setting the motors to perform different actions when the encoder gives back a certain reading.

How exactly would we go about doing this?
Reply With Quote
  #2   Spotlight this post!  
Unread 11-03-2010, 14:05
randalcr's Avatar
randalcr randalcr is offline
Programming Mentor
AKA: Chance Randall
FRC #0476 (Wildcats)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Ponca City
Posts: 82
randalcr is an unknown quantity at this point
Smile Re: Autonomous Programming

When I was programming our autonomous I used the Delay and Feed block under the watchdog blocks and just passed the Error reference in between the bits of code I wanted to have execute. I'll try to post a example of this as soon as I can.
__________________
-Time is the best teacher...unfortunately it kills all of its students. --Robin Williams
Reply With Quote
  #3   Spotlight this post!  
Unread 11-03-2010, 16:52
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Autonomous Programming

Use the encoder value as the input to a case statement. Name the cases as ranges like "0..2499" and "2500..6999", and set the motors appropriately in each case.

Either put the whole thing in a while loop, or use Autonomous Iterative which calls your code repeatedly.
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
autonomous programming solomason519 NI LabVIEW 4 10-03-2009 12:30
CMUcam autonomous programming kshot Programming 1 17-01-2005 19:18
Autonomous Programming Guide cbolin Programming 2 16-12-2004 15:13
Autonomous programming Dush Programming 4 20-02-2003 09:54
autonomous sensor programming ? Laura_d Programming 1 10-02-2003 17:46


All times are GMT -5. The time now is 21:58.

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