Expanded error messageto give users the ability to help themselves
All checks were successful
Test And Build / Lint (push) Successful in 5s
Test And Build / Build (push) Successful in 6s

This commit is contained in:
2025-09-17 10:24:07 +02:00
parent cff64f5ecf
commit 9a32532c22

View File

@@ -482,9 +482,9 @@ asynStatus sinqAxis::setVeloFields(double velo, double vbas, double vmax) {
"vmax=%lf.\n", "vmax=%lf.\n",
pC_->portName, axisNo_, __PRETTY_FUNCTION__, __LINE__, pC_->portName, axisNo_, __PRETTY_FUNCTION__, __LINE__,
vbas, vmax); vbas, vmax);
setAxisParamChecked( setAxisParamChecked(this, motorMessageText,
this, motorMessageText, "Lower speed limit must not be smaller than "
"Lower speed limit must not be smaller than upper speed limit"); "upper speed limit. Please call the support.");
return asynError; return asynError;
} }
if (velo < vbas || velo > vmax) { if (velo < vbas || velo > vmax) {
@@ -495,8 +495,10 @@ asynStatus sinqAxis::setVeloFields(double velo, double vbas, double vmax) {
pC_->portName, axisNo_, __PRETTY_FUNCTION__, __LINE__, pC_->portName, axisNo_, __PRETTY_FUNCTION__, __LINE__,
velo, vbas, vmax); velo, vbas, vmax);
setAxisParamChecked(this, motorMessageText, setAxisParamChecked(
"Speed is not inside limits"); this, motorMessageText,
"Speed is not inside limits. Set a new valid speed and try "
"moving. Otherwise, please call the support.");
return asynError; return asynError;
} }