GrpcPrint/PrintS/Communication/BaseServoClient.h

35 lines
578 B
C
Raw Normal View History

2024-03-19 17:45:12 +08:00
#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;
};