mirror of
https://github.com/Binary-Coalescence/motorDSM.git
synced 2025-08-04 21:55:40 -05:00
Added doMoveToHome method.
This commit is contained in:
@@ -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.
|
||||
|
@@ -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.
|
||||
|
Reference in New Issue
Block a user