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.
62 lines
1.1 KiB
62 lines
1.1 KiB
#include "stdafx.h"
|
|
|
|
#ifdef __BORLANDC__
|
|
#include "..\LgLib\Version.h"
|
|
#include "..\LgLib\Device\DDopler.h"
|
|
#else
|
|
#include "..\Version.h"
|
|
#include "DDopler.h"
|
|
#endif
|
|
|
|
CLgDeviceDopler::CLgDeviceDopler()
|
|
{
|
|
|
|
}
|
|
|
|
CLgDeviceDopler::~CLgDeviceDopler()
|
|
{
|
|
|
|
}
|
|
|
|
BOOL CLgDeviceDopler::CmdSetDopler( BOOL bEnable, PTZ_DEGREE dPanStep, DWORD dwTimeout )
|
|
{
|
|
// check availibility
|
|
if( !DoCmd( CMD_SET_DOPLER ) )
|
|
return FALSE;
|
|
|
|
// store command data
|
|
m_Dopler.bEnable = bEnable;
|
|
m_Dopler.dPanStep = dPanStep;
|
|
m_Dopler.dwTimeout = dwTimeout;
|
|
return TRUE;
|
|
}
|
|
|
|
BOOL CLgDeviceDopler::CmdGetDopler()
|
|
{
|
|
// check availibility
|
|
if( !DoCmd( CMD_GET_DOPLER ) )
|
|
return FALSE;
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
BOOL CLgDeviceDopler::CmdSetDoplerMask( PDOPLER_MASK_ARRAY pMask )
|
|
{
|
|
// check availibility
|
|
if( !DoCmd( CMD_SET_DOPLER_MASK ) )
|
|
return FALSE;
|
|
|
|
// store command data
|
|
m_Mask = *pMask;
|
|
return TRUE;
|
|
}
|
|
|
|
BOOL CLgDeviceDopler::CmdGetDoplerMask()
|
|
{
|
|
// check availibility
|
|
if( !DoCmd( CMD_GET_DOPLER_MASK ) )
|
|
return FALSE;
|
|
|
|
return TRUE;
|
|
}
|
|
|