Hello all! Well, my partners and I are implementing the control scheme on an autonomous robot. We are using a laser ranger and infrared for obstacle avoidance, and a GPS plus digital compass for navigation.
We plan on using the compass to keep our robot heading straight. I figured (after some reading) that a PID algorithm would probably be the best way to keep it in line without oscillation. Previous groups had such a problem, with their bot continuously overshooting its setpoint. Our plan is to use the compass heading as our sensor reading, and to use this algorithm to control the motors in order to bring the robot smoothly back onto its proper path.
Can anyone point me in the direction of some C source code? We are running this on Linux (CentOS) laptop as well. I understand that there will be much testing and fine-tuning necessary, but I'm hoping having some code on hand will at least help us get a place to start.
Thank you, I appreciate it.