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.

123 lines
3.1 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Dr.Frucht Systems Ltd.
  3. // Copyright © 2000-2016. All Rights Reserved.
  4. // Version 2.0 3/30/2016
  5. // Last modification: 3/30/2016
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: detectorStructures.h
  9. // AUTHOR: gagua
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of detectorStructures.h
  13. //----------------------------------------------------------------------------
  14. //
  15. #ifndef __ALG_DETECTOR_STRUCTURES_HEADER__
  16. #define __ALG_DETECTOR_STRUCTURES_HEADER__
  17. #include "../../components/base/basicTypes.h"
  18. #define LGS_MIRROR_BLANK_RANGE 20
  19. #define LGS_BLIND_TYPE_MR_ENTER 0L
  20. #define LGS_BLIND_TYPE_MR_EXIT 1L
  21. #define LGS_BLIND_TYPE_180_DEGRESE_ENTER 2L
  22. #define LGS_BLIND_TYPE_FS_ENTER 3L
  23. #define LGS_BLIND_TYPE_FS_EXIT 4L
  24. #define LGS_BLIND_TYPE_PD_ENTER 5L
  25. #define LGS_BLIND_TYPE_PD_EXIT 6L
  26. #define LGS_BLIND_TYPE_180_DEGRESE_EXIT 7L
  27. #define LGS_BLIND_TYPE_FAR_FOG_ENTER 8L
  28. #define LGS_BLIND_TYPE_FAR_FOG_EXIT 9L
  29. #define LGS_BLIND_TYPE_NEAR_FOG_ENTER 10L
  30. #define LGS_BLIND_TYPE_NEAR_FOG_EXIT 11L
  31. typedef struct S_QPD{
  32. U8 nOffset;
  33. U8 nOrder;
  34. }QPD, *LPQPD;
  35. typedef struct S_SAF{
  36. INT16 nMax;
  37. INT16 nMin;
  38. }SAF, *LPSAF;
  39. #ifdef LGS_SETTINGS__
  40. typedef struct S_LGS_SETTINGS{
  41. LONG nOrder;
  42. LONG nOffset;
  43. LONG nDelta;
  44. LONG nWidth;
  45. LONG nFlip;
  46. LONG nShift;
  47. LONG nSun;
  48. }LGS_SETTINGS;
  49. typedef struct S_LGS_PARAMETERS{
  50. WORD nOrder;
  51. WORD nOffset;
  52. WORD nDelta;
  53. WORD nWidth;
  54. WORD nFlip;
  55. WORD nSun;
  56. BYTE bSST;
  57. }LGS_PARAMETERS, *PLGS_PARAMETERS;
  58. #endif
  59. typedef struct S_TARGET {
  60. uint8_t bType; // target type
  61. uint32_t nAngle; // target angle
  62. // BOOL bSent;
  63. #ifdef LOW_BIT_DATA
  64. uint8_t nRange; // target range
  65. uint16_t nWidth; // target width
  66. #else
  67. uint16_t nRange; // target range
  68. uint32_t nWidth; // target width
  69. #endif
  70. } TARGET, *PTARGET;
  71. typedef struct S_TARGET_EX {
  72. TARGET target;
  73. uint8_t nRemoveTime; // time when target shuld be removed as false alarm
  74. //uint8_t nDetectionTime; // time when begins comparison with other incoming targets
  75. uint8_t nLevel; // current SST level of target
  76. uint8_t bFlags;
  77. uint32_t nAngleMin; // scan2scan area left order in board angle units
  78. uint32_t nAngleMax; // scan2scan area right order in board angle units
  79. #ifdef LOW_BIT_DATA
  80. uint8_t nRangeMin; // scan2scan area bottom offset in board range units
  81. uint8_t nRangeMax; // scan2scan area top offset in board range units
  82. #else
  83. uint16_t nRangeMin; // scan2scan area bottom offset in board range units
  84. uint16_t nRangeMax; // scan2scan area top offset in board range units
  85. #endif
  86. } TARGET_EX, *PTARGET_EX, *LPTARGET_EX;
  87. typedef struct RAY {
  88. uint8_t bType;
  89. #ifdef LOW_BIT_DATA
  90. uint8_t nMin;
  91. uint8_t nMax;
  92. #else
  93. uint16_t nMin;
  94. uint16_t nMax;
  95. #endif
  96. } RAY, *LPRAY;
  97. typedef struct RAY_LINE {
  98. uint32_t nCount;
  99. LPRAY lpShadow;
  100. } RAY_LINE, *LPRAY_LINE;
  101. typedef struct HZ_POLYGON {
  102. U8 bType;
  103. uint32_t wCount;
  104. //LGS::LPHZ_POINT lpPoint;
  105. } HZ_POLYGON, *LPHZ_POLYGON;
  106. #endif