diff --git a/source/Motor.m b/source/Motor.m index ff5a7a2a59f059d3e4dcb648954c5fb6d0f71e6a..a4c5ce3c0bccec7d9fa5de9899fece266317a3e9 100755 --- a/source/Motor.m +++ b/source/Motor.m @@ -362,9 +362,9 @@ classdef Motor < MaskedHandle & dynamicprops error('Motor::syncedStart: One of the motors is already running!'); end - if motor.power == 0 - warning('Motor::syncedStart: Synchronized motors starting with power=0.'); - end +% if motor.power == 0 +% warning('Motor::syncedStart: Synchronized motors starting with power=0.'); +% end % If the motor coasts into its stops, the internal tachocount has to be reset % before each start for it to behave predictable @@ -670,8 +670,8 @@ classdef Motor < MaskedHandle & dynamicprops % If new brakeMode is 'Brake': reset internal tachocount once % Note: if new brakeMode is 'Coast', internal tachocount is always reset % right before starting, so it's not necessary here - if ~motor.state.init && strcmpi(brakeMode,'Brake') && ... - motor.state.connectedToBrick && motor.physicalMotorConnected + if ~motor.init && strcmpi(brakeMode,'Brake') && ... + motor.connectedToBrick && motor.physicalMotorConnected motor.internalReset(); end @@ -1136,13 +1136,13 @@ classdef Motor < MaskedHandle & dynamicprops % % do stuff % - if motor.state.connectedToBrick + if motor.connectedToBrick if isCommInterfaceValid(motor.commInterface) error('Motor::connect: Motor-Object already has a comm handle.'); else - warning(['Motor::connect: Motor.state.connectedToBrick is set to ''True'', but ',... + warning(['Motor::connect: Motor.connectedToBrick is set to ''True'', but ',... 'comm handle is invalid. Deleting invalid handle and ' ,... - 'resetting Motor.state.connectedToBrick now...']); + 'resetting Motor.connectedToBrick now...']); motor.disconnect();