Browse Source

Disabled Detection Multiprofiles for ALS300

master
Evgeny Gagua 3 years ago
parent
commit
73ae526ff1
  1. 2
      .gitignore
  2. BIN
      PC_104/als.exe
  3. BIN
      PC_104/alsgf.exe
  4. 16
      PC_104/lgs/DETECTOR.cpp
  5. 18
      PC_104/lgs/Detector.h
  6. 4
      PC_104/lgs/Stdafx.h
  7. 44
      PC_104/lgs/detecto_.cpp
  8. 62
      PC_104/lgs/kernel_.cpp
  9. BIN
      se16.vtg

2
.gitignore

@ -1,3 +1,5 @@
PC_104/Debug/* PC_104/Debug/*
PC_104/Release/* PC_104/Release/*
PC_104/als.exe
PC_104/alsgf.exe

BIN
PC_104/als.exe

Binary file not shown.

BIN
PC_104/alsgf.exe

Binary file not shown.

16
PC_104/lgs/DETECTOR.cpp

@ -253,21 +253,21 @@ void CDetector::GetParameters( LGS::LGS_PARAMETERS *pParameters ){
void CDetector::SetParameters( LGS::LGS_PARAMETERS *pParameters ){ void CDetector::SetParameters( LGS::LGS_PARAMETERS *pParameters ){
// chack changes // chack changes
if( pParameters->nOrder == m_Settings.nOrder &&
if( pParameters->nOrder == (uint16_t)m_Settings.nOrder &&
#ifdef LGS_REDUCED_PRF #ifdef LGS_REDUCED_PRF
pParameters->nOffset == (uint16_t)( m_Settings.nOffset / LGS_PRF_REDUCE_RATIO ) && pParameters->nOffset == (uint16_t)( m_Settings.nOffset / LGS_PRF_REDUCE_RATIO ) &&
#else #else
pParameters->nOffset == m_Settings.nOffset &&
pParameters->nOffset == (uint16_t)m_Settings.nOffset &&
#endif #endif
pParameters->nDelta == m_Settings.nDelta &&
pParameters->nDelta == (uint16_t)m_Settings.nDelta &&
#ifdef LGS_MND #ifdef LGS_MND
pParameters->nWidth == ( m_Settings.nWidth << 2 ) &&
pParameters->nWidth == (uint16_t)( m_Settings.nWidth << 2 ) &&
#else #else
pParameters->nWidth == m_Settings.nWidth &&
pParameters->nWidth == (uint16_t)m_Settings.nWidth &&
#endif #endif
pParameters->nFlip == m_Settings.nFlip &&
pParameters->nSun == m_Settings.nSun &&
pParameters->bSST == m_pTracker->GetLevel() )
pParameters->nFlip == (uint16_t)m_Settings.nFlip &&
pParameters->nSun == (uint16_t)m_Settings.nSun &&
pParameters->bSST == (uint16_t)m_pTracker->GetLevel() )
return; return;
// write parameters into file // write parameters into file

18
PC_104/lgs/Detector.h

@ -37,7 +37,7 @@ typedef struct LGS_SETTINGS
}LGS_SETTINGS; }LGS_SETTINGS;
#define LRF_ID_MASTER 0 #define LRF_ID_MASTER 0
#define LRF_ID_SLAVE 1
#define LRF_ID_SLAVE 1
#define LRF_ID_LFS_M1 0 #define LRF_ID_LFS_M1 0
#define LRF_ID_LFS_M2 1 #define LRF_ID_LFS_M2 1
#define LRF_ID_LFS_M3 2 #define LRF_ID_LFS_M3 2
@ -74,7 +74,7 @@ public:
@return true on successful initialization @return true on successful initialization
@return false on failure @return false on failure
*/ */
bool Create( bool bDisabled, CTracker *pTracker, CShadow *pShadow, int16_t nShift, int16_t nOrder, int16_t nOffset, int16_t nDelta, int16_t nWidth, int16_t nFlip, int16_t nSun, int16_t nLevelSST );
bool Create( bool bDisabled, CTracker *pTracker, CShadow *pShadow, int32_t nShift, int32_t nOrder, int32_t nOffset, int32_t nDelta, int32_t nWidth, int32_t nFlip, int32_t nSun, int32_t nLevelSST );
/*! /*!
@brief Initialization of the object @brief Initialization of the object
@param[in] bDisabled Flag that is indicates if the detector is disabled @param[in] bDisabled Flag that is indicates if the detector is disabled
@ -261,23 +261,23 @@ private:
#ifndef NO_DETECTOR_FILTERS #ifndef NO_DETECTOR_FILTERS
// filters // filters
CFilterSun m_FilterSun; CFilterSun m_FilterSun;
CFilterMediumRange m_FilterMediumRange;
CFilterMediumRange m_FilterMediumRange;
CFilterPD m_FilterPD; CFilterPD m_FilterPD;
CFilterFog m_FilterFog; CFilterFog m_FilterFog;
#endif #endif
CFilterWidth m_FilterWidth; CFilterWidth m_FilterWidth;
private: private:
CShadow *m_pShadow; // plaseholder for hiddenzones
CTracker *m_pTracker; // scan to scan tracking
CShadow * m_pShadow; // plaseholder for hiddenzones
CTracker * m_pTracker; // scan to scan tracking
private: private:
bool m_bErrorAngle; // error angle
int16_t m_nErrorAngle; // error angle
bool m_bShowErrorAngle; // prevent angle error immidiatly after reset
bool m_bErrorAngle; // error angle
int16_t m_nErrorAngle; // error angle
bool m_bShowErrorAngle; // prevent angle error immidiatly after reset
private: private:
LGS_SETTINGS m_Settings; // settings
LGS_SETTINGS m_Settings; // settings
CHAR m_pSettingsFileName[LGS_MAX_SETTINGS_FILENAME]; CHAR m_pSettingsFileName[LGS_MAX_SETTINGS_FILENAME];
#ifndef INCLUDE_WINDOWS_DEFINITIONS #ifndef INCLUDE_WINDOWS_DEFINITIONS

4
PC_104/lgs/Stdafx.h

@ -50,7 +50,7 @@
//#define COMPILE_AS_SICK_PROXY //#define COMPILE_AS_SICK_PROXY
//#define COMPILE_AS_GETFILE
#define COMPILE_AS_GETFILE
#ifndef COMPILE_AS_GETFILE #ifndef COMPILE_AS_GETFILE
@ -68,7 +68,7 @@
//#define RESTART_PC_BY_WATCHDOG //#define RESTART_PC_BY_WATCHDOG
#endif #endif
#define DETECTION_MULTI_PROFILES
//#define DETECTION_MULTI_PROFILES
// #define DETECT_JUST_MOVING_TARGETS // #define DETECT_JUST_MOVING_TARGETS
// #define SENDBOARDDATA_INF // #define SENDBOARDDATA_INF
//#define SHADOW_ALWAYS_ON // For Moni Finland //#define SHADOW_ALWAYS_ON // For Moni Finland

44
PC_104/lgs/detecto_.cpp

@ -23,17 +23,17 @@
CDetector::CDetector(){ CDetector::CDetector(){
// initiate default settings // initiate default settings
m_Settings.nOrder = 5;
m_Settings.nOffset = 5;
m_Settings.nOrder = 5;
m_Settings.nOffset = 5;
m_Settings.nFlip = LGS_MIN_DETECTOR_FLIP; m_Settings.nFlip = LGS_MIN_DETECTOR_FLIP;
#ifdef LGS_MND #ifdef LGS_MND
m_Settings.nWidth = 250;
m_Settings.nWidth = 250;
#else #else
m_Settings.nWidth = 1000;
m_Settings.nWidth = 1000;
#endif #endif
m_Settings.nDelta = 5;
m_Settings.nShift = 0;
m_Settings.nSun = 32;
m_Settings.nDelta = 5;
m_Settings.nShift = 0;
m_Settings.nSun = 32;
#ifdef LGS_BOARDSAMPLE_RATIO #ifdef LGS_BOARDSAMPLE_RATIO
m_nAngleDivider = LGS_BOARDSAMPLE_RATIO; m_nAngleDivider = LGS_BOARDSAMPLE_RATIO;
#endif #endif
@ -87,13 +87,13 @@ CDetector::~CDetector(){
bool CDetector::Create( bool bDisabled, CTracker *pTracker, CShadow *pShadow, int16_t nShift, PCHAR pFileName ){ bool CDetector::Create( bool bDisabled, CTracker *pTracker, CShadow *pShadow, int16_t nShift, PCHAR pFileName ){
#endif #endif
#ifndef COMPILE_AS_SICK_PROXY #ifndef COMPILE_AS_SICK_PROXY
int16_t nOrder = 10;
int16_t nOffset = 20;
int16_t nDelta = 60;
int16_t nWidth = 4400;
int16_t nFlip = 32;
int16_t nSun = 32;
int16_t nLevelSST = 1;
int32_t nOrder = 10;
int32_t nOffset = 20;
int32_t nDelta = 60;
int32_t nWidth = 4400;
int32_t nFlip = 32;
int32_t nSun = 32;
int32_t nLevelSST = 1;
# ifdef LGS_BOARDSAMPLE_RATIO # ifdef LGS_BOARDSAMPLE_RATIO
m_nAngleDivider = LGS_BOARDSAMPLE_RATIO; m_nAngleDivider = LGS_BOARDSAMPLE_RATIO;
# endif # endif
@ -141,13 +141,13 @@ CDetector::~CDetector(){
#endif #endif
}; };
#else //COMPILE_AS_SICK_PROXY #else //COMPILE_AS_SICK_PROXY
int16_t nOrder = 140;
int16_t nOffset = 60;
int16_t nDelta = 120;
int16_t nWidth = 3500;
int16_t nFlip = 255;
int16_t nSun = 32;
int16_t nLevelSST = 0;
int32_t nOrder = 140;
int32_t nOffset = 60;
int32_t nDelta = 120;
int32_t nWidth = 3500;
int32_t nFlip = 255;
int32_t nSun = 32;
int32_t nLevelSST = 0;
m_nAngleDivider = LGS_BOARDSAMPLE_RATIO; m_nAngleDivider = LGS_BOARDSAMPLE_RATIO;
#endif // COMPILE_AS_SICK_PROXY #endif // COMPILE_AS_SICK_PROXY
return Create( bDisabled, pTracker, pShadow, nShift, nOrder, nOffset, nDelta, nWidth, nFlip, nSun, nLevelSST ); return Create( bDisabled, pTracker, pShadow, nShift, nOrder, nOffset, nDelta, nWidth, nFlip, nSun, nLevelSST );
@ -246,7 +246,7 @@ void CDetector::unifyDataSAF( void ){
} }
#endif #endif
bool CDetector::Create( bool bDisabled, CTracker *pTracker, CShadow *pShadow, int16_t nShift, int16_t nOrder, int16_t nOffset, int16_t nDelta, int16_t nWidth, int16_t nFlip, int16_t nSun, int16_t nLevelSST )
bool CDetector::Create( bool bDisabled, CTracker *pTracker, CShadow *pShadow, int32_t nShift, int32_t nOrder, int32_t nOffset, int32_t nDelta, int32_t nWidth, int32_t nFlip, int32_t nSun, int32_t nLevelSST )
{ {
#ifdef DEBUG_PRINTOUT_MSGS #ifdef DEBUG_PRINTOUT_MSGS
debugProcBegin( "Clear" ); debugProcBegin( "Clear" );

62
PC_104/lgs/kernel_.cpp

@ -359,24 +359,22 @@ bool CKernel::Create(){
#ifdef DETECTION_MULTI_PROFILES #ifdef DETECTION_MULTI_PROFILES
//printf("Multiprofiles\n");
char APFN[32];
char APFN[32];
FILE *APFD; FILE *APFD;
sprintf( APFN, "%c:\\profile.ini", (char)( 65+BoardSettings.nHID ) ); sprintf( APFN, "%c:\\profile.ini", (char)( 65+BoardSettings.nHID ) );
APFD = fopen( APFN, "r" ); APFD = fopen( APFN, "r" );
if( APFD!=NULL ){ if( APFD!=NULL ){
uint8_t profileID; uint8_t profileID;
fscanf( APFD, "%d\n", &m_bActiveMasterDetectionProfile ); fscanf( APFD, "%d\n", &m_bActiveMasterDetectionProfile );
m_bActiveSlaveDetectionProfile = m_bActiveMasterDetectionProfile+3;
m_bActiveSlaveDetectionProfile = m_bActiveMasterDetectionProfile+3;
fclose( APFD ); fclose( APFD );
} else { } else {
m_bActiveMasterDetectionProfile = 0; // to ensure no to exit from next function
setActiveDetectionProfile( 1 ); setActiveDetectionProfile( 1 );
}; };
//printf("Done\n");
//printf("Create Detectors\n");
#ifdef STORE_FIRST_SAF #ifdef STORE_FIRST_SAF
#ifdef WATCHDOG_ENABLED #ifdef WATCHDOG_ENABLED
if( !m_Detector[0].Create( BoardSettings.M_LRFDisable, &m_Tracker[0], m_pShadow, 0, ( PCHAR )m_pDetectionProfiles[m_bActiveMasterDetectionProfile], &m_WatchDog, LRF_ID_MASTER ) ) {
if( !m_Detector[0].Create( BoardSettings.M_LRFDisable, &m_Tracker[0], m_pShadow, 0, /*_T("init_m.ini")*/( PCHAR )m_pDetectionProfiles[m_bActiveMasterDetectionProfile], &m_WatchDog, LRF_ID_MASTER ) ) {
#else #else
if( !m_Detector[0].Create( BoardSettings.M_LRFDisable, &m_Tracker[0], m_pShadow, 0, ( PCHAR )m_pDetectionProfiles[m_bActiveMasterDetectionProfile], LRF_ID_MASTER ) ) { if( !m_Detector[0].Create( BoardSettings.M_LRFDisable, &m_Tracker[0], m_pShadow, 0, ( PCHAR )m_pDetectionProfiles[m_bActiveMasterDetectionProfile], LRF_ID_MASTER ) ) {
#endif #endif
@ -385,8 +383,16 @@ bool CKernel::Create(){
#endif #endif
#else #else
//printf("Singleprofiles Detector\n"); //printf("Singleprofiles Detector\n");
if( !m_Detector[0].Create( BoardSettings.M_LRFDisable, &m_Tracker[0], m_pShadow, 0, _T("init_m.ini") ) ) {
#ifdef STORE_FIRST_SAF
#ifdef WATCHDOG_ENABLED
if( !m_Detector[0].Create( BoardSettings.M_LRFDisable, &m_Tracker[0], m_pShadow, 0, _T("init_m.ini"), &m_WatchDog, LRF_ID_MASTER ) ) {
#else
if( !m_Detector[0].Create( BoardSettings.M_LRFDisable, &m_Tracker[0], m_pShadow, 0, _T("init_m.ini"), LRF_ID_MASTER ) ) {
#endif
#else
if( !m_Detector[0].Create( BoardSettings.M_LRFDisable, &m_Tracker[0], m_pShadow, 0, _T("init_m.ini") ) ) {
#endif
#endif #endif
return false; return false;
}; };
@ -399,12 +405,12 @@ bool CKernel::Create(){
#ifdef DETECTION_MULTI_PROFILES #ifdef DETECTION_MULTI_PROFILES
#ifdef STORE_FIRST_SAF #ifdef STORE_FIRST_SAF
#ifdef WATCHDOG_ENABLED #ifdef WATCHDOG_ENABLED
if( !m_Detector[1].Create( m_LRFDisable.bSlave, &m_Tracker[0], m_pShadow, 0, ( PCHAR )m_pDetectionProfiles[m_bActiveMasterDetectionProfile], &m_WatchDog, LRF_ID_SLAVE ) ) {
if( !m_Detector[1].Create( m_LRFDisable.bSlave, &m_Tracker[0], m_pShadow, 0, ( PCHAR )m_pDetectionProfiles[m_bActiveSlaveDetectionProfile], &m_WatchDog, LRF_ID_SLAVE ) ) {
#else #else
if( !m_Detector[1].Create( m_LRFDisable.bSlave, &m_Tracker[0], m_pShadow, 0, ( PCHAR )m_pDetectionProfiles[m_bActiveMasterDetectionProfile], LRF_ID_SLAVE ) ) {
if( !m_Detector[1].Create( m_LRFDisable.bSlave, &m_Tracker[0], m_pShadow, 0, ( PCHAR )m_pDetectionProfiles[m_bActiveSlaveDetectionProfile], LRF_ID_SLAVE ) ) {
#endif #endif
#else #else
if( !m_Detector[1].Create( m_LRFDisable.bMaster, &m_Tracker[0], m_pShadow, 0, ( PCHAR )m_pDetectionProfiles[m_bActiveMasterDetectionProfile] ) ) {
if( !m_Detector[1].Create( m_LRFDisable.bMaster, &m_Tracker[0], m_pShadow, 0, ( PCHAR )m_pDetectionProfiles[m_bActiveSlaveDetectionProfile] ) ) {
#endif #endif
#else #else
if( !m_Detector[1].Create( m_LRFDisable.bSlave, &m_Tracker[0], m_pShadow, 0, "init_s.ini" ) ){ if( !m_Detector[1].Create( m_LRFDisable.bSlave, &m_Tracker[0], m_pShadow, 0, "init_s.ini" ) ){
@ -414,27 +420,27 @@ bool CKernel::Create(){
#ifdef DETECTION_MULTI_PROFILES #ifdef DETECTION_MULTI_PROFILES
#ifdef STORE_FIRST_SAF #ifdef STORE_FIRST_SAF
#ifdef WATCHDOG_ENABLED #ifdef WATCHDOG_ENABLED
if( !m_Detector[2].Create( m_LRFDisable.bSlave, &m_Tracker[0], m_pShadow, 0, ( PCHAR )m_pDetectionProfiles[m_bActiveMasterDetectionProfile], &m_WatchDog, LRF_ID_SLAVE ) ) {
if( !m_Detector[2].Create( m_LRFDisable.bSlave, &m_Tracker[0], m_pShadow, 0, ( PCHAR )m_pDetectionProfiles[m_bActiveSlaveDetectionProfile], &m_WatchDog, LRF_ID_SLAVE ) ) {
#else #else
if( !m_Detector[2].Create( m_LRFDisable.bSlave, &m_Tracker[0], m_pShadow, 0, ( PCHAR )m_pDetectionProfiles[m_bActiveMasterDetectionProfile], LRF_ID_SLAVE ) ) {
if( !m_Detector[2].Create( m_LRFDisable.bSlave, &m_Tracker[0], m_pShadow, 0, ( PCHAR )m_pDetectionProfiles[m_bActiveSlaveDetectionProfile], LRF_ID_SLAVE ) ) {
#endif #endif
#else #else
if( !m_Detector[2].Create( m_LRFDisable.bMaster, &m_Tracker[0], m_pShadow, 0, ( PCHAR )m_pDetectionProfiles[m_bActiveMasterDetectionProfile] ) ) {
if( !m_Detector[2].Create( m_LRFDisable.bMaster, &m_Tracker[0], m_pShadow, 0, ( PCHAR )m_pDetectionProfiles[m_bActiveSlaveDetectionProfile] ) ) {
#endif #endif
#else #else
if( !m_Detector[2].Create( m_LRFDisable.bMaster, &m_Tracker[0], m_pShadow, 0, "init_m.ini" ) ){
if( !m_Detector[2].Create( m_LRFDisable.bMaster, &m_Tracker[0], m_pShadow, 0, "init_s.ini" ) ){
#endif #endif
return false; return false;
}; };
#ifdef DETECTION_MULTI_PROFILES #ifdef DETECTION_MULTI_PROFILES
#ifdef STORE_FIRST_SAF #ifdef STORE_FIRST_SAF
#ifdef WATCHDOG_ENABLED #ifdef WATCHDOG_ENABLED
if( !m_Detector[3].Create( m_LRFDisable.bSlave, &m_Tracker[0], m_pShadow, 0, ( PCHAR )m_pDetectionProfiles[m_bActiveMasterDetectionProfile], &m_WatchDog, LRF_ID_SLAVE ) ) {
if( !m_Detector[3].Create( m_LRFDisable.bSlave, &m_Tracker[0], m_pShadow, 0, ( PCHAR )m_pDetectionProfiles[m_bActiveSlaveDetectionProfile], &m_WatchDog, LRF_ID_SLAVE ) ) {
#else #else
if( !m_Detector[3].Create( m_LRFDisable.bSlave, &m_Tracker[0], m_pShadow, 0, ( PCHAR )m_pDetectionProfiles[m_bActiveMasterDetectionProfile], LRF_ID_SLAVE ) ) {
if( !m_Detector[3].Create( m_LRFDisable.bSlave, &m_Tracker[0], m_pShadow, 0, ( PCHAR )m_pDetectionProfiles[m_bActiveSlaveDetectionProfile], LRF_ID_SLAVE ) ) {
#endif #endif
#else #else
if( !m_Detector[3].Create( m_LRFDisable.bMaster, &m_Tracker[0], m_pShadow, 0, ( PCHAR )m_pDetectionProfiles[m_bActiveMasterDetectionProfile] ) ) {
if( !m_Detector[3].Create( m_LRFDisable.bMaster, &m_Tracker[0], m_pShadow, 0, ( PCHAR )m_pDetectionProfiles[m_bActiveSlaveDetectionProfile] ) ) {
#endif #endif
#else #else
if( !m_Detector[3].Create( m_LRFDisable.bSlave, &m_Tracker[0], m_pShadow, 0, "init_s.ini" ) ){ if( !m_Detector[3].Create( m_LRFDisable.bSlave, &m_Tracker[0], m_pShadow, 0, "init_s.ini" ) ){
@ -448,19 +454,19 @@ bool CKernel::Create(){
#ifdef ALS_300 #ifdef ALS_300
#ifdef STORE_FIRST_SAF #ifdef STORE_FIRST_SAF
#ifdef WATCHDOG_ENABLED #ifdef WATCHDOG_ENABLED
if( !m_Detector[1].Create( BoardSettings.S_LRFDisable, &m_Tracker[1], m_pShadowS, LGS_MAX_DETECTOR_ANGLES / 2, ( PCHAR )m_pDetectionProfiles[m_bActiveMasterDetectionProfile], &m_WatchDog, LRF_ID_SLAVE ) ) {
if( !m_Detector[1].Create( BoardSettings.S_LRFDisable, &m_Tracker[1], m_pShadowS, LGS_MAX_DETECTOR_ANGLES / 2, /*_T("init_s.ini")*/( PCHAR )m_pDetectionProfiles[m_bActiveSlaveDetectionProfile], &m_WatchDog, LRF_ID_SLAVE ) ) {
#else #else
if( !m_Detector[1].Create( BoardSettings.S_LRFDisable, &m_Tracker[1], m_pShadowS, LGS_MAX_DETECTOR_ANGLES / 2, ( PCHAR )m_pDetectionProfiles[m_bActiveMasterDetectionProfile], LRF_ID_SLAVE ) ) {
if( !m_Detector[1].Create( BoardSettings.S_LRFDisable, &m_Tracker[1], m_pShadowS, LGS_MAX_DETECTOR_ANGLES / 2, ( PCHAR )m_pDetectionProfiles[m_bActiveSlaveDetectionProfile], LRF_ID_SLAVE ) ) {
#endif #endif
#else #else
if( !m_Detector[1].Create( BoardSettings.S_LRFDisable, &m_Tracker[1], m_pShadowS, LGS_MAX_DETECTOR_ANGLES / 2, ( PCHAR )m_pDetectionProfiles[m_bActiveMasterDetectionProfile] ) ) {
if( !m_Detector[1].Create( BoardSettings.S_LRFDisable, &m_Tracker[1], m_pShadowS, LGS_MAX_DETECTOR_ANGLES / 2, ( PCHAR )m_pDetectionProfiles[m_bActiveSlaveDetectionProfile] ) ) {
#endif #endif
#else #else
#ifdef STORE_FIRST_SAF #ifdef STORE_FIRST_SAF
#ifdef WATCHDOG_ENABLED #ifdef WATCHDOG_ENABLED
if( !m_Detector[1].Create( m_LRFDisable.bSlave, &m_Tracker[1], m_pShadow, LGS_MAX_DETECTOR_ANGLES / 2, ( PCHAR )m_pDetectionProfiles[m_bActiveMasterDetectionProfile], &m_WatchDog, LRF_ID_SLAVE ) ) {
if( !m_Detector[1].Create( m_LRFDisable.bSlave, &m_Tracker[1], m_pShadow, LGS_MAX_DETECTOR_ANGLES / 2, ( PCHAR )m_pDetectionProfiles[m_bActiveSlaveDetectionProfile], &m_WatchDog, LRF_ID_SLAVE ) ) {
#else #else
if( !m_Detector[1].Create( m_LRFDisable.bSlave, &m_Tracker[1], m_pShadow, LGS_MAX_DETECTOR_ANGLES / 2, ( PCHAR )m_pDetectionProfiles[m_bActiveMasterDetectionProfile], LRF_ID_SLAVE ) ) {
if( !m_Detector[1].Create( m_LRFDisable.bSlave, &m_Tracker[1], m_pShadow, LGS_MAX_DETECTOR_ANGLES / 2, ( PCHAR )m_pDetectionProfiles[m_bActiveSlaveDetectionProfile], LRF_ID_SLAVE ) ) {
#endif #endif
#else #else
if( !m_Detector[1].Create( m_LRFDisable.bSlave, &m_Tracker[1], m_pShadow, LGS_MAX_DETECTOR_ANGLES / 2, ( PCHAR ) m_pDetectionProfiles[m_bActiveSlaveDetectionProfile] ) ) { if( !m_Detector[1].Create( m_LRFDisable.bSlave, &m_Tracker[1], m_pShadow, LGS_MAX_DETECTOR_ANGLES / 2, ( PCHAR ) m_pDetectionProfiles[m_bActiveSlaveDetectionProfile] ) ) {
@ -468,7 +474,15 @@ bool CKernel::Create(){
#endif #endif
#else #else
#ifdef ALS_300 #ifdef ALS_300
if( !m_Detector[1].Create( m_LRFDisable.bSlave, &m_Tracker[1], m_pShadowS, LGS_MAX_DETECTOR_ANGLES / 2, _T("init_s.ini") ) ){
#ifdef STORE_FIRST_SAF
#ifdef WATCHDOG_ENABLED
if( !m_Detector[1].Create( BoardSettings.S_LRFDisable, &m_Tracker[1], m_pShadowS, LGS_MAX_DETECTOR_ANGLES / 2, _T("init_s.ini"), &m_WatchDog, LRF_ID_SLAVE ) ) {
#else
if( !m_Detector[1].Create( BoardSettings.S_LRFDisable, &m_Tracker[1], m_pShadowS, LGS_MAX_DETECTOR_ANGLES / 2, _T("init_s.ini"), LRF_ID_SLAVE ) ) {
#endif
#else
if( !m_Detector[1].Create( m_LRFDisable.bSlave, &m_Tracker[1], m_pShadowS, LGS_MAX_DETECTOR_ANGLES / 2, _T("init_s.ini") ) ){
#endif
#else #else
if( !m_Detector[1].Create( m_LRFDisable.bSlave, &m_Tracker[1], m_pShadow, LGS_MAX_DETECTOR_ANGLES / 2, _T("init_s.ini") ) ){ if( !m_Detector[1].Create( m_LRFDisable.bSlave, &m_Tracker[1], m_pShadow, LGS_MAX_DETECTOR_ANGLES / 2, _T("init_s.ini") ) ){
#endif #endif

BIN
se16.vtg

Binary file not shown.
Loading…
Cancel
Save