So I need to find objects in an enclosed area, I have access to the standard set of NXT sensors, i.e. ultrasonic/light.
However, the ultrasonic sensors seem to be very unreliable and erratic, in regards to finding objects accurately.
I cannot pre-program the path to the objects, so I'm trying to work out how is the best way to go about locating these objects? The objects are small, and on the floor.
I was thinking a sort of swivel motion at the start, to find any objects using the ultrasonic, and then just moving a small distance at a time, then swivelling again etc. Are there any other better ideas?
Also, there is a wall enclosing the area, would there be a way of programming the NXT to avoid it?
I'll be programming the NXT in NXC. Can't afford LIDAR :(
while ((i = SensorUS(IN_1)) == 255) {}
should do the trick. Maybe that helps increasing reliability?