-
Notifications
You must be signed in to change notification settings - Fork 194
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
Deprecate IControlMode::setXXXMode(int) methods #1223
Conversation
Thank you for reporting this. Actually, all similar methods |
I've made some progress at PeterBowman/yarp@e5b2734. Is it OK if I add this to the previous commit and edit the PR title? |
@PeterBowman Sure, go on! Thanks |
legacySetControlMode(j, mode); | ||
YARP_WARNING_PUSH | ||
YARP_DISABLE_DEPRECATED_WARNING | ||
ret = legacySetControlMode(j, mode); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed return value.
YARP_DEPRECATED bool setImpedancePositionMode(int j) { return setControlMode(j,VOCAB_CM_IMPEDANCE_POS); } | ||
YARP_DEPRECATED bool setImpedanceVelocityMode(int j) { return setControlMode(j,VOCAB_CM_IMPEDANCE_VEL); } | ||
#if !defined(_MSC_VER) | ||
YARP_WARNING_POP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Notice how this is different from current master. I guess it was a typo (c5b8f28).
I see two additional issues here:
|
Unused, doesn't belong to any controlboard interface, leads to confusion due to the recent deletion of IPositionDirect::setPositionDirectMode.
48ea5b0
to
7275637
Compare
Rebased and fixed conflict with the latest commits. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work
I will merge it as soon as the tests are complete. Thanks |
Merged. Thanks! |
Unused, doesn't belong to any controlboard interface, leads to confusion due to the recent deletion of
IPositionDirect::setPositionDirectMode
.