Aufgrund einer Wartung wird GitLab am 29.10. zwischen 9:00 und 10:00 Uhr kurzzeitig nicht zur Verfügung stehen. / Due to maintenance, GitLab will be temporarily unavailable on 29.10. between 9:00 and 10:00 am.

Commit e8a64e9d authored by Jan-Gerrit Richter's avatar Jan-Gerrit Richter

moved new motor control classes from userscripts

parent 56c253a0
classdef itaMotorControl < itaHandle
%ITAMOTORCONTROL Summary of this class goes here
% Detailed explanation goes here
properties(Access = protected, Hidden = true)
mSerialObj; % the serial connection
end
properties
comPort = ita_preferences('movtecComPort');
baudrate = 9600;
databits = 8;
stopbits = 1;
OutputBufferSize = 3072;
wait = true; % Status - do we wait for motors to reach final position? -> Set by prepare-functions!
end
methods(Abstract)
% basic motor functions
this = init(this);
stopAllMotors(this);
setWait(this,value);
% isInitialized(this);
% basic moves: requires execution to halt while something is moving
this = reference(this);
this = moveTo(this,targetPosition);
ret = prepareForContinuousMeasurement(this);
startContinuousMoveNow(this);
end
methods(Abstract, Hidden=true)
displayMotors(this)
end
end
classdef itaMotorNanotec < itaHandle
properties(Access = protected, Hidden = true)
motorID = [];
motorName = [];
% mInUse = false;
old_position = itaCoordinates(1);
mIsReferenced = false;
mIsInit = false;
end
properties
end
methods(Abstract)
% basic motor functions
this = init(this);
stop(this);
active = isActive(this);
setActive(this,value);
% isInitialized(this);
getStatus(this);
getMotorID(this);
getMotorName(this);
% basic moves: requires execution to halt while something is moving
this = moveToReferencePosition(this);
this = startMoveToPosition(this);
ret = prepareMove(this,position,varargin);
end
end
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment