We’re having trouble with our camera. We are unable to get it to track properly. We have followed the Tutorial 7 in easyC, and have an understanding of how it works. We have tried using both the 3 pin RS-232 to TTL converter, and a TTL to TTL cable. We can initialize the camera (which is extremely slow ~20 seconds), but we can’t GetTrackingData. The function just hangs in the terminal window.
Are there more settings? Is there a way to tell if the data is even coming off the camera board?
You can view the data coming from the camera by setting an internal variable to 1. To do this you need two blocks:
User code block with an extern declaration: extern unsigned char _camera_debug;
Then add an assignment block before the camera is initialized that has: _camera_debug = 1;
This will cause the stream of initialization commands that are sent to the camera to be displayed in the terminal window. You won’t see the actual tracking data being returned since that is in binary.
If you don’t see the initialization data being sent, then look for problems with the camera connections.
There are no ACKs coming back from the camera. Can you try either cycling the power or holding down the reset on the robot controller for about 5 seconds and see if it starts working. You should see an ACK after each of those commands in your terminal window output.
Sometimes the camea seems to get into a state where it won’t respond next time it is run. Give that a try and see if it starts working.