Please keep questions in the thread so others may participate.
about the code you were saying how do i put this code in. my robot will be running on a computer as apposed to a microcontroller because it is harder to program. so what software do i use?
That is up to you but Python is a good programming language. It is free just google it.
Maybe some one else can make a suggestion.