diff --git a/source/Motor.m b/source/Motor.m index a8bf919e193cfc333db70611be7f0a32285b7a0f..b8edd40c5a801aa43a2fc8d44454dd5aca4454e2 100644 --- a/source/Motor.m +++ b/source/Motor.m @@ -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.'); diff --git a/source/Sensor.m b/source/Sensor.m index b748d97bae32608edefb6b19b7f2f676fb8d5acd..a52638e991da960523abad11e9736000e4af2a59 100644 --- a/source/Sensor.m +++ b/source/Sensor.m @@ -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. %