<< return to Pixycam.com

Question about the Arduino code RCS position

This is probably obvious since I can’t seem to find it spelled out for me.

IN the arduino code for the pixy cam, we define these points.

#define X_CENTER 160L
#define Y_CENTER 100L
#define RCS_MIN_POS 0L
#define RCS_MAX_POS 1000L

What does the RCS stand for? I assume it is for the motor, since it is used to set the servo positions. What are these units? Pulsewidths?

Is the x_center & y_center the definition for the center of the camera picture? Is it a valid assumption the box for the camera is 0 to 320 for the x axis and 0 to 200 in the y?

Thanks!

Hello, to answer your questions, see below:

What does the RCS stand for?
It stands for RC-servo I believe.

I assume it is for the motor, since it is used to set the servo positions. What are these units? Pulsewidths?
The X_CENTER and Y_CENTER are in pixels. 160, 100 is the center of the image. Image is 320x200 resolution (correct).

The other values for RCS_MIN/MAX are in microseconds(?), but you should think of them as just an angle value for the servo, where 0 is on one end of travel (rotation) and 1000 is on the opposite end of travel.

Hope this helps!