Evgeny Gagua 3 years ago
parent
commit
f684434ea1
  1. 2
      Projects/la_mojo/build
  2. 8
      lib/App/3dSERVER/LRF_ClientHandler.cpp
  3. 6
      lib/App/common/deviceNode3D.cpp

2
Projects/la_mojo/build

@ -4,7 +4,7 @@
#make clean -e "CFG=Debug" #make clean -e "CFG=Debug"
#make -e "CFG=Debug" -j6 #make -e "CFG=Debug" -j6
#make clean -e "CFG=Debug86"
make clean -e "CFG=Debug86"
make -e "CFG=Debug86" -j4 make -e "CFG=Debug86" -j4
#make clean -e "CFG=Release86" #make clean -e "CFG=Release86"

8
lib/App/3dSERVER/LRF_ClientHandler.cpp

@ -645,10 +645,16 @@ void LRF_ClientHandler::dispatchEvent( EVENT_CONTAINER *Evt ){
#else #else
if( Evt->m_pEvtData != NULL ) { if( Evt->m_pEvtData != NULL ) {
CLIENT_EVENT *tCEVT = (CLIENT_EVENT *) Evt->m_pEvtData; CLIENT_EVENT *tCEVT = (CLIENT_EVENT *) Evt->m_pEvtData;
bool isBlack = ( Evt->m_eType == EVT_TARGET_3D_BLACK );
//if ( k_id < 8 ) { //if ( k_id < 8 ) {
//} //}
//a_th_node //a_th_node
sendTargetM( tCEVT->th_id, tCEVT->k_id, tCEVT->range, tCEVT->w_cnt );//, bool isBlack = false);
#ifdef DEBUG
char zoppA[128];
sprintf( zoppA, "Encoded Data: 0x%02X TH: %d K:%d R:%d WC:%d", Evt->m_eType, tCEVT->th_id, tCEVT->k_id, tCEVT->range, tCEVT->w_cnt );
LOG( zoppA );
#endif
sendTargetM( tCEVT->th_id, tCEVT->k_id, tCEVT->range, tCEVT->w_cnt, isBlack );
}; };
#endif #endif
break; break;

6
lib/App/common/deviceNode3D.cpp

@ -2276,6 +2276,12 @@ bool device3DSensor::packetHandler( protocolPackage* Package ) {
width = ( width << 8 ) | pReceivedPackage[13]; width = ( width << 8 ) | pReceivedPackage[13];
tCEVT.w_cnt = width / tCEVT.range; tCEVT.w_cnt = width / tCEVT.range;
#ifdef DEBUG
char zoppA[128];
sprintf( zoppA, "Encoded Data: 0x%02X TH: %d K:%d R:%d WC:%d", tCEVT.type, tCEVT.th_id, tCEVT.k_id, tCEVT.range, tCEVT.w_cnt );
LOG( zoppA );
#endif
TARGET_DATA *tData = tData = prepareTargetData( &tCEVT ); TARGET_DATA *tData = tData = prepareTargetData( &tCEVT );
if(tData != NULL){ if(tData != NULL){
#ifndef DISABLE_FRIENDLY_MESSAGES #ifndef DISABLE_FRIENDLY_MESSAGES

Loading…
Cancel
Save