Motor record: change HVEL=0 case to default to VELO instead of VBAS - #256
Merged
Conversation
Member
|
I suspect this was the intended behavior back when OMS VME stepper motor controllers (which have base velocity commands) were the standard, since it is normally desirable to home at a slower speed. Nowadays, however, there are many controllers that don't have commands for setting the base velocity (microstepping avoids the need for the base velocity) and so this fix seems very reasonable to me. |
Member
|
@redomitro, thanks for this pull request! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Unsure if this was intended behaviour or not, but I noticed that in the case of HVEL=0 (or the user didn't set HVEL) the record defaults to HVEL=VBAS - this is unexpected behaviour and results in much slower homing than expected.
I've changed motorRecord.cc to instead mirror VELO into HVEL. The modification is tested and functions correctly on a servo controller.