|
Re: How to rotate camera to target; motor to the angle of the camera
My suggestion would be to start with the sample code that came with the 2010 kit. Visit the different team code routines and review what the code does versus what you think you need it to do.
Finally, dig into the Autonomous Independent. It is built upon the Rotate to Target VI, which does a portion of your task, but not the whole thing.
If you have access to the robot, execute the code, make modifications, learn how to debug it to better understand what the sensors return, what values are sent to the motors, etc.
Finally, feel free to ask more questions if you need to.
Greg McKaskle
|