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.
 
 
 
 
 
 

45 lines
1.7 KiB

#ifndef __OBJECT_NET_NODE_2D_HEADERS__
#define __OBJECT_NET_NODE_2D_HEADERS__
#include "rgooseNode.h"
#include "../components/base/basicObject.h"
#include "../components/base/basicMutex.h"
#include "../components/base/basicThread.h"
#include "../components/base/basicLogCollection.h"
#include "../components/base/basicEventHeap.h"
#include "../components/base/basicPosition.h"
#include "../components/object/objectSystemAnchor.h"
#include "../components/base/basicSettingsProvider.h"
#include "../alg/lgs/mask.h"
#include "../data/protocol/protocolLGS2D.h"
#define LGS_DEFAULT_SLEEP_TIME 300
#define LGS_ALERT_SLEEP_TIME 10
#define LGS_DEFAULT_TO_COUNTER 3
#define LGS_INITIAL_FLIPS 4
class ARGUS_2DSensor: public argusNetNode, public basicThread, public protocolLGS_2D{
private:
basicLogCollection * m_pLog;
basicEventHeap * m_pEventHeap;
basicEventClassID m_eSensorClass;
DBC_LRF_DATA m_sLRF_DATA;
uint8_t m_bWM;
uint32_t m_nSleepTime;
uint8_t m_bTimeOutCounter;
uint8_t m_bInitialFlips;
uint16_t m_nCurrentAngle;
TARGET_DATA * prepareTargetData( uint16_t AZ, uint16_t RANGE, uint32_t WIDTH );
protected:
virtual bool packetHandler( protocolPackage *Package );
virtual void m_fThreadProc( void );
public:
explicit ARGUS_2DSensor( uint32_t id );
~ARGUS_2DSensor();
virtual bool startService();
virtual bool stopService();
virtual bool validate();
};
#endif