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.

183 lines
5.0 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
7 years ago
7 years ago
​
​
​
​
​
​
7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
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. typedef struct S_HW_PARAMS{
  40. uint32_t Q_shift: 9;
  41. uint32_t B_shift: 12;
  42. uint32_t AutostartMotors: 1;
  43. uint32_t SignalSimulator: 1;
  44. uint32_t BBinterlace: 3;
  45. uint32_t Spike_TH: 2;
  46. uint32_t Sunbit_filter: 1;
  47. uint32_t popo: 3;
  48. //---------------------------------
  49. uint16_t HorizontalFreq;
  50. uint16_t VerticalFreq;
  51. //---------------------------------
  52. uint16_t MirrorScanCount; // Encoder Counts ?
  53. uint16_t BaseScanCount;
  54. //---------------------------------
  55. uint8_t MirrorsCount;
  56. uint8_t DetectorsCount;
  57. //---------------------------------
  58. uint16_t isMaster: 1;
  59. uint16_t LaserPulsesOn: 1;
  60. uint16_t VerticalMotorOn: 1;
  61. uint16_t HorizontalMotorOn: 1;
  62. uint16_t BuildThByCore: 1;
  63. uint16_t DryContactMode1: 1;
  64. uint16_t DryContactStatus1: 1;
  65. uint16_t DryContactMode2: 1;
  66. uint16_t DryContactStatus2: 1;
  67. uint16_t QQinterlace: 3;
  68. uint16_t TGZ_canENA: 1;
  69. uint16_t TGZ_canBus: 1;
  70. uint16_t TGZ_divider: 2;
  71. //----------------------------------
  72. uint16_t TGZ_ParamQ;
  73. //----------------------------------
  74. uint16_t TGZ_ParamB;
  75. //----------------------------------
  76. uint16_t TGZ_canSRC;
  77. uint16_t TGZ_canDST;
  78. } HW_PARAMS, *PHW_PARAMS;
  79. typedef struct S_LGS_2D_SETTINGS{
  80. LONG nOrder;
  81. LONG nOffset;
  82. LONG nDelta;
  83. LONG nWidth;
  84. LONG nFlip;
  85. LONG nShift;
  86. LONG nSun;
  87. }LGS_2D_SETTINGS, *PLGS_2D_SETTINGS;
  88. typedef struct S_LGS_2D_PARAMETERS{
  89. uint16_t nOrder;
  90. uint16_t nOffset;
  91. uint16_t nDelta;
  92. uint16_t nWidth;
  93. uint16_t nFlip;
  94. uint16_t nSun;
  95. uint8_t bSST;
  96. }LGS_2D_PARAMETERS, *PLGS_2D_PARAMETERS;
  97. //typedef struct S_RELAY_PARAMETERS {
  98. // uint8_t bAuto; // allow auto relay
  99. // uint8_t bNormallyClose;
  100. // uint16_t nAutoDelay; // in 0.1 sec (0,0 .. 3000,0 sec)
  101. //} RELAY_PARAMETERS, *PRELAY_PARAMETERS;
  102. typedef struct S_LGS_3D_PARAMETERS{
  103. uint8_t nOrder;
  104. uint8_t nOffset;
  105. uint8_t nDelta;
  106. uint8_t nSun;
  107. uint8_t bSST;
  108. uint16_t nFlip; // For Quick models (pls30) must be up to 1024
  109. uint32_t nWidth; // With future devices may gain big numbers
  110. /* 3D LRF Specific */
  111. uint8_t nGPointSamples;
  112. union{
  113. uint8_t flags_binary[sizeof(HW_PARAMS)];
  114. HW_PARAMS flags;
  115. };
  116. } LGS_3D_PARAMETERS, *PLGS_3D_PARAMETERS;
  117. typedef struct S_TARGET {
  118. uint8_t bType; // target type
  119. uint32_t nAngle; // target angle
  120. // BOOL bSent;
  121. #ifdef LOW_BIT_DATA
  122. uint8_t nRange; // target range
  123. uint16_t nWidth; // target width
  124. #else
  125. uint16_t nRange; // target range
  126. uint32_t nWidth; // target width
  127. #endif
  128. } TARGET, *PTARGET;
  129. typedef struct S_TARGET_EX {
  130. TARGET target;
  131. uint8_t nRemoveTime; // time when target shuld be removed as false alarm
  132. //uint8_t nDetectionTime; // time when begins comparison with other incoming targets
  133. uint8_t nLevel; // current SST level of target
  134. uint8_t bFlags;
  135. uint32_t nAngleMin; // scan2scan area left order in board angle units
  136. uint32_t nAngleMax; // scan2scan area right order in board angle units
  137. #ifdef LOW_BIT_DATA
  138. uint8_t nRangeMin; // scan2scan area bottom offset in board range units
  139. uint8_t nRangeMax; // scan2scan area top offset in board range units
  140. #else
  141. uint16_t nRangeMin; // scan2scan area bottom offset in board range units
  142. uint16_t nRangeMax; // scan2scan area top offset in board range units
  143. #endif
  144. } TARGET_EX, *PTARGET_EX, *LPTARGET_EX;
  145. typedef struct RAY {
  146. uint8_t bType;
  147. #ifdef LOW_BIT_DATA
  148. uint8_t nMin;
  149. uint8_t nMax;
  150. #else
  151. uint16_t nMin;
  152. uint16_t nMax;
  153. #endif
  154. } RAY, *LPRAY;
  155. typedef struct RAY_LINE {
  156. uint32_t nCount;
  157. LPRAY lpShadow;
  158. } RAY_LINE, *LPRAY_LINE;
  159. typedef struct HZ_POLYGON {
  160. U8 bType;
  161. uint32_t wCount;
  162. //LGS::LPHZ_POINT lpPoint;
  163. } HZ_POLYGON, *LPHZ_POLYGON;
  164. #endif