22 from .robotis_def
import *
37 if self.ph.getProtocolVersion() == 1.0
or not self.
data_list:
46 self.param.append(dxl_id)
52 self.param.extend(self.
data_list[dxl_id][0])
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:
99 self.data_list.clear()
103 if self.ph.getProtocolVersion() == 1.0
or len(self.data_list.keys()) == 0:
104 return COMM_NOT_AVAILABLE
109 return self.ph.bulkWriteTxOnly(self.
port, self.
param, len(self.
param))
def changeParam(self, dxl_id, start_address, data_length, data)
def __init__(self, port, ph)
def addParam(self, dxl_id, start_address, data_length, data)
def removeParam(self, dxl_id)