Skip to content
Snippets Groups Projects
Commit 727177d2 authored by Maximilian Schnabel's avatar Maximilian Schnabel
Browse files

used consistent variable names

parent 3dbf4903
No related branches found
No related tags found
2 merge requests!7Keep going if mountpoint exists (persistent),!6Docs NXT compatibility
...@@ -350,14 +350,14 @@ classdef Motor < MaskedHandle & dynamicprops ...@@ -350,14 +350,14 @@ classdef Motor < MaskedHandle & dynamicprops
%:: %::
% %
% Example: % Example:
% b = EV3(); % brick = EV3();
% b.connect('usb'); % brick.connect('usb');
% m = b.motorA; % motor = brick.motorA;
% slave = b.motorB; % slave = brick.motorB;
% m.power = 50; % motor.power = 50;
% m.syncedStart(slave); % motor.syncedStart(slave);
% % Do stuff % % Do stuff
% m.stop(); % motor.stop();
% %
% See also MOTOR.STOP, MOTOR.SYNCEDSTOP / :meth:`stop`, :meth:`syncedStop` % See also MOTOR.STOP, MOTOR.SYNCEDSTOP / :meth:`stop`, :meth:`syncedStop`
...@@ -718,13 +718,13 @@ classdef Motor < MaskedHandle & dynamicprops ...@@ -718,13 +718,13 @@ classdef Motor < MaskedHandle & dynamicprops
% :: % ::
% %
% Example: % Example:
% b = EV3(); % brick = EV3();
% b.connect('bt', 'serPort', '/dev/rfcomm0'); % brick.connect('bt', 'serPort', '/dev/rfcomm0');
% b.motorA.setProperties('debug', 'on', 'power', 50, 'limitValue', 720, 'speedRegulation', 'on'); % brick.motorA.setProperties('debug', 'on', 'power', 50, 'limitValue', 720, 'speedRegulation', 'on');
% % Instead of: b.motorA.debug = 'on'; % % Instead of: brick.motorA.debug = 'on';
% % b.motorA.power = 50; % % brick.motorA.power = 50;
% % b.motorA.limitValue = 720; % % brick.motorA.limitValue = 720;
% % b.motorA.speedRegulation = 'on'; % % brick.motorA.speedRegulation = 'on';
% %
p = inputParser(); p = inputParser();
...@@ -1042,9 +1042,10 @@ classdef Motor < MaskedHandle & dynamicprops ...@@ -1042,9 +1042,10 @@ classdef Motor < MaskedHandle & dynamicprops
end end
% If motor is *busily* running, stop it. That avoids suicidal stuff like: % If motor is *busily* running, stop it. That avoids suicidal stuff like:
% b = EV3(); b.connect('usb'); % brick = EV3();
% b.motorA.start(); % brick.connect('usb');
% b.disconnect(); -> Motor still running and cannot directly be stopped anymore % brick.motorA.start();
% brick.disconnect(); -> Motor still running and cannot directly be stopped anymore
if motor.isRunning if motor.isRunning
motor.stop(); motor.stop();
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment