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.
78 lines
1.5 KiB
78 lines
1.5 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT: Laserguard libraries
|
|
// SUBSYSTEM: Devices support library
|
|
// FILE: DPG3AD.h
|
|
// AUTHOR: Chizhevskiy Sergey
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of CLgDevicePTZHebron
|
|
//----------------------------------------------------------------------------
|
|
|
|
#ifndef __DEVICE__HEBRON__H__INCLUDED__
|
|
#define __DEVICE__HEBRON__H__INCLUDED__
|
|
|
|
#pragma once
|
|
|
|
#ifdef __BORLANDC__
|
|
#include "..\LgLib\Device\DDopler.h"
|
|
#include "..\LgLib\Comm\HEBRON.h"
|
|
#else
|
|
#include "DDopler.h"
|
|
#include "..\Comm\ProtLGSm.h"
|
|
#include "..\Comm\Hebron.h"
|
|
#endif
|
|
|
|
|
|
class CLgDevicePTZHebron : public CLgDeviceDopler
|
|
{
|
|
public:
|
|
CLgDevicePTZHebron();
|
|
virtual ~CLgDevicePTZHebron();
|
|
|
|
public:
|
|
virtual BOOL WriteProc( void *pProtocol, PLONG pTimeout );
|
|
virtual BOOL ReadProc( void *pProtocol, LONG lTimeout, BOOL bLastChance );
|
|
|
|
public:
|
|
BOOL CmdInit();
|
|
|
|
protected:
|
|
virtual void OnEvtInit() = 0;
|
|
|
|
private:
|
|
enum
|
|
{
|
|
STAGE_GOTO_POSITION,
|
|
STAGE_GET_POSITION,
|
|
};
|
|
|
|
public:
|
|
enum
|
|
{
|
|
CMD_INIT = CMD_DEVICE_DOPLER + 1,
|
|
|
|
EVT_INIT = EVT_DEVICE_DOPLER + 1,
|
|
};
|
|
|
|
private:
|
|
INT m_nMode;
|
|
BOOL m_bModeDopler;
|
|
INT m_nStage;
|
|
INT m_nNoReplyCount;
|
|
INT m_nNotInPositionCount;
|
|
|
|
private:
|
|
PTZ_POSITION m_TempPosition;
|
|
|
|
private:
|
|
INT m_nMaskIndex;
|
|
|
|
private:
|
|
void OnPerformCmd();
|
|
};
|
|
|
|
#endif
|