25 #ifndef __ViscaControl_hh__
26 #define __ViscaControl_hh__
28 #include <bias_config.h>
29 #ifdef BIAS_HAVE_PTHREADS
35 #include <Base/Common/W32Compat.hh>
38 #include <Utils/SerialPortIO.hh>
39 #include <Base/Debug/Debug.hh>
40 #include <Base/Debug/Error.hh>
70 bool InitPanTiltUnit(std::string port);
94 void MoveRelative(
short relPan,
short relTilt);
95 void MoveAbsolute(
short panPos,
short tiltPos);
96 void MovePhysical(
short panSteps,
short tiltSteps);
98 void CamPower(
bool mode);
99 bool ClosePanTiltUnit();
100 void PanTiltPosInq();
107 panSpeed_ = panSpeed;
110 tiltSpeed_ = tiltSpeed;
115 activeUnit_ = activeUnit;
124 void ResetCamCustom();
126 void ZoomDirect(
short zoom);
129 bool SetCCDScanningMode(VISCA_CONSTANT mode);
136 void ContinuousRead();
146 int SendCommand_(
unsigned char* buf,
int length,
147 bool manageAnswer=
true);
148 int CamInitialize_();
151 #ifdef BIAS_HAVE_PTHREADS
157 unsigned char sendBuffer[16];
BIAS::SerialPortIO serialIO_
Communication over the serial port, use OpenPort with e.g.
unsigned char activeUnit_
void SetPanSpeed(unsigned char panSpeed)
for use with Sony PanTilt Cameras, also compatible with WISKA PanTilt Cameras.
void SetTiltSpeed(unsigned char tiltSpeed)
void SetActiveUnit(unsigned char activeUnit)