Skip to content

[RB26] Linear Axes not referenced #56

@BenGeissler

Description

@BenGeissler

Hello,

I am having trouble with the linear axes of the tool guide.

When pressing the Reference Button on either the Y-Axis or the X-Axis, the logging output is:
For the Y-Axis:

rosys_1         | 2024-05-15 15:17:35.933 [INFO] rosys/rosys.py:69: automation started
rosys_1         | 2024-05-15 15:17:35.953 [INFO] field_friend/hardware/y_axis_stepper_hardware.py:100: moving to end_r stop

For the Z-Axis:

rosys_1         | 2024-05-15 11:18:41.782 [INFO] rosys/rosys.py:69: automation started
rosys_1         | 2024-05-15 11:18:41.800 [INFO] field_friend/hardware/z_axis_stepper_hardware.py:92: zaxis referencing...
rosys_1         | 2024-05-15 11:18:41.801 [INFO] field_friend/hardware/z_axis_stepper_hardware.py:113: moving out of end t stop

After this, however, pressing any of the other buttons, e.g. Move to Middle for the Y-Axis nothing moves and the logger has the following output:

rosys_1         | 2024-05-15 11:11:11.230 [INFO] rosys/rosys.py:69: automation started
rosys_1         | 2024-05-15 11:11:11.234 [INFO] field_friend/hardware/y_axis_stepper_hardware.py:68: could not move yaxis to 0 because of yaxis is not referenced, reference first
rosys_1         | 2024-05-15 11:11:11.239 [ERROR] rosys/automation/automation.py:68: automation failed
rosys_1         | Traceback (most recent call last):
rosys_1         |   File "/app/field_friend/hardware/y_axis_stepper_hardware.py", line 66, in move_to
rosys_1         |     await super().move_to(position, speed)
rosys_1         |   File "/app/field_friend/hardware/y_axis.py", line 41, in move_to
rosys_1         |     raise RuntimeError('yaxis is not referenced, reference first')
rosys_1         | RuntimeError: yaxis is not referenced, reference first
rosys_1         | 
rosys_1         | During handling of the above exception, another exception occurred:
rosys_1         | 
rosys_1         | Traceback (most recent call last):
rosys_1         |   File "/app/rosys/automation/automation.py", line 56, in __await__
rosys_1         |     signal = send(message)
rosys_1         |              ^^^^^^^^^^^^^
rosys_1         |   File "/app/field_friend/hardware/y_axis_stepper_hardware.py", line 69, in move_to
rosys_1         |     raise Exception(f'could not move yaxis to {position} because of {error}')
rosys_1         | Exception: could not move yaxis to 0 because of yaxis is not referenced, reference first
rosys_1         | 2024-05-15 11:11:11.276 [INFO] rosys/rosys.py:69: automation stopped because an exception occurred in an automation
rosys_1         | 2024-05-15 11:11:11.277 [INFO] rosys/rosys.py:69: automation failed
rosys_1         | 2024-05-15 11:11:11.291 [ERROR] nicegui/app/app.py:118: could not move yaxis to 0 because of yaxis is not referenced, reference first
rosys_1         | Traceback (most recent call last):
rosys_1         |   File "/app/field_friend/hardware/y_axis_stepper_hardware.py", line 66, in move_to
rosys_1         |     await super().move_to(position, speed)
rosys_1         |   File "/app/field_friend/hardware/y_axis.py", line 41, in move_to
rosys_1         |     raise RuntimeError('yaxis is not referenced, reference first')
rosys_1         | RuntimeError: yaxis is not referenced, reference first
rosys_1         | 
rosys_1         | During handling of the above exception, another exception occurred:
rosys_1         | 
rosys_1         | Traceback (most recent call last):
rosys_1         |   File "/app/nicegui/background_tasks.py", line 52, in _handle_task_result
rosys_1         |     task.result()
rosys_1         |   File "/app/rosys/automation/automation.py", line 56, in __await__
rosys_1         |     signal = send(message)
rosys_1         |              ^^^^^^^^^^^^^
rosys_1         |   File "/app/field_friend/hardware/y_axis_stepper_hardware.py", line 69, in move_to
rosys_1         |     raise Exception(f'could not move yaxis to {position} because of {error}')
rosys_1         | Exception: could not move yaxis to 0 because of yaxis is not referenced, reference first

It is the same with the Z-Axis, e.g. Move to Min:

rosys_1         | 2024-05-15 11:17:35.351 [INFO] rosys/rosys.py:69: automation started
rosys_1         | 2024-05-15 11:17:35.355 [ERROR] field_friend/hardware/z_axis_stepper_hardware.py:70: could not move zaxis to -0.197 because of zaxis is not referenced, reference first
rosys_1         | 2024-05-15 11:17:35.361 [ERROR] rosys/automation/automation.py:68: automation failed
rosys_1         | Traceback (most recent call last):
rosys_1         |   File "/app/field_friend/hardware/z_axis_stepper_hardware.py", line 68, in move_to
rosys_1         |     await super().move_to(position, speed)
rosys_1         |   File "/app/field_friend/hardware/z_axis.py", line 46, in move_to
rosys_1         |     raise RuntimeError('zaxis is not referenced, reference first')
rosys_1         | RuntimeError: zaxis is not referenced, reference first
rosys_1         | 
rosys_1         | The above exception was the direct cause of the following exception:
rosys_1         | 
rosys_1         | Traceback (most recent call last):
rosys_1         |   File "/app/rosys/automation/automation.py", line 56, in __await__
rosys_1         |     signal = send(message)
rosys_1         |              ^^^^^^^^^^^^^
rosys_1         |   File "/app/field_friend/hardware/z_axis_stepper_hardware.py", line 71, in move_to
rosys_1         |     raise Exception(f'could not move zaxis to {position} because of {error}') from error
rosys_1         | Exception: could not move zaxis to -0.197 because of zaxis is not referenced, reference first
rosys_1         | 2024-05-15 11:17:35.374 [INFO] rosys/rosys.py:69: automation stopped because an exception occurred in an automation
rosys_1         | 2024-05-15 11:17:35.377 [INFO] rosys/rosys.py:69: automation failed
rosys_1         | 2024-05-15 11:17:35.417 [ERROR] nicegui/app/app.py:118: could not move zaxis to -0.197 because of zaxis is not referenced, reference first
rosys_1         | Traceback (most recent call last):
rosys_1         |   File "/app/field_friend/hardware/z_axis_stepper_hardware.py", line 68, in move_to
rosys_1         |     await super().move_to(position, speed)
rosys_1         |   File "/app/field_friend/hardware/z_axis.py", line 46, in move_to
rosys_1         |     raise RuntimeError('zaxis is not referenced, reference first')
rosys_1         | RuntimeError: zaxis is not referenced, reference first
rosys_1         | 
rosys_1         | The above exception was the direct cause of the following exception:
rosys_1         | 
rosys_1         | Traceback (most recent call last):
rosys_1         |   File "/app/nicegui/background_tasks.py", line 52, in _handle_task_result
rosys_1         |     task.result()
rosys_1         |   File "/app/rosys/automation/automation.py", line 56, in __await__
rosys_1         |     signal = send(message)
rosys_1         |              ^^^^^^^^^^^^^
rosys_1         |   File "/app/field_friend/hardware/z_axis_stepper_hardware.py", line 71, in move_to
rosys_1         |     raise Exception(f'could not move zaxis to {position} because of {error}') from error
rosys_1         | Exception: could not move zaxis to -0.197 because of zaxis is not referenced, reference first

Is this a bug, or am I missing something to set these functions up correctly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions