34 lines
642 B
C++
34 lines
642 B
C++
//
|
|
// Created by lgv on 2025/7/31.
|
|
//
|
|
#pragma once
|
|
|
|
#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
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
} |