Show
Ignore:
Timestamp:
09/18/08 17:57:06 (5 years ago)
Author:
atorf
Message:

Added changes from /branches/telle/RWTHMindstormsNXT-Lejos to current testing-branch

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/atorf/RWTHMindstormsNXT-Lejos-Combined/@NXTmotor/wait.m

    r267 r272  
    2727% 
    2828 
    29 % Author: Aulis Telle, IND, RWTH Aachen 
     29% Signature 
     30%   Author: Aulis Telle (see AUTHORS) 
     31%   Date: 2008/08/15 
     32%   Copyright: 2007-2008, RWTH Aachen University 
     33% 
     34% 
     35% *********************************************************************************************** 
     36% *  This file is part of the RWTH - Mindstorms NXT Toolbox.                                    * 
     37% *                                                                                             * 
     38% *  The RWTH - Mindstorms NXT Toolbox is free software: you can redistribute it and/or modify  * 
     39% *  it under the terms of the GNU General Public License as published by the Free Software     * 
     40% *  Foundation, either version 3 of the License, or (at your option) any later version.        * 
     41% *                                                                                             * 
     42% *  The RWTH - Mindstorms NXT Toolbox is distributed in the hope that it will be useful,       * 
     43% *  but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS  * 
     44% *  FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.             * 
     45% *                                                                                             * 
     46% *  You should have received a copy of the GNU General Public License along with the           * 
     47% *  RWTH - Mindstorms NXT Toolbox. If not, see <http://www.gnu.org/licenses/>.                 * 
     48% *********************************************************************************************** 
     49 
     50 
     51if ~isa(obj,'NXTmotor') 
     52    error('MATLAB:RWTHMindstormsNXT:InvalidObject',... 
     53        'No NXTmotor object.'); 
     54end 
    3055 
    3156if nargout > 0 
     
    4166 
    4267data = read(obj); 
    43 if data.TachoLimit == 0 && ~ strcmp(data.RunState,'idle') 
     68if data.TachoLimit == 0 && ~ strcmpi(data.RunState,'idle') 
    4469    warning('RWTHMINDSTORMS:MotorWait',... 
    4570        'Motor running infinitely. Not waiting for this motor!'); 
     
    4772end 
    4873 
    49 while ~ strcmp(data.RunState,'idle') 
     74while ~ strcmpi(data.RunState,'idle') 
    5075    if exist('timedOut', 'var') && timeout > 0 && now >= endtime 
    5176        timedOut = 1;