GrpcPrint/PrintC/Communication/BaseServoClient.h

35 lines
583 B
C++

#pragma once
//#include "../config/bean/AxisCfg.h"
#include "BaseClient.h"
#include <map>
#include <list>
class ServoStat :public BaseStat
{
public:
ServoStat()
:loadTorque(0.0f)
{
}
~ServoStat(){
}
public:
float loadTorque;
list<float> showLoadList;
list<float> logLoadList;
static const int MAX_SHOW_LOAD_SIZE = 200;
};
class BaseServoClient {
public:
BaseServoClient()
{
};
~BaseServoClient() {};
void AddStat(ServoStat* stat);
virtual void RequestReadAlarmCode() {}
protected:
map<unsigned char, ServoStat*> m_StatMap;
CRITICAL_SECTION* m_AllValueCs;
};