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.

46 lines
1.3 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Dr.Frucht Systems Ltd.
  3. // Copyright © 2000-2016. All Rights Reserved.
  4. // Version 2.0 3/29/2016
  5. // Last modification: 3/29/2016
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: detector.h
  9. // AUTHOR: gagua
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of detector.h
  13. //----------------------------------------------------------------------------
  14. //
  15. #ifndef __ALG_DETECTOR_HEADER__
  16. #define __ALG_DETECTOR_HEADER__
  17. //#include "../globals/projectSettings.h"
  18. #include "../../components/base/basicObject.h"
  19. #include "detectorStructures.h"
  20. typedef enum E_detectionMODE{
  21. E_MODE_DISABLED = 0,
  22. E_MODE_ENABLED_MASTER = 1,
  23. E_MODE_ENABLED_SLAVE,
  24. E_MODE_SIMULATOR_MASTER,
  25. E_MODE_SIMULATOR_SLAVE
  26. } detectionMODE;
  27. class targetDetector: public basicObject {
  28. protected:
  29. unsigned long long m_lTimeStamp;
  30. detectionMODE m_eWorkingMode;
  31. int m_nSimPartCounter;
  32. unsigned long long m_lSimTimeStamp;
  33. unsigned long long m_lSimTimeShift;
  34. public:
  35. targetDetector();
  36. ~targetDetector();
  37. bool loadParameters( void );
  38. bool create( void );
  39. void setWorkMode( detectionMODE A ){ m_eWorkingMode = A; };
  40. void validate( unsigned long long TS );
  41. bool getTarget( int &Range, int &Angle, int &Azi );
  42. };
  43. #endif