Skip to content

Simulated Motor: Moving after setting MRES fails #6881

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

Closed
1 task
DominicOram opened this issue Nov 5, 2021 · 2 comments
Closed
1 task

Simulated Motor: Moving after setting MRES fails #6881

DominicOram opened this issue Nov 5, 2021 · 2 comments
Assignees
Labels

Comments

@DominicOram
Copy link
Contributor

When using a simulated motor the first move after setting an MRES fails. e.g. the following do not work:

  • MRES -> MOVE
  • MRES -> JOG

but the following (2nd move) will work:

  • MRES -> MOVE -> MOVE

It appears you can also somehow get the simulated motor out of this state but I haven't worked out exactly how. I spent half a day debugging and found that adding print statements/breakpoints into the motor code would fix the problem and so continuing to debug will be hard. Given that this has only been seen on simulated motors and is a known problem I stopped digging any further.

Acceptance criteria

  • Setting an MRES and then moving a simulated motor works first time
@FreddieAkeroyd
Copy link
Member

This only fails for me if VAL/DVAL is 0 when I set MRES, is that the same for you?

@FreddieAkeroyd
Copy link
Member

The above two PRs look to fix it on my machine, but may not in general - it does seem intermittent sometimes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants