cmvr-es/src/devices/canbus/canopen/sync_protocol.h

33 lines
629 B
C
Raw Normal View History

//
// Created by lgv on 2025/7/31.
//
#include "canbus/can_comm/protocol_data.h"
#include "cmvr/msgs/robot_detail.pb.h"
#include "sdo_response_protocol.h"
#include "glog/logging.h"
#include <mutex>
namespace cmvr {
namespace device {
template<typename SensorType>
class SyncProtocol : public ProtocolData<SensorType> {
public:
static constexpr uint32_t ID = 0x80;
int32_t GetLength() const override{
return 0x00;
}
uint32_t GetPeriod() const override {
return 1000 * 1; // 1 ms
}
};
}
}