From caf6692068042db0e8b99bdd8139bfe80af4664c Mon Sep 17 00:00:00 2001 From: smathis Date: Thu, 12 Feb 2026 09:45:40 +0100 Subject: [PATCH] Fixes RVEL not being populated This patch fixes the issue reported in https://epics.anl.gov/tech-talk/2026/msg00212.php, where the RVEL field of the motor record was not populated when writing to the motorVelocity_ paramLib entry. --- motorApp/MotorSrc/asynMotorAxis.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/motorApp/MotorSrc/asynMotorAxis.cpp b/motorApp/MotorSrc/asynMotorAxis.cpp index eb61b5bc..81a2d6da 100644 --- a/motorApp/MotorSrc/asynMotorAxis.cpp +++ b/motorApp/MotorSrc/asynMotorAxis.cpp @@ -288,7 +288,12 @@ asynStatus asynMotorAxis::setDoubleParam(int function, double value) statusChanged_ = 1; status_.encoderPosition = value; } - } + } else if (function == pC_->motorVelocity_) { + if (value != status_.velocity) { + statusChanged_ = 1; + status_.velocity = value; + } + } // Call the base class method return pC_->setDoubleParam(axisNo_, function, value); }