@@ -198,7 +198,7 @@ def __init__(self, node_id, object_dictionary):
198
198
def setup_402_state_machine (self ):
199
199
"""Configured the state machine by searching for the PDO that has the
200
200
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
202
202
in the any of the TPDOs
203
203
"""
204
204
# the node needs to be in pre-operational mode
@@ -250,9 +250,9 @@ def reset_from_fault(self):
250
250
def homing (self , timeout = 30 , set_new_home = True ):
251
251
"""Function to execute the configured Homing Method on the node
252
252
: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
254
254
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
256
256
:rtype: bool
257
257
"""
258
258
result = False
@@ -324,7 +324,7 @@ def op_mode(self, mode):
324
324
result = False
325
325
326
326
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.' )
328
328
329
329
if self .state == 'OPERATION ENABLED' :
330
330
self .state = 'SWITCHED ON'
@@ -432,9 +432,9 @@ def state(self, new_state):
432
432
:param string new_state: Target state
433
433
:param int timeout:
434
434
: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
436
436
"""
437
- t_to_new_state = time .time () + 8 # 800 milliseconds tiemout
437
+ t_to_new_state = time .time () + 8 # 800 milliseconds timeout
438
438
while self .state != new_state :
439
439
try :
440
440
if new_state == 'OPERATION ENABLED' :
@@ -456,5 +456,5 @@ def state(self, new_state):
456
456
# check the timeout
457
457
if time .time () > t_to_new_state :
458
458
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
460
460
0 commit comments