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

Fix typos

parent 05119577
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment