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.
55 lines
1.3 KiB
55 lines
1.3 KiB
// SensorDopler.h: interface for the CSensorDopler class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_SENSORDOPLER_H__B9579E03_065F_4E5A_8391_4F4349C5CB58__INCLUDED_)
|
|
#define AFX_SENSORDOPLER_H__B9579E03_065F_4E5A_8391_4F4349C5CB58__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#include "..\DLIB\Sensor.h"
|
|
#include "..\DLIB\DeviceDopler.h"
|
|
|
|
class CSensorDopler : public CSensor
|
|
{
|
|
public:
|
|
CSensorDopler();
|
|
virtual ~CSensorDopler();
|
|
|
|
public:
|
|
void ConnectToDevice( CDeviceDopler *pDopler );
|
|
|
|
public:
|
|
BOOL SetDoplerMask( CLgDeviceDopler::DOPLER_MASK_ARRAY* );
|
|
|
|
protected:
|
|
virtual void OnUIMapDraw( CLgUIMapObjectWnd *pMap, CDC *pDC, BOOL bActive, BOOL bOddUpdate ) {}
|
|
virtual void OnUIMapDrawBackground( CLgUIMapObjectWnd *pMap, CDC *pDC ) {}
|
|
|
|
public:
|
|
void CheckState();
|
|
|
|
private:
|
|
CDeviceDopler *m_pDevice;
|
|
|
|
private:
|
|
struct DOPLEREVENT
|
|
{
|
|
enum{ ET_ALARM, ET_MASK };
|
|
|
|
BYTE id;
|
|
SYSTEMTIME time;
|
|
|
|
CLgDeviceDopler::DOPLER_ALARM alarm;
|
|
CLgDeviceDopler::DOPLER_MASK_ARRAY mask;
|
|
};
|
|
|
|
CLgQueueP<DOPLEREVENT,100> m_Queue;
|
|
|
|
private:
|
|
CLgDeviceDopler::DOPLER_MASK_ARRAY m_Mask;
|
|
};
|
|
|
|
#endif // !defined(AFX_SENSORDOPLER_H__B9579E03_065F_4E5A_8391_4F4349C5CB58__INCLUDED_)
|