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

Don't auto-detect virtual axes #67

Merged
merged 1 commit into from
Feb 24, 2025

Conversation

jlmuir
Copy link
Contributor

@jlmuir jlmuir commented Feb 18, 2025

Using MFLAGS.#DEFCON is not a valid way to detect whether an axis is virtual. In fact, there's no reliable way to detect whether an axis is virtual. So, remove the auto-detection logic, and add support for specifying a comma-separated list of virtual axes as a parameter to the AcsMotionConfig IOC shell command and the constructor of the SPiiPlusController class.

Using MFLAGS.#DEFCON is not a valid way to detect whether an axis is
virtual.  In fact, there's no reliable way to detect whether an axis
is virtual.  So, remove the auto-detection logic, and add support
for specifying a comma-separated list of virtual axes as a parameter
to the AcsMotionConfig IOC shell command and the constructor of the
SPiiPlusController class.
@kmpeters
Copy link
Contributor

Can the comma-separated list of virtual axes be changed to an integer virtual axis mask? There is precedent in other motor drivers for using extra integer arguments to specify axes to be treated differently. The SmarAct MCS2 driver has an unusedMask argument that tells the poller which axes to skip while polling:

https://github.com/epics-motor/motorSmarAct/blob/master/smarActApp/src/smarActMCS2MotorDriver.cpp#L568

@kmpeters
Copy link
Contributor

It's probably ok to keep the argument as a comma-separated list. The support doesn't build on VxWorks at the moment, which is the main reason for avoiding long command lines and preferring integers to strings.

@jlmuir
Copy link
Contributor Author

jlmuir commented Feb 20, 2025

I can switch it to a mask; I just haven't had time to do it yet. So, which would you prefer?

@kmpeters
Copy link
Contributor

Leave it as-is. The comma-separated list is more intuitive.

@kmpeters kmpeters merged commit 87de7d5 into epics-motor:master Feb 24, 2025
3 checks passed
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