22 from .robotis_def
import *
37 if self.
ph.getProtocolVersion() == 1.0
or not self.
data_list:
46 self.
param.append(dxl_id)
54 def addParam(self, dxl_id, start_address, data_length, data):
55 if self.
ph.getProtocolVersion() == 1.0:
61 if len(data) > data_length:
64 self.
data_list[dxl_id] = [data, start_address, data_length]
70 if self.
ph.getProtocolVersion() == 1.0:
80 def changeParam(self, dxl_id, start_address, data_length, data):
81 if self.
ph.getProtocolVersion() == 1.0:
87 if len(data) > data_length:
90 self.
data_list[dxl_id] = [data, start_address, data_length]
96 if self.
ph.getProtocolVersion() == 1.0:
103 if self.
ph.getProtocolVersion() == 1.0
or len(self.
data_list.keys()) == 0:
104 return COMM_NOT_AVAILABLE