|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Line Tracking VI. drives in half a circle...?
it pretty much really reflects it self... how to fix this please i need help
|
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
Re: Line Tracking VI. drives in half a circle...?
can you explain wrong side of line?
|
|
#5
|
|||
|
|||
|
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
|
|
#6
|
|||||
|
|||||
|
Re: Line Tracking VI. drives in half a circle...?
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.
|
|
#7
|
|||
|
|||
|
Re: Line Tracking VI. drives in half a circle...?
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?
|
|
#8
|
|||
|
|||
|
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.
|
|
#9
|
|||
|
|||
|
Re: Line Tracking VI. drives in half a circle...?
but this is the default code... i dont understand why is it not attempting..
|
|
#10
|
|||
|
|||
|
Re: Line Tracking VI. drives in half a circle...?
Did you open up your sensors as IR1 IR2 and IR3? in begin.vi?
|
|
#11
|
|||
|
|||
|
Re: Line Tracking VI. drives in half a circle...?
yes sir
|
|
#12
|
|||
|
|||
|
Re: Line Tracking VI. drives in half a circle...?
Are the sensors plugged into the correct DIO ports? And correct order or LO and DO?
|
|
#13
|
|||
|
|||
|
Re: Line Tracking VI. drives in half a circle...?
Quote:
all using the white wire.. the power from each goes into the power distribution board and i have 20 amp breakers on each |
|
#14
|
|||
|
|||
|
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? |
|
#15
|
|||
|
|||
|
Re: Line Tracking VI. drives in half a circle...?
Quote:
and yes it does change colors and it does show up in the drivers station under gpio state.. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|