From f684434ea17b2d7dfcb0f23c9dd22e181c8b110e Mon Sep 17 00:00:00 2001 From: Evgeny Gagua Date: Thu, 4 Apr 2024 05:49:46 -0700 Subject: [PATCH] zaza --- Projects/la_mojo/build | 2 +- lib/App/3dSERVER/LRF_ClientHandler.cpp | 8 +++++++- lib/App/common/deviceNode3D.cpp | 6 ++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Projects/la_mojo/build b/Projects/la_mojo/build index e30c9046..59699e61 100755 --- a/Projects/la_mojo/build +++ b/Projects/la_mojo/build @@ -4,7 +4,7 @@ #make clean -e "CFG=Debug" #make -e "CFG=Debug" -j6 -#make clean -e "CFG=Debug86" +make clean -e "CFG=Debug86" make -e "CFG=Debug86" -j4 #make clean -e "CFG=Release86" diff --git a/lib/App/3dSERVER/LRF_ClientHandler.cpp b/lib/App/3dSERVER/LRF_ClientHandler.cpp index add9fa1a..3eac6990 100644 --- a/lib/App/3dSERVER/LRF_ClientHandler.cpp +++ b/lib/App/3dSERVER/LRF_ClientHandler.cpp @@ -645,10 +645,16 @@ void LRF_ClientHandler::dispatchEvent( EVENT_CONTAINER *Evt ){ #else if( Evt->m_pEvtData != NULL ) { CLIENT_EVENT *tCEVT = (CLIENT_EVENT *) Evt->m_pEvtData; + bool isBlack = ( Evt->m_eType == EVT_TARGET_3D_BLACK ); //if ( k_id < 8 ) { //} //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 break; diff --git a/lib/App/common/deviceNode3D.cpp b/lib/App/common/deviceNode3D.cpp index 4edfd425..9950f674 100644 --- a/lib/App/common/deviceNode3D.cpp +++ b/lib/App/common/deviceNode3D.cpp @@ -2276,6 +2276,12 @@ bool device3DSensor::packetHandler( protocolPackage* Package ) { width = ( width << 8 ) | pReceivedPackage[13]; 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 ); if(tData != NULL){ #ifndef DISABLE_FRIENDLY_MESSAGES