Remote control of motors using C/C++
Posted: 28 Jan 2011, 14:37
Hi,
I'm wondering if the NXT motors can be controlled using a c/c++ program in real time. I have a project that contains several other c++ files which basically layout a maze for the robot to follow. I would like to read in the encoder values so that the numbers can be used in my other source files to calculate where in the maze the robot currently is. Then depending on the location in the maze i want to be able to send motor controls back to the robot. (all done through USB).
I'm basically setting up a maze for my robot to go through, only its all virtual. If this can not be done using the NXT controller brick any recommendations of how to do it with a different controller? i know adrinuo and legos popular but i dont know if adrinuo can be controlled this way either.
Any ideas?
Thanks
I'm wondering if the NXT motors can be controlled using a c/c++ program in real time. I have a project that contains several other c++ files which basically layout a maze for the robot to follow. I would like to read in the encoder values so that the numbers can be used in my other source files to calculate where in the maze the robot currently is. Then depending on the location in the maze i want to be able to send motor controls back to the robot. (all done through USB).
I'm basically setting up a maze for my robot to go through, only its all virtual. If this can not be done using the NXT controller brick any recommendations of how to do it with a different controller? i know adrinuo and legos popular but i dont know if adrinuo can be controlled this way either.
Any ideas?
Thanks