@@ -137,6 +137,14 @@ def set_fresh_mode(self, id, mode):
137137 0 - Execute instructions sequentially in the form of a queue.
138138 """
139139 return self ._mesg (ProtocolCode .SET_FRESH_MODE , id , mode )
140+
141+ def get_fresh_mode (self , id ):
142+ """Get instruction refresh mode status
143+
144+ Args:
145+ id: 1/2 (L/R).
146+ """
147+ return self ._mesg (ProtocolCode .GET_FRESH_MODE , id , has_reply = True )
140148
141149 def set_free_mode (self , id , value ):
142150 """set free mode
@@ -939,27 +947,26 @@ def set_plan_acceleration(self, id, acceleration):
939947 ProtocolCode .SET_PLAN_ACCELERATION , id , acceleration
940948 )
941949
942- def get_servo_currents (self , id ):
943- """Get joint current
950+ # def get_servo_currents(self, id):
951+ # """Get joint current
944952
945- Args:
946- id: 1/2/3 (L/R/W)
953+ # Args:
954+ # id: 1/2/3 (L/R/W)
947955
948- Return:
949- value mA
950- """
951- return self ._mesg (ProtocolCode .GET_SERVO_VOLTAGES , id , has_reply = True )
956+ # Return:
957+ # value mA
958+ # """
959+ # return self._mesg(ProtocolCode.GET_SERVO_CURRENTS , id, has_reply=True)
952960
953961 def get_servo_voltages (self , id ):
954962 """Get joint voltages
955963
956964 Args:
957965 id: 1/2/3 (L/R/W)
958-
959966 Return:
960967 volts < 24 V
961968 """
962- return self ._mesg (ProtocolCode .GET_SERVO_STATUS , id , has_reply = True )
969+ return self ._mesg (ProtocolCode .GET_SERVO_VOLTAGES , id , has_reply = True )
963970
964971 def get_servo_status (self , id ):
965972 """Get joint status
@@ -970,15 +977,15 @@ def get_servo_status(self, id):
970977 Return:
971978 [voltage, sensor, temperature, current, angle, overload], a value of 0 means no error
972979 """
973- return self ._mesg (ProtocolCode .GET_SERVO_TEMPS , id , has_reply = True )
980+ return self ._mesg (ProtocolCode .GET_SERVO_STATUS , id , has_reply = True )
974981
975982 def get_servo_temps (self , id ):
976983 """Get joint temperature
977984
978985 Args:
979986 id: 1/2/3 (L/R/W)
980987 """
981- return self ._mesg (0xE6 , id , has_reply = True )
988+ return self ._mesg (ProtocolCode . GET_SERVO_TEMPS , id , has_reply = True )
982989
983990 def get_base_coords (self , * args ):
984991 """Convert coordinates to base coordinates. Pass in parameters or no parameters
0 commit comments