Evgeny Gagua 3 years ago
parent
commit
4d0119708a
  1. 8
      Projects/la_mojo/build
  2. 22
      lib/App/common/deviceNode2D.cpp

8
Projects/la_mojo/build

@ -1,11 +1,11 @@
#! /bin/sh
make clean -e "CFG=Debug"
make -e "CFG=Debug" -j6
#make clean -e "CFG=Debug"
#make -e "CFG=Debug" -j6
#make clean -e "CFG=Debug86"
#make -e "CFG=Debug86" -j4
make clean -e "CFG=Debug86"
make -e "CFG=Debug86" -j4
#make clean -e "CFG=Release86"
#make -e "CFG=Release86" -j4

22
lib/App/common/deviceNode2D.cpp

@ -1362,16 +1362,18 @@ void device2DSensor::save_detection(){
break;
};
case LRF_WS_STAGE_5:{
LOG("Send Slave Profile!");
//ANODE_WM_2D_SET_SLAVE_PARAM
PLGS_2D_PARAMETERS tData = m_pDBC->getLRFDetectionProfile( m_sNodeData.aux_id, m_nActiveDetectionProfile, false );
if ( tData ) {
m_bTimeOutCounter = LGS_DEFAULT_TO_COUNTER;
if (!setParameters( tData, false, m_nActiveDetectionProfile)) {
LOG_ERROR("Fall Back to Disconnected!");
setWM( LRF_WM_CONNECTION );
} else transactionWaitResult();
free( tData );
if( m_sNodeData.type == ARGUS_ALS_SENSOR || m_sNodeData.type == ARGUS_LFS_SENSOR ) {
LOG("Send Slave Profile!");
//ANODE_WM_2D_SET_SLAVE_PARAM
PLGS_2D_PARAMETERS tData = m_pDBC->getLRFDetectionProfile( m_sNodeData.aux_id, m_nActiveDetectionProfile, false );
if ( tData ) {
m_bTimeOutCounter = LGS_DEFAULT_TO_COUNTER;
if (!setParameters( tData, false, m_nActiveDetectionProfile)) {
LOG_ERROR("Fall Back to Disconnected!");
setWM( LRF_WM_CONNECTION );
} else transactionWaitResult();
free( tData );
} else transactionSetResult( TRANSACTION_RESULT_OK );
} else transactionSetResult( TRANSACTION_RESULT_OK );
break;
};

Loading…
Cancel
Save