Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Line Follower Program Help (http://www.chiefdelphi.com/forums/showthread.php?t=89760)

darkMatt3r 21-01-2011 23:19

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

DFZXA 21-01-2011 23:42

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

MotorHead 21-01-2011 23:45

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

darkMatt3r 21-01-2011 23:48

Re: Line Follower Program Help
 
Haha.. thanks... that was a fail on my part :yikes:

Is there anyway i can make the motors go slower during the autonomous program?

Alan Anderson 22-01-2011 01:16

Re: Line Follower Program Help
 
Quote:

Originally Posted by darkMatt3r (Post 1005455)
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.

LinuxArchitect 23-01-2011 18:14

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.


All times are GMT -5. The time now is 10:17.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi