Go to Post Engineering is NOT manufacturing. .... It is good to be able to fabricate things with your own hands, but thats not what engineers do. - KenWittlief [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 21-01-2011, 23:19
darkMatt3r darkMatt3r is offline
Brah Everyday
AKA: Matt Pearring
FRC #1378 (Hilo Viking Robotics)
Team Role: Driver
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Hawaii
Posts: 20
darkMatt3r is an unknown quantity at this point
Line Follower Program Help

Hey all,

I've been trying to program our practice bot to follow the lines on the ground of the playing field. I've been looking at the sample code that LabVIEW supplies, but i can't quite understand how it integrates with the drive system and how I can program it to work. There are a few resources on how to program the line follower, but no clear directions.

Does anyone have a code that works and can be modified, or advice?

thanks.

-Matt
Reply With Quote
  #2   Spotlight this post!  
Unread 21-01-2011, 23:42
DFZXA DFZXA is offline
Registered User
FRC #3055 (Furious George)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2007
Location: Minnesota
Posts: 60
DFZXA is infamous around these parts
Re: Line Follower Program Help

I believe that the sample code is run in autonomous so make sure that you are set to autonmous when using it
Reply With Quote
  #3   Spotlight this post!  
Unread 21-01-2011, 23:45
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: Line Follower Program Help

You should also check out this document by National Instruments. It explains the line following algorithm used.

http://decibel.ni.com/content/docs/DOC-14730
__________________
Jeff Beltramo
Team #1922
Concord, New Hampshire

Reply With Quote
  #4   Spotlight this post!  
Unread 21-01-2011, 23:48
darkMatt3r darkMatt3r is offline
Brah Everyday
AKA: Matt Pearring
FRC #1378 (Hilo Viking Robotics)
Team Role: Driver
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Hawaii
Posts: 20
darkMatt3r is an unknown quantity at this point
Re: Line Follower Program Help

Haha.. thanks... that was a fail on my part

Is there anyway i can make the motors go slower during the autonomous program?
Reply With Quote
  #5   Spotlight this post!  
Unread 22-01-2011, 01:16
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,112
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: Line Follower Program Help

Quote:
Originally Posted by darkMatt3r View Post
Is there anyway i can make the motors go slower during the autonomous program?
There's a control named "StraightPower" on the Autonomous Independent vi's front panel. It's an array of values, one for each second of autonomous, used when the sensors say the robot should drive straight. Change them to be what you want, then right-click and choose "Data Operations -> Make Current Value Default" to make them stick. Depending on your drivebase configuration, you should probably also change the "Y Power" array, which is used when turning.
Reply With Quote
  #6   Spotlight this post!  
Unread 23-01-2011, 18:14
LinuxArchitect LinuxArchitect is offline
Registered User
AKA: George Boyce
FRC #0053 (Cow Abductors)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Greenbelt MD
Posts: 78
LinuxArchitect is a name known to allLinuxArchitect is a name known to allLinuxArchitect is a name known to allLinuxArchitect is a name known to allLinuxArchitect is a name known to allLinuxArchitect is a name known to all
Re: Line Follower Program Help

I found the NI tutorial, but I must be blind; I can't find the sample code. Where is it located or what is it called? Yes, I installed the 2011 version of labview and the first update.

Nevermind. I was looking for it in examples, not in the default robot code itself.
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 10:17.

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