Skip to content
Snippets Groups Projects
Commit 89befd3c authored by Tim Stadtmann's avatar Tim Stadtmann
Browse files

Remove commInterface-handle from Motor/Sensor

parent 7d5f6090
Branches
Tags
No related merge requests found
......@@ -116,10 +116,6 @@ classdef Motor < MaskedHandle & dynamicprops
end
properties (Hidden, Access = private) % Hidden properties for internal use only
% commInterface (CommunicationInterface): Commands are created and sent via the
% communication interface class.
commInterface;
% ev3Handle (EV3): Handle to the EV3-object to which this motor instance belongs
ev3Handle;
......@@ -246,7 +242,7 @@ classdef Motor < MaskedHandle & dynamicprops
motor.internalReset();
end
% Call appropriate function in commInterface depending on limitValue and limitMode
% Send appropriate command depending on limitValue and limitMode
if motor.limitValue==0
if motor.state.sendOnStart > 0
% If stop-flag is set: call stop() and reset flag
......@@ -695,14 +691,6 @@ classdef Motor < MaskedHandle & dynamicprops
end
end
function set.commInterface(motor, comm)
if ~isCommInterfaceValid(comm)
error('Handle to commInterface not valid.');
end
motor.commInterface = comm;
end
function set.debug(motor, debug)
if ~isBool(debug)
error('Given parameter is not a bool.');
......
......@@ -198,10 +198,6 @@ classdef Sensor < MaskedHandle
end
properties (Hidden, Access = private) % Hidden properties for internal use only
% commInterface (CommunicationInterface): Commands are created and sent via the
% communication interface class.
commInterface;
% ev3Handle (EV3): Handle to the EV3-object to which this sensor instance belongs
ev3Handle;
......@@ -288,14 +284,6 @@ classdef Sensor < MaskedHandle
end
end
function set.commInterface(sensor, comm)
if ~isCommInterfaceValid(comm)
error('Handle to commInterface not valid.');
else
sensor.commInterface = comm;
end
end
function setProperties(sensor, varargin)
% Sets multiple Sensor properties at once using MATLAB's inputParser.
%
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment