Added doMoveToHome method.

This commit is contained in:
2024-06-05 16:14:40 -05:00
parent c5eebd9597
commit 402584345f
2 changed files with 11 additions and 0 deletions

View File

@@ -264,6 +264,16 @@ asynStatus MD90Axis::setIGain(double iGain)
return status;
}
asynStatus MD90Axis::doMoveToHome()
{
asynStatus status;
//static const char *functionName = "MD90Axis::doMoveToHome";
sprintf(pC_->outString_, "CLM 0");
status = pC_->writeReadController();
return status;
}
/** Polls the axis.
* This function reads the motor position, the limit status, the home status, the moving status,
* and the drive power-on status.

View File

@@ -28,6 +28,7 @@ public:
asynStatus poll(bool *moving);
asynStatus setClosedLoop(bool closedLoop);
asynStatus setIGain(double iGain);
asynStatus doMoveToHome();
private:
MD90Controller *pC_; /**< Pointer to the asynMotorController to which this axis belongs.