diff --git a/dsmApp/src/MD90Driver.cpp b/dsmApp/src/MD90Driver.cpp index 2e02278..999cb23 100644 --- a/dsmApp/src/MD90Driver.cpp +++ b/dsmApp/src/MD90Driver.cpp @@ -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. diff --git a/dsmApp/src/MD90Driver.h b/dsmApp/src/MD90Driver.h index 5062b4f..12795ec 100644 --- a/dsmApp/src/MD90Driver.h +++ b/dsmApp/src/MD90Driver.h @@ -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.