|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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?
|
|
#2
|
|||
|
|||
|
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.
|
|
#3
|
|||
|
|||
|
Re: Line Tracking VI. drives in half a circle...?
but this is the default code... i dont understand why is it not attempting..
|
|
#4
|
|||
|
|||
|
Re: Line Tracking VI. drives in half a circle...?
Did you open up your sensors as IR1 IR2 and IR3? in begin.vi?
|
|
#5
|
|||
|
|||
|
Re: Line Tracking VI. drives in half a circle...?
yes sir
|
|
#6
|
|||
|
|||
|
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?
|
|
#7
|
|||
|
|||
|
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 |
|
#8
|
|||
|
|||
|
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? |
|
#9
|
|||
|
|||
|
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.. |
|
#10
|
|||
|
|||
|
Re: Line Tracking VI. drives in half a circle...?
Ok, let me know what happens there. IF it doesn't work, I would recheck the wiring. And calibration cause that would rule out the programming problem.
|
|
#11
|
|||
|
|||
|
Re: Line Tracking VI. drives in half a circle...?
it works; whats the problem with the default code?
|
|
#12
|
|||
|
|||
|
Re: Line Tracking VI. drives in half a circle...?
Thats a good question
. We just erased it and wrote our own code from scratch. I would suggest that since the default code isn't working.Ethan |
|
#13
|
||||
|
||||
|
Re: Line Tracking VI. drives in half a circle...?
The default code wants you yo use the black wire, not the white. You can just invert the signal in the tele op code and I bet it works.
|
|
#14
|
|||
|
|||
|
Re: Line Tracking VI. drives in half a circle...?
Could you please provide a screen shot of your code as to how you would recommend programming the wheels to turn?
|
|
#15
|
|||
|
|||
|
Re: Line Tracking VI. drives in half a circle...?
It has case statements heavily nested in it so it won't be to much help. Basically we said if both sensors are off the line go straight, if left sensor is on the line make the right wheel spin a little faster till its off. If right is on the line, make the left wheel spin a little faster.
The middle sensor stays on at all times and if all of them end off the line, it knows which sensor saw the line last and turns that way. Ethan |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|