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

Allow to memorize PMUX ctrl attribute and SyncAux/SyncPos/SyncRes axis attributes #33

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

beenje
Copy link

@beenje beenje commented Sep 26, 2024

  • PMUX was already set as string and could be memorised, but:

    • the PMUX string wasn't allowed in the set value, which I found confusing when looking at the read value, which returns something like PMUX POS AUX B5 R1. That couldn't be used as set value. Only something like POS AUX B5 R1 was accepted (without PMUX). Both syntax can now be used.
    • Only one source/dest could be passed as set value. It wasn't possible to memorize something like PMUX POS B5 R0, PMUX AUX B1 E0. The controller now accepts multiple comma separated commands as set value (i.e. PMUX POS B5 R0, PMUX AUX B1 E0).
  • SyncAux/SyncPos/SyncRes were defined as list of strings (spectrum), which can't be memorised. Replace them with strings instead (space separated) so they can be memorised.

The syntax to set the PMUX value is:
PMUX [HARD] [POS] [AUX] <source> [<dest>]

The controller returns something like "PMUX POS AUX B5 R1" as read value
but doesn't allow to pass that string as set value.
Until now, "POS AUX B5 R1" was supposed to be used.

This change allows to pass as well the read value starting with "PMUX" (it will be ignored).
SyncAux/SyncPos/SyncRes were defined as list of strings.
Spectrum can't be memorized.
Convert them to space separated strings instead.
@rhomspuron
Copy link
Contributor

Hi @beenje,

Sorry for the delay, thanks for do it :). I reviewed the PR and it looks great. I would like to be sure that we do not use this attributes before change the API. Anyway we can integrate it and change the major version

Roberto

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