|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
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
|
||||
|
||||
|
Possible solution
The thing our team did was decide on a setup for the sensors....
It looks something like this: After deciding on this setup we came up with a boolean setup that would, based on which lights were coming back true, turn the robot. We also made the sensory aspect of this custom code activate by pressing and holding button one. When this happened, the robot would no longer recieve x-values from the controller but recieve x-values from the code. It still allowed for y-axis values from the contoller. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|