Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Line Tracking VI. drives in half a circle...? (http://www.chiefdelphi.com/forums/showthread.php?t=90551)

Must Be Drama 30-01-2011 19:42

Line Tracking VI. drives in half a circle...?
 
it pretty much really reflects it self... how to fix this please i need help

Ethan Spitz 30-01-2011 20:47

Re: Line Tracking VI. drives in half a circle...?
 
Can you post your code? I can't really help without seeing what you have.

Ethan

Greg McKaskle 30-01-2011 21:36

Re: Line Tracking VI. drives in half a circle...?
 
The default code will drive in a half circle if it is placed on the wrong side of the line and then auto is run. In general, I believe it is best to have one of the sensors on the line, and even better, a known starting condition.

Greg McKaskle

Must Be Drama 30-01-2011 22:01

Re: Line Tracking VI. drives in half a circle...?
 
Quote:

Originally Posted by Greg McKaskle (Post 1012066)
The default code will drive in a half circle if it is placed on the wrong side of the line and then auto is run. In general, I believe it is best to have one of the sensors on the line, and even better, a known starting condition.

Greg McKaskle

can you explain wrong side of line?

j.cole 30-01-2011 22:09

Re: Line Tracking VI. drives in half a circle...?
 
I'd say check your IR sensor placement and make sure that its not a hardware problem before you blame the code

Alan Anderson 30-01-2011 22:50

Re: Line Tracking VI. drives in half a circle...?
 
Quote:

Originally Posted by Must Be Drama (Post 1012086)
can you explain wrong side of line?

If you have told the robot to track the left edge of a line but you've placed it so the sensors are to the right of the line, it will turn right looking for the line and not find it.

Must Be Drama 31-01-2011 18:28

Re: Line Tracking VI. drives in half a circle...?
 
Quote:

Originally Posted by Alan Anderson (Post 1012138)
If you have told the robot to track the left edge of a line but you've placed it so the sensors are to the right of the line, it will turn right looking for the line and not find it.

okay il say our set up... we have last years robot we attached the sensers to the front. our previous robot has mech wheels.. i watched the frcmastery video but it doesnt help us any thing else could i say so some one could help us?

Ethan Spitz 31-01-2011 18:30

Re: Line Tracking VI. drives in half a circle...?
 
well if you don't think its related to sensor trimming or hardware then I highly suggest rewriting your coding.

Must Be Drama 31-01-2011 18:40

Re: Line Tracking VI. drives in half a circle...?
 
Quote:

Originally Posted by Ethan Spitz (Post 1012714)
well if you don't think its related to sensor trimming or hardware then I highly suggest rewriting your coding.

but this is the default code... i dont understand why is it not attempting..

Ethan Spitz 31-01-2011 18:43

Re: Line Tracking VI. drives in half a circle...?
 
Quote:

Originally Posted by Must Be Drama (Post 1012718)
but this is the default code... i dont understand why is it not attempting..

Did you open up your sensors as IR1 IR2 and IR3? in begin.vi?

Must Be Drama 31-01-2011 18:46

Re: Line Tracking VI. drives in half a circle...?
 
Quote:

Originally Posted by Ethan Spitz (Post 1012726)
Did you open up your sensors as IR1 IR2 and IR3? in begin.vi?

yes sir

Ethan Spitz 31-01-2011 18:47

Re: Line Tracking VI. drives in half a circle...?
 
Quote:

Originally Posted by Must Be Drama (Post 1012727)
yes sir

Are the sensors plugged into the correct DIO ports? And correct order or LO and DO?

Must Be Drama 31-01-2011 18:51

Re: Line Tracking VI. drives in half a circle...?
 
Quote:

Originally Posted by Ethan Spitz (Post 1012728)
Are the sensors plugged into the correct DIO ports? And correct order or LO and DO?

1=left 2=middle 3=right
all using the white wire..

the power from each goes into the power distribution board and i have 20 amp breakers on each

Ethan Spitz 31-01-2011 18:54

Re: Line Tracking VI. drives in half a circle...?
 
Hmmm. Try writing code to see if you man say make a wheel speed up when you cover the sensor or it sees the line etc.

Also the sensor should change from green to and orange red light when its on the line. Does yours do that?

Must Be Drama 31-01-2011 18:58

Re: Line Tracking VI. drives in half a circle...?
 
Quote:

Originally Posted by Ethan Spitz (Post 1012739)
Hmmm. Try writing code to see if you man say make a wheel speed up when you cover the sensor or it sees the line etc.

Also the sensor should change from green to and orange red light when its on the line. Does yours do that?

il try the make a motor spin if reflected.

and yes it does change colors and it does show up in the drivers station under gpio state..


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

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