Quote:
|
Originally Posted by ajsetter
by "send commands" i meant that calling the Track_color() function, thats all. The thing was i would call it with a green value, and the camera didnt even look like it was responding. I think i'll try the camera.hex now and retry everything. a question: once i load camera.hex to the RC, and i then want to go and write my own code, do i just use the camera.mcw file and edit the files in frc_camera?
Thank you all for the help
|
In order to get the camera tracking, you don't need to send a Track_color() command, the code as is when unarchived, can be downloaded to the robot and will track the target. The tracking function is in Track_servo() in the tracking.c file and the definitions of the pwms to drive the camera servos are in tracking.h. (When connecting the camera, make sure that the jumper for power to the servos is on external power, since in Kevin's code you are powering the servos through the RC rather than the camera.