Changeset 260

Show
Ignore:
Timestamp:
09/11/08 19:29:08 (5 years ago)
Author:
atorf
Message:

Fixed some minor things (initial values for cmd bytes now correct to show correct warnings for empty packets)
Updated readme with BT troubleshooting help for linux
Updated help text for SetAngleLimit?
Optimized checkHandleStruct a little

Location:
branches/atorf/RWTHMindstormsNXT
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • branches/atorf/RWTHMindstormsNXT/COM_CollectPacket.m

    r258 r260  
    365365 
    366366%% Initalize Variables 
    367     cmd = 0; statusbyte = 1; content = []; 
     367    % for explanation on values, see above 
     368    cmd = 255; statusbyte = 1; content = []; 
    368369 
    369370    % hardcode reply-byte, needed later down. 
     
    432433 
    433434%% Initalize Variables 
    434     type = 0; cmd = 0; statusbyte = 1; content = []; 
     435    % for explanation on values, see above 
     436    type = 0; cmd = 255; statusbyte = 1; content = []; 
    435437 
    436438%% Retrieve data 
  • branches/atorf/RWTHMindstormsNXT/README

    r254 r260  
    6262The the command "bluetooth-applet --singleton" can be run from the console. After this, the script 
    6363"btconnect" should work. 
     64If you get the error message "Can't connect RFCOMM socket: Permission denied", try to remove the paired 
     65device inside the bluetooth-applet to force a new authorization 
    6466 
    6567 
  • branches/atorf/RWTHMindstormsNXT/README.txt

    r254 r260  
    6262The the command "bluetooth-applet --singleton" can be run from the console. After this, the script 
    6363"btconnect" should work. 
     64If you get the error message "Can't connect RFCOMM socket: Permission denied", try to remove the paired 
     65device inside the bluetooth-applet to force a new authorization. 
    6466 
    6567 
  • branches/atorf/RWTHMindstormsNXT/SetAngleLimit.m

    r123 r260  
    88%   |SetAngleLimit(limt)| sets the angle |limit| in degrees for the current motor, which is set by 
    99%   function |SetMotor|. This setting takes only affect with the next |SendMotorSettings| command. 
     10% 
     11%   Use |SetAngleLimit(0)| to deactivate this limit (hence the motor will run forever). 
    1012% 
    1113% Note: 
  • branches/atorf/RWTHMindstormsNXT/private/checkHandleStruct.m

    r136 r260  
    4949valid = false; 
    5050try 
    51     if isstruct(h) && h.Connected() 
     51    %NOTE: optimized, old version waS: 
     52    %if isstruct(h) && h.Connected() 
     53    if h.Connected() 
    5254        if ~isempty(h.CreationTime) && ~isempty(h.Handle) 
    5355            if h.OSValue == 1 % Windows