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

Off state when motor power is off #8

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

HEnquist
Copy link

@HEnquist HEnquist commented Jan 27, 2022

This changes the state of each axis to Off when the motor power is off.

This relates to this change in the sardana docs: https://gitlab.com/sardana-org/sardana/-/commit/69c0c7ffc2863dd2d9b76344df119186d02684c0

@reszelaz
Copy link
Contributor

reszelaz commented Mar 3, 2022

I would still not merge it. There is an issue in Sardana when one power on/off the motor - see my tests .

I also propose to return False in the PreStartOne() method when there is no power.

@rhomspuron rhomspuron marked this pull request as draft June 21, 2022 13:19
@rhomspuron
Copy link
Contributor

@reszelaz if the motor is off, the current state is Alarm, should it return False on the PreStartOne anyway?

@reszelaz
Copy link
Contributor

@reszelaz if the motor is off, the current state is Alarm, should it return False on the PreStartOne anyway?

The client is still able to request the move if the motor is in Alarm. Then the PreStartOne() returning False will prevent to actually sent the request to the hardware. DummyMotorController implements it like this.

add PreStartOne method to check if power is on or not
@aureocarneiro
Copy link
Contributor

Hi @reszelaz , @rhomspuron, I want to resurrect this PR, can you continue the review ?

Copy link

@ajoubertza ajoubertza left a comment

Choose a reason for hiding this comment

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

LGTM

@rhomspuron
Copy link
Contributor

Hi @reszelaz,

In your test you reported that the Taurus widget does not work fine, is it solved?

Roberto

@reszelaz
Copy link
Contributor

Hi @aureocarneiro , @ajoubertza, @rhomspuron

I just opened https://gitlab.com/sardana-org/sardana/-/issues/1809 in Sardana to try to unblock this MR: it would help if you comment there with your experince about other motion controllers.

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.

5 participants