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
%::
%
% Example:
% b = EV3();
% b.connect('usb');
% m = b.motorA;
% slave = b.motorB;
% m.power = 50;
% m.syncedStart(slave);
% brick = EV3();
% brick.connect('usb');
% motor = brick.motorA;
% slave = brick.motorB;
% motor.power = 50;
% motor.syncedStart(slave);
% % Do stuff
% m.stop();
% motor.stop();
%
% See also MOTOR.STOP, MOTOR.SYNCEDSTOP / :meth:`stop`, :meth:`syncedStop`
......@@ -718,13 +718,13 @@ classdef Motor < MaskedHandle & dynamicprops
% ::
%
% Example:
% b = EV3();
% b.connect('bt', 'serPort', '/dev/rfcomm0');
% b.motorA.setProperties('debug', 'on', 'power', 50, 'limitValue', 720, 'speedRegulation', 'on');
% % Instead of: b.motorA.debug = 'on';
% % b.motorA.power = 50;
% % b.motorA.limitValue = 720;
% % b.motorA.speedRegulation = 'on';
% brick = EV3();
% brick.connect('bt', 'serPort', '/dev/rfcomm0');
% brick.motorA.setProperties('debug', 'on', 'power', 50, 'limitValue', 720, 'speedRegulation', 'on');
% % Instead of: brick.motorA.debug = 'on';
% % brick.motorA.power = 50;
% % brick.motorA.limitValue = 720;
% % brick.motorA.speedRegulation = 'on';
%
p = inputParser();
......@@ -1042,9 +1042,10 @@ classdef Motor < MaskedHandle & dynamicprops
end
% If motor is *busily* running, stop it. That avoids suicidal stuff like:
% b = EV3(); b.connect('usb');
% b.motorA.start();
% b.disconnect(); -> Motor still running and cannot directly be stopped anymore
% brick = EV3();
% brick.connect('usb');
% brick.motorA.start();
% brick.disconnect(); -> Motor still running and cannot directly be stopped anymore
if motor.isRunning
motor.stop();
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment