Old fashion design for PC-104
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

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #include "stdafx.h"
  2. #ifdef __BORLANDC__
  3. #include "..\LgLib\Version.h"
  4. #include "..\LgLib\Device\DDopler.h"
  5. #else
  6. #include "..\Version.h"
  7. #include "DDopler.h"
  8. #endif
  9. CLgDeviceDopler::CLgDeviceDopler()
  10. {
  11. }
  12. CLgDeviceDopler::~CLgDeviceDopler()
  13. {
  14. }
  15. BOOL CLgDeviceDopler::CmdSetDopler( BOOL bEnable, PTZ_DEGREE dPanStep, DWORD dwTimeout )
  16. {
  17. // check availibility
  18. if( !DoCmd( CMD_SET_DOPLER ) )
  19. return FALSE;
  20. // store command data
  21. m_Dopler.bEnable = bEnable;
  22. m_Dopler.dPanStep = dPanStep;
  23. m_Dopler.dwTimeout = dwTimeout;
  24. return TRUE;
  25. }
  26. BOOL CLgDeviceDopler::CmdGetDopler()
  27. {
  28. // check availibility
  29. if( !DoCmd( CMD_GET_DOPLER ) )
  30. return FALSE;
  31. return TRUE;
  32. }
  33. BOOL CLgDeviceDopler::CmdSetDoplerMask( PDOPLER_MASK_ARRAY pMask )
  34. {
  35. // check availibility
  36. if( !DoCmd( CMD_SET_DOPLER_MASK ) )
  37. return FALSE;
  38. // store command data
  39. m_Mask = *pMask;
  40. return TRUE;
  41. }
  42. BOOL CLgDeviceDopler::CmdGetDoplerMask()
  43. {
  44. // check availibility
  45. if( !DoCmd( CMD_GET_DOPLER_MASK ) )
  46. return FALSE;
  47. return TRUE;
  48. }