コード例 #1
0
 def pos_1_srv(self, req):
     data_to_send = dict(pos_1=req.command)
     self.sendSerial(data_to_send)
     reply = "ID " + str(req.command[0]) + " >> Position " + str(
         req.command[1])
     return list_keyResponse(reply)
コード例 #2
0
 def acc_N_srv(self, req):
     data_to_send = dict(aprof_n=req.command)
     self.sendSerial(data_to_send)
     return list_keyResponse("Some Acceleration profiles changed")
コード例 #3
0
 def pos_N_srv(self, req):
     data_to_send = dict(pos_n=req.command)
     self.sendSerial(data_to_send)
     return list_keyResponse("Some Positions changed")
コード例 #4
0
 def pwm_N_srv(self, req):
     data_to_send = dict(pwm_n=req.command)
     self.sendSerial(data_to_send)
     return list_keyResponse("Some PWM Limits changed")
コード例 #5
0
 def vel_N_srv(self, req):
     data_to_send = dict(vprof_n=req.command)
     self.sendSerial(data_to_send)
     return list_keyResponse("Some Velocity profiles changed")