@@ -198,7 +198,7 @@ def __init__(self, node_id, object_dictionary):
198198 def setup_402_state_machine (self ):
199199 """Configured the state machine by searching for the PDO that has the
200200 StatusWord mappend.
201- :raise ValueError: If the the node can't finde a Statusword configured
201+ :raise ValueError: If the the node can't find a Statusword configured
202202 in the any of the TPDOs
203203 """
204204 # the node needs to be in pre-operational mode
@@ -250,9 +250,9 @@ def reset_from_fault(self):
250250 def homing (self , timeout = 30 , set_new_home = True ):
251251 """Function to execute the configured Homing Method on the node
252252 :param int timeout: Timeout value (default: 30)
253- :param bool set_new_home: Difines if the node should set the home offset
253+ :param bool set_new_home: Defines if the node should set the home offset
254254 object (0x607C) to the current position after the homing procedure (default: true)
255- :return: If the homing was complet with success
255+ :return: If the homing was complete with success
256256 :rtype: bool
257257 """
258258 result = False
@@ -324,7 +324,7 @@ def op_mode(self, mode):
324324 result = False
325325
326326 if not self .is_op_mode_supported (mode ):
327- raise TypeError ('Operation mode not suppported by the node.' )
327+ raise TypeError ('Operation mode not supported by the node.' )
328328
329329 if self .state == 'OPERATION ENABLED' :
330330 self .state = 'SWITCHED ON'
@@ -432,9 +432,9 @@ def state(self, new_state):
432432 :param string new_state: Target state
433433 :param int timeout:
434434 :raise RuntimeError: Occurs when the time defined to change the state is reached
435- :raise TypeError: Occurs when trying to execute a ilegal transition in the sate machine
435+ :raise TypeError: Occurs when trying to execute a illegal transition in the state machine
436436 """
437- t_to_new_state = time .time () + 8 # 800 milliseconds tiemout
437+ t_to_new_state = time .time () + 8 # 800 milliseconds timeout
438438 while self .state != new_state :
439439 try :
440440 if new_state == 'OPERATION ENABLED' :
@@ -456,5 +456,5 @@ def state(self, new_state):
456456 # check the timeout
457457 if time .time () > t_to_new_state :
458458 raise RuntimeError ('Timeout when trying to change state' )
459- time .sleep (0.01 ) # 10 miliseconds of sleep
459+ time .sleep (0.01 ) # 10 milliseconds of sleep
460460
0 commit comments