Set hasEncoder and gainSupport to true. Can now set motor gain.

This commit is contained in:
2024-06-21 16:36:48 -05:00
parent bdec17808a
commit 7551465733

View File

@@ -380,6 +380,10 @@ asynStatus MD90Axis::poll(bool *moving)
sscanf (pC_->inString_, "%d: %[^:]: %d", &replyStatus, replyString, &replyValue);
setDoubleParam(pC_->motorIGain_, replyValue);
// set some default params
setIntegerParam(pC_->motorStatusHasEncoder_, 1);
setIntegerParam(pC_->motorStatusGainSupport_, 1);
skip:
setIntegerParam(pC_->motorStatusProblem_, comStatus ? 1:0);
callParamCallbacks();