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.
57 lines
1.3 KiB
57 lines
1.3 KiB
//----------------------------------------------------------------------------
|
|
// Dr.Frucht Systems Ltd.
|
|
// Copyright © 2000-2016. All Rights Reserved.
|
|
// Version 2.0 3/29/2016
|
|
// Last modification: 3/29/2016
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: detector.h
|
|
// AUTHOR: gagua
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of detector.h
|
|
//----------------------------------------------------------------------------
|
|
//
|
|
#ifndef __ALG_DETECTOR_HEADER__
|
|
#define __ALG_DETECTOR_HEADER__
|
|
|
|
// #include "../globals/projectSettings.h"
|
|
#include "../../components/base/basicObject.h"
|
|
#include "detectorStructures.h"
|
|
|
|
typedef enum E_detectionMODE
|
|
{
|
|
E_MODE_DISABLED = 0,
|
|
E_MODE_ENABLED_MASTER = 1,
|
|
E_MODE_ENABLED_SLAVE,
|
|
E_MODE_SIMULATOR_MASTER,
|
|
E_MODE_SIMULATOR_SLAVE
|
|
} detectionMODE;
|
|
|
|
class targetDetector : public basicObject
|
|
{
|
|
protected:
|
|
|
|
unsigned long long m_lTimeStamp;
|
|
detectionMODE m_eWorkingMode;
|
|
int m_nSimPartCounter;
|
|
unsigned long long m_lSimTimeStamp;
|
|
unsigned long long m_lSimTimeShift;
|
|
|
|
public:
|
|
|
|
targetDetector();
|
|
~targetDetector();
|
|
bool loadParameters(void);
|
|
bool create(void);
|
|
|
|
void setWorkMode(detectionMODE A)
|
|
{
|
|
m_eWorkingMode = A;
|
|
}
|
|
|
|
void validate(unsigned long long TS);
|
|
bool getTarget(int & Range, int & Angle, int & Azi);
|
|
};
|
|
|
|
#endif
|