asynMotor: Introduce motorActVelocity#238
Merged
kmpeters merged 1 commit intoepics-modules:masterfrom Feb 24, 2026
Merged
Conversation
Merged
commit 11229ed, Fixed RVEL bug, made a change to be able to set the .RVEL field in the motorRecord from a model 3 driver. However, this mixes motorVelocity_, which is a setpoint changed with every movement, with an actual value, which changes while the motor is moving. And goes to 0.0 when the motor has stopped. Or stays at 0.0 when the motor refuse to start. This may be caused by an interlock, limit switch, power off or others. In short: Introduce a new asynParameter to store the value. Compatiblity considarations: Since the .RVEL field has never been working for an asynMotor, we don't expect any. If needed, code can be adopted at compile time, with something like this: #ifdef motorActVelocityString setDoubleParam(pC_->motorActVelocity_, st_axis_status.fActVelocity); #endif
72a5242 to
314ef89
Compare
Member
|
@tboegi, 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.
commit 11229ed, Fixed RVEL bug, made a change to be able to set the .RVEL field in the motorRecord from a model 3 driver. However, this mixes motorVelocity_,
which is a setpoint changed with every movement, with an actual value, which changes while the motor is moving.
And goes to 0.0 when the motor has stopped.
Or stays at 0.0 when the motor refuse to start.
This may be caused by an interlock, limit switch, power off or others.
In short: Introduce a new asynParameter to store the value.
Compatiblity considarations:
Since the .RVEL field has never been working for an asynMotor, we don't expect any.
If needed, code can be adopted at compile time, with something like this:
setDoubleParam(pC_->motorActVelocity_,
st_axis_status.fActVelocity);
#endif