You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.1 KiB
44 lines
1.1 KiB
#ifndef __OBJECT_CAMERA_VISCA_PTZ_HEADERS__
|
|
#define __OBJECT_CAMERA_VISCA_PTZ_HEADERS__
|
|
|
|
#ifndef __linux__
|
|
#include <WinSock2.h>
|
|
#endif
|
|
|
|
#include "../base/basicCameraPTZ.h"
|
|
#include "../../data/media/video/videoAVLIBSource.h"
|
|
#include "../../data/media/mediaVideoSourceManager.h"
|
|
#include "../../hardware/uart/serialPort.h"
|
|
#include "../../data/protocol/protocolPTZ_VISCA.h"
|
|
#include <libconfig.h>
|
|
|
|
class objectCamera_VISCA_PTZ : public basicCameraPTZ {
|
|
private:
|
|
basicLogCollection *m_pLog;
|
|
int m_sSourcePort;
|
|
protected:
|
|
protocolPTZ_VISCA *m_pProtocol;
|
|
serialPort *m_pTransport;
|
|
public:
|
|
explicit objectCamera_VISCA_PTZ(config_setting_t *Settings = NULL);
|
|
~objectCamera_VISCA_PTZ();
|
|
|
|
bool create( void );
|
|
bool create( mediaSourceInfo *SI );
|
|
|
|
void cmdBeginPanLeft(void);
|
|
void cmdBeginPanRight(void);
|
|
void cmdEndManualPan(void);
|
|
|
|
void cmdBeginTiltUp(void);
|
|
void cmdBeginTiltDown(void);
|
|
void cmdEndManualTilt(void);
|
|
|
|
void cmdBeginZoomWide(void);
|
|
void cmdBeginZoomTele(void);
|
|
void cmdEndManualZoom(void);
|
|
|
|
virtual void dispatch( basicEvent *Evt );
|
|
};
|
|
|
|
#endif
|