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

//----------------------------------------------------------------------------
// Dr.Frucht Systems Ltd.
// Copyright © 2000-2016. All Rights Reserved.
// Version 2.0 3/30/2016
// Last modification: 3/30/2016
// PROJECT:
// SUBSYSTEM:
// FILE: detectorStructures.h
// AUTHOR: gagua
// OVERVIEW
// ~~~~~~~~
// Header file of detectorStructures.h
//----------------------------------------------------------------------------
//
#ifndef __ALG_DETECTOR_STRUCTURES_HEADER__
#define __ALG_DETECTOR_STRUCTURES_HEADER__
#include "../../components/base/basicTypes.h"
#define LGS_MIRROR_BLANK_RANGE 20
#define LGS_BLIND_TYPE_MR_ENTER 0L
#define LGS_BLIND_TYPE_MR_EXIT 1L
#define LGS_BLIND_TYPE_180_DEGRESE_ENTER 2L
#define LGS_BLIND_TYPE_FS_ENTER 3L
#define LGS_BLIND_TYPE_FS_EXIT 4L
#define LGS_BLIND_TYPE_PD_ENTER 5L
#define LGS_BLIND_TYPE_PD_EXIT 6L
#define LGS_BLIND_TYPE_180_DEGRESE_EXIT 7L
#define LGS_BLIND_TYPE_FAR_FOG_ENTER 8L
#define LGS_BLIND_TYPE_FAR_FOG_EXIT 9L
#define LGS_BLIND_TYPE_NEAR_FOG_ENTER 10L
#define LGS_BLIND_TYPE_NEAR_FOG_EXIT 11L
typedef struct S_QPD{
U8 nOffset;
U8 nOrder;
}QPD, *LPQPD;
typedef struct S_SAF{
INT16 nMax;
INT16 nMin;
}SAF, *LPSAF;
#ifdef LGS_SETTINGS__
typedef struct S_LGS_SETTINGS{
LONG nOrder;
LONG nOffset;
LONG nDelta;
LONG nWidth;
LONG nFlip;
LONG nShift;
LONG nSun;
}LGS_SETTINGS;
typedef struct S_LGS_PARAMETERS{
WORD nOrder;
WORD nOffset;
WORD nDelta;
WORD nWidth;
WORD nFlip;
WORD nSun;
BYTE bSST;
}LGS_PARAMETERS, *PLGS_PARAMETERS;
#endif
typedef struct S_TARGET {
uint8_t bType; // target type
uint32_t nAngle; // target angle
// BOOL bSent;
#ifdef LOW_BIT_DATA
uint8_t nRange; // target range
uint16_t nWidth; // target width
#else
uint16_t nRange; // target range
uint32_t nWidth; // target width
#endif
} TARGET, *PTARGET;
typedef struct S_TARGET_EX {
TARGET target;
uint8_t nRemoveTime; // time when target shuld be removed as false alarm
//uint8_t nDetectionTime; // time when begins comparison with other incoming targets
uint8_t nLevel; // current SST level of target
uint8_t bFlags;
uint32_t nAngleMin; // scan2scan area left order in board angle units
uint32_t nAngleMax; // scan2scan area right order in board angle units
#ifdef LOW_BIT_DATA
uint8_t nRangeMin; // scan2scan area bottom offset in board range units
uint8_t nRangeMax; // scan2scan area top offset in board range units
#else
uint16_t nRangeMin; // scan2scan area bottom offset in board range units
uint16_t nRangeMax; // scan2scan area top offset in board range units
#endif
} TARGET_EX, *PTARGET_EX, *LPTARGET_EX;
typedef struct RAY {
uint8_t bType;
#ifdef LOW_BIT_DATA
uint8_t nMin;
uint8_t nMax;
#else
uint16_t nMin;
uint16_t nMax;
#endif
} RAY, *LPRAY;
typedef struct RAY_LINE {
uint32_t nCount;
LPRAY lpShadow;
} RAY_LINE, *LPRAY_LINE;
typedef struct HZ_POLYGON {
U8 bType;
uint32_t wCount;
//LGS::LPHZ_POINT lpPoint;
} HZ_POLYGON, *LPHZ_POLYGON;
#endif