mirror of
https://github.com/Binary-Coalescence/motorDSM.git
synced 2025-08-04 21:55:40 -05:00
Updated move command for md90.
This commit is contained in:
@@ -174,10 +174,11 @@ asynStatus MD90Axis::move(double position, int relative, double minVelocity, dou
|
|||||||
|
|
||||||
status = sendAccelAndVelocity(acceleration, maxVelocity);
|
status = sendAccelAndVelocity(acceleration, maxVelocity);
|
||||||
|
|
||||||
|
// Position specified in nanometers
|
||||||
if (relative) {
|
if (relative) {
|
||||||
sprintf(pC_->outString_, "#%02dI%+d", axisNo_, NINT(position));
|
sprintf(pC_->outString_, "CRM %d", NINT(position));
|
||||||
} else {
|
} else {
|
||||||
sprintf(pC_->outString_, "#%02dG%+d", axisNo_, NINT(position));
|
sprintf(pC_->outString_, "CLM %d", NINT(position));
|
||||||
}
|
}
|
||||||
status = pC_->writeReadController();
|
status = pC_->writeReadController();
|
||||||
return status;
|
return status;
|
||||||
|
Reference in New Issue
Block a user