Skip to content

Q: What should happen when JOGR and JOGF are active #170

@tboegi

Description

@tboegi

May be more a question than an issue.
From a partner lab I got the following question:

  1. User set JOGR to 1
  2. User sets JOGF to 1 (without resetting JOGR)
  3. Motor stops
  4. Set JOGF to 1 again -> nothing happens
  5. Set JOGF=1 again -> motor moves backward

From the code we can see, that the motor is commanded backwards if JOGR is set (pmr->jogr),
regardless of JOGF.

My understanding is, that most GUIs don't allow JOGF and JOGR to be active at the same time -
problem solved.
Beside that, is there a good way to make the motorRecord more better-behaved in this scenario?
I have some option in mind:
a) The latest JOGX command "wins". When JOGR is activated, JOGF is reset, if needed.
And vice versa
b) The first JOGX command wins. The second one is ignored.
c) Both JOGR and JOGF are reset, motor is stopped.

Are there any opinions (before I start the coding) ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions