mirror of
https://github.com/Binary-Coalescence/motorDSM.git
synced 2025-08-04 21:55:40 -05:00
Set hasEncoder and gainSupport to true. Can now set motor gain.
This commit is contained in:
@@ -380,6 +380,10 @@ asynStatus MD90Axis::poll(bool *moving)
|
|||||||
sscanf (pC_->inString_, "%d: %[^:]: %d", &replyStatus, replyString, &replyValue);
|
sscanf (pC_->inString_, "%d: %[^:]: %d", &replyStatus, replyString, &replyValue);
|
||||||
setDoubleParam(pC_->motorIGain_, replyValue);
|
setDoubleParam(pC_->motorIGain_, replyValue);
|
||||||
|
|
||||||
|
// set some default params
|
||||||
|
setIntegerParam(pC_->motorStatusHasEncoder_, 1);
|
||||||
|
setIntegerParam(pC_->motorStatusGainSupport_, 1);
|
||||||
|
|
||||||
skip:
|
skip:
|
||||||
setIntegerParam(pC_->motorStatusProblem_, comStatus ? 1:0);
|
setIntegerParam(pC_->motorStatusProblem_, comStatus ? 1:0);
|
||||||
callParamCallbacks();
|
callParamCallbacks();
|
||||||
|
Reference in New Issue
Block a user