Skip to content

Commit

Permalink
Fixed a missing await instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
MrYsLab committed Sep 30, 2023
1 parent 0d224b3 commit 1b6b9b0
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions telemetrix_aio/telemetrix_aio.py
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,7 @@ async def stepper_move_to(self, motor_id, position):
If you are trying to use constant speed movements, you should call setSpeed()
after calling moveTo().
:param motor_id: motor id: 0 - 3
:param motor_id: motor id: 0 - 7
:param position: target position. Maximum value is 32 bits.
"""
Expand Down Expand Up @@ -1503,7 +1503,7 @@ async def stepper_move(self, motor_id, relative_position):
"""
Set the target position relative to the current position.
:param motor_id: motor id: 0 - 3
:param motor_id: motor id: 0 - 7
:param relative_position: The desired position relative to the current
position. Negative is anticlockwise from
Expand Down Expand Up @@ -1534,7 +1534,7 @@ async def stepper_run(self, motor_id, completion_callback=None):
Once called, the server will continuously attempt to step the motor.
:param motor_id: 0 - 3
:param motor_id: 0 - 7
:param completion_callback: call back function to receive motion complete
notification
Expand Down Expand Up @@ -1567,7 +1567,7 @@ async def stepper_run_speed(self, motor_id):
Once called, the server will continuously attempt to step the motor.
:param motor_id: 0 - 3
:param motor_id: 0 - 7
"""
if not self.stepper_info_list[motor_id]['instance']:
Expand All @@ -1589,7 +1589,7 @@ async def stepper_set_max_speed(self, motor_id, max_speed):
Caution: Speeds that exceed the maximum speed supported by the processor may
result in non-linear accelerations and decelerations.
:param motor_id: 0 - 3
:param motor_id: 0 - 7
:param max_speed: 1 - 1000
"""
Expand Down Expand Up @@ -1619,7 +1619,7 @@ async def stepper_get_max_speed(self, motor_id):
Value is stored in the client, so no callback is required.
:param motor_id: 0 - 3
:param motor_id: 0 - 7
:return: The currently configured maximum speed.
"""
Expand All @@ -1634,7 +1634,7 @@ async def stepper_set_acceleration(self, motor_id, acceleration):
"""
Sets the acceleration/deceleration rate.
:param motor_id: 0 - 3
:param motor_id: 0 - 7
:param acceleration: The desired acceleration in steps per second
per second. Must be > 0.0. This is an
Expand Down Expand Up @@ -1667,7 +1667,7 @@ async def stepper_set_speed(self, motor_id, speed):
"""
Sets the desired constant speed for use with stepper_run_speed().
:param motor_id: 0 - 3
:param motor_id: 0 - 7
:param speed: -1000 - 1000 The desired constant speed in steps per
second. Positive is clockwise. Speeds of more than 1000 steps per
Expand Down Expand Up @@ -1714,7 +1714,7 @@ async def stepper_get_speed(self, motor_id):
Value is stored in the client, so no callback is required.
:param motor_id: 0 - 3
:param motor_id: 0 - 7
"""
if not self.stepper_info_list[motor_id]['instance']:
Expand All @@ -1729,7 +1729,7 @@ async def stepper_get_distance_to_go(self, motor_id, distance_to_go_callback):
Request the distance from the current position to the target position
from the server.
:param motor_id: 0 - 3
:param motor_id: 0 - 7
:param distance_to_go_callback: required callback function to receive report
Expand Down Expand Up @@ -1758,7 +1758,7 @@ async def stepper_get_target_position(self, motor_id, target_callback):
"""
Request the most recently set target position from the server.
:param motor_id: 0 - 3
:param motor_id: 0 - 7
:param target_callback: required callback function to receive report
Expand Down Expand Up @@ -1790,7 +1790,7 @@ async def stepper_get_current_position(self, motor_id, current_position_callback
"""
Request the current motor position from the server.
:param motor_id: 0 - 3
:param motor_id: 0 - 7
:param current_position_callback: required callback function to receive report
Expand Down Expand Up @@ -1825,7 +1825,7 @@ async def stepper_set_current_position(self, motor_id, position):
Has the side effect of setting the current motor speed to 0.
:param motor_id: 0 - 3
:param motor_id: 0 - 7
:param position: Position in steps. This is a 32 bit value
"""
Expand All @@ -1848,7 +1848,7 @@ async def stepper_run_speed_to_position(self, motor_id, completion_callback=None
Does not implement accelerations.
:param motor_id: 0 - 3
:param motor_id: 0 - 7
:param completion_callback: call back function to receive motion complete
notification
Expand Down Expand Up @@ -1880,7 +1880,7 @@ async def stepper_stop(self, motor_id):
to stop as quickly as possible, using the current speed and
acceleration parameters.
:param motor_id: 0 - 3
:param motor_id: 0 - 7
"""
if not self.stepper_info_list[motor_id]['instance']:
if self.shutdown_on_exception:
Expand All @@ -1904,7 +1904,7 @@ async def stepper_disable_outputs(self, motor_id):
If the enable Pin is defined, sets it to OUTPUT mode and clears
the pin to disabled.
:param motor_id: 0 - 3
:param motor_id: 0 - 7
"""
if not self.stepper_info_list[motor_id]['instance']:
if self.shutdown_on_exception:
Expand All @@ -1922,7 +1922,7 @@ async def stepper_enable_outputs(self, motor_id):
If the enable Pin is defined, sets it to OUTPUT mode and sets
the pin to enabled.
:param motor_id: 0 - 3
:param motor_id: 0 - 7
"""
if not self.stepper_info_list[motor_id]['instance']:
if self.shutdown_on_exception:
Expand All @@ -1940,7 +1940,7 @@ async def stepper_set_min_pulse_width(self, motor_id, minimum_width):
Times less than 20 microseconds will usually result in 20 microseconds or so.
:param motor_id: 0 -3
:param motor_id: 0 -7
:param minimum_width: A 16 bit unsigned value expressed in microseconds.
"""
Expand Down Expand Up @@ -1971,7 +1971,7 @@ async def stepper_set_enable_pin(self, motor_id, pin=0xff):
enableOutputs() is called and switched off when disableOutputs()
is called.
:param motor_id: 0 - 4
:param motor_id: 0 - 7
:param pin: 0-0xff
"""
if not self.stepper_info_list[motor_id]['instance']:
Expand All @@ -1993,7 +1993,7 @@ async def stepper_set_3_pins_inverted(self, motor_id, direction=False, step=Fals
"""
Sets the inversion for stepper driver pins.
:param motor_id: 0 - 3
:param motor_id: 0 - 7
:param direction: True=inverted or False
Expand All @@ -2017,7 +2017,7 @@ async def stepper_set_4_pins_inverted(self, motor_id, pin1_invert=False,
"""
Sets the inversion for 2, 3 and 4 wire stepper pins
:param motor_id: 0 - 3
:param motor_id: 0 - 7
:param pin1_invert: True=inverted or False
Expand Down Expand Up @@ -2045,7 +2045,7 @@ async def stepper_is_running(self, motor_id, callback):
Callback return True if the speed is not zero or not at the target position.
:param motor_id: 0-4
:param motor_id: 0-7
:param callback: required callback function to receive report
Expand Down

0 comments on commit 1b6b9b0

Please sign in to comment.