it pretty much really reflects it self… how to fix this please i need help
Can you post your code? I can’t really help without seeing what you have.
Ethan
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?
I’d say check your IR sensor placement and make sure that its not a hardware problem before you blame the code
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?
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…
Did you open up your sensors as IR1 IR2 and IR3? in begin.vi?
yes sir
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
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…
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.
it works; whats the problem with the default code?
Thats a good question :P. We just erased it and wrote our own code from scratch. I would suggest that since the default code isn’t working.
Ethan
are you willing to help us develop?
Sure. Basically you want to create nested case statements for each combination you can get with the light sensors.
How many sensors are you using? I suggest programming 2 and then adding in a 3rd after you finish that.