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

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  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. {
  22. E_MODE_DISABLED = 0,
  23. E_MODE_ENABLED_MASTER = 1,
  24. E_MODE_ENABLED_SLAVE,
  25. E_MODE_SIMULATOR_MASTER,
  26. E_MODE_SIMULATOR_SLAVE
  27. } detectionMODE;
  28. class targetDetector : public basicObject
  29. {
  30. protected:
  31. unsigned long long m_lTimeStamp;
  32. detectionMODE m_eWorkingMode;
  33. int m_nSimPartCounter;
  34. unsigned long long m_lSimTimeStamp;
  35. unsigned long long m_lSimTimeShift;
  36. public:
  37. targetDetector();
  38. ~targetDetector();
  39. bool loadParameters(void);
  40. bool create(void);
  41. void setWorkMode(detectionMODE A)
  42. {
  43. m_eWorkingMode = A;
  44. }
  45. void validate(unsigned long long TS);
  46. bool getTarget(int & Range, int & Angle, int & Azi);
  47. };
  48. #endif