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.

39 lines
1.0 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #include "rgooseNode2D.h"
  2. #define LOG( X ) argusNetNode::m_pLog->Log( "2DNODE", this, X )
  3. #ifdef DEBUG
  4. #define LOG_ERROR( X ) {\
  5. char _tBfrErrMSG2w34[256];\
  6. sprintf( _tBfrErrMSG2w34, "In file %s[%d] in func:%s %s",__FILE__, __LINE__, __func__, X );\
  7. argusNetNode::m_pLog->Log( "2DNODE", this, _LOG_ERROR, _tBfrErrMSG2w34 );\
  8. }
  9. #else
  10. #define LOG_ERROR( X ) argusNetNode::m_pLog->Log( "2DNODE", this, _LOG_ERROR, X );
  11. #endif
  12. ARGUS_2DSensor::ARGUS_2DSensor( uint32_t id ):argusNetNode( id ){
  13. DBC_LRF_DATA *tDATA = m_pDBC->getLRFData( m_sNodeData.aux_id );
  14. if( tDATA != NULL ) {
  15. memcpy( &m_sLRF_DATA, tDATA, sizeof(DBC_LRF_DATA));
  16. } else {
  17. memset( &m_sLRF_DATA, 0, sizeof(DBC_LRF_DATA));
  18. };
  19. };
  20. ARGUS_2DSensor::~ARGUS_2DSensor(){
  21. };
  22. bool ARGUS_2DSensor::startService() {
  23. return true;
  24. };
  25. bool ARGUS_2DSensor::stopService() {
  26. return true;
  27. };
  28. bool validate(){
  29. return true;
  30. };