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 ...@@ -362,9 +362,9 @@ classdef Motor < MaskedHandle & dynamicprops
error('Motor::syncedStart: One of the motors is already running!'); error('Motor::syncedStart: One of the motors is already running!');
end end
if motor.power == 0 % if motor.power == 0
warning('Motor::syncedStart: Synchronized motors starting with power=0.'); % warning('Motor::syncedStart: Synchronized motors starting with power=0.');
end % end
% If the motor coasts into its stops, the internal tachocount has to be reset % If the motor coasts into its stops, the internal tachocount has to be reset
% before each start for it to behave predictable % before each start for it to behave predictable
...@@ -670,8 +670,8 @@ classdef Motor < MaskedHandle & dynamicprops ...@@ -670,8 +670,8 @@ classdef Motor < MaskedHandle & dynamicprops
% If new brakeMode is 'Brake': reset internal tachocount once % If new brakeMode is 'Brake': reset internal tachocount once
% Note: if new brakeMode is 'Coast', internal tachocount is always reset % Note: if new brakeMode is 'Coast', internal tachocount is always reset
% right before starting, so it's not necessary here % right before starting, so it's not necessary here
if ~motor.state.init && strcmpi(brakeMode,'Brake') && ... if ~motor.init && strcmpi(brakeMode,'Brake') && ...
motor.state.connectedToBrick && motor.physicalMotorConnected motor.connectedToBrick && motor.physicalMotorConnected
motor.internalReset(); motor.internalReset();
end end
...@@ -1136,13 +1136,13 @@ classdef Motor < MaskedHandle & dynamicprops ...@@ -1136,13 +1136,13 @@ classdef Motor < MaskedHandle & dynamicprops
% % do stuff % % do stuff
% %
if motor.state.connectedToBrick if motor.connectedToBrick
if isCommInterfaceValid(motor.commInterface) if isCommInterfaceValid(motor.commInterface)
error('Motor::connect: Motor-Object already has a comm handle.'); error('Motor::connect: Motor-Object already has a comm handle.');
else 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 ' ,... 'comm handle is invalid. Deleting invalid handle and ' ,...
'resetting Motor.state.connectedToBrick now...']); 'resetting Motor.connectedToBrick now...']);
motor.disconnect(); motor.disconnect();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment