#include <ArVCC4.h>
Public Types | |
enum | { DELIM = 0x00, DEVICEID = 0x30, PANSLEW = 0x50, TILTSLEW = 0x51, STOP = 0x53, INIT = 0x58, PANTILT = 0x62, SETRANGE = 0x64, CONTROL = 0x90, POWER = 0xA0, ZOOMSTOP = 0xA2, ZOOM = 0xA3, FOOTER = 0xEF, HEADER = 0xFF } |
This class is for controlling the Canon VC-C4 camera.
Note that currently the pan/tilt commands send a stop to the camera, halting the previous command. The stop command waits for 200ms for processing. The same is true for the zoom commands.
Also note that the camera takes about 4 seconds to complete the power-on cycle, and 2 seconds for an init. Commands sent during these periods will be ignored, and may confuse the camera.
The camera's pan and tilt commands work on a number of units equal to (degrees / 0.1125). The panTilt function always rounds the conversion closer to zero, so that a magnitude greater than the allowable range of movement is not sent to the camera.
|