Hi. I'm on a really tight schedule to get my RCX line follower functioning for final bit of my disso but thanks to poor planning on my part [been a bit of a horrid year], I only have one LED [light] sensor and one bumper sensor.
I'm using Java, leJOS and Eclipse. Problem is, all the code I have is best for two-sensor robots. I've tried to adapt it but I'm stumped. My programming days consisted of Pascal and VB.net.
In short, I upload the code and the RCX reads "87.0" and doesn't work. I cannot seem to find example programs to help me write one that'll meet requirements...
So far I have planned... RCX - algorithms (1 sensor, 1 bumper):
1-Follow line edge.
2-Lose light, seek left and right until line is found.
3-Grey-scale: Sensor reads 50% and moves forward, turns anti-clockwise/clockwise until re-acquires... maybe.
I'm just not good with Java. >_< Help would be so appreciated.
Still gotta do some stuff with the NXT using different sensors but that should be covered.