Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear error 40 before robot load #722

Merged
merged 5 commits into from
Dec 20, 2024

Conversation

shihab-dls
Copy link
Collaborator

@shihab-dls shihab-dls commented Dec 19, 2024

This should fix issue #505, where error 40 represents a common error of tripping the light curtains, and thus should be cleared before robot load.

Requires #722

Copy link

codecov bot commented Dec 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.87%. Comparing base (a9b4e3c) to head (91fd3f2).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #722   +/-   ##
=======================================
  Coverage   86.87%   86.87%           
=======================================
  Files         100      100           
  Lines        6902     6905    +3     
=======================================
+ Hits         5996     5999    +3     
  Misses        906      906           
Components Coverage Δ
i24 SSX 72.69% <ø> (ø)
hyperion 96.38% <100.00%> (+<0.01%) ⬆️
other 96.56% <ø> (ø)

Copy link
Contributor

@olliesilvester olliesilvester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one! One very very minor comment, take it or leave it

@@ -122,6 +122,11 @@ def do_robot_load(
demand_energy_ev: float | None,
thawing_time: float,
):
error_code = yield from bps.rd(composite.robot.error_code)
# Reset robot if light curtains were tripped
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😍

@shihab-dls shihab-dls merged commit 2c85352 into main Dec 20, 2024
22 checks passed
@shihab-dls shihab-dls deleted the 505_clear_error_40_before_robot_load branch December 20, 2024 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants