Algorithms to control the robot

What problem are you solving? What is the algorithm?