Sharp GP2D12 IR Sensor
I am new to this forum/concept so I hope I am doing it correct. I have a Sharp GP2D12 IR Sensor, a bs2, and a bot board 2. Question: I am trying to initiate autonomous/avoidance behavior with said sensor. It is working except for the fact that the distance is off. It will only read a certain distance, ~7 inches, which would be fine, but with the 10 lb robot, when it goes into its stop routine it crashes into the obstacle due to its momentum. I seem to have done all that I can with the motor routines, so how can I adjust the distance that the sensor reads and adjust for that? I know that I am missing something here, but I just don't know what. Thank you very much for your help.
Comments