Changeset 144

Show
Ignore:
Timestamp:
07/13/08 12:01:02 (5 years ago)
Author:
behrens
Message:

add function header template, modified CommandLayers.html

Location:
branches/atorf/RWTHMindstormsNXT
Files:
3 modified

Legend:

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

    r114 r144  
    11function varargout = DebugMode(varargin) 
     2%  
     3 
     4% Syntax 
     5%   ||  
     6% 
     7% Description 
     8% 
     9% Example 
     10% 
     11% See also:  
     12% 
     13% Signature 
     14%   Author: Linus Atorf (see AUTHORS) 
     15%   Date: 2008/07/04 
     16%   Copyright: 2007-2008, RWTH Aachen University 
     17% 
     18; 
     19% 
     20% *********************************************************************************************** 
     21% *  This file is part of the RWTH - Mindstorms NXT Toolbox.                                    * 
     22% *                                                                                             * 
     23% *  The RWTH - Mindstorms NXT Toolbox is free software: you can redistribute it and/or modify  * 
     24% *  it under the terms of the GNU General Public License as published by the Free Software     * 
     25% *  Foundation, either version 3 of the License, or (at your option) any later version.        * 
     26% *                                                                                             * 
     27% *  The RWTH - Mindstorms NXT Toolbox is distributed in the hope that it will be useful,       * 
     28% *  but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS  * 
     29% *  FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.             * 
     30% *                                                                                             * 
     31% *  You should have received a copy of the GNU General Public License along with the           * 
     32% *  RWTH - Mindstorms NXT Toolbox. If not, see <http://www.gnu.org/licenses/>.                 * 
     33% *********************************************************************************************** 
     34 
    235    global DisableScreenOut 
    336     
  • branches/atorf/RWTHMindstormsNXT/doc/functions/CommandLayers.html

    r3 r144  
    3131    <td valign="top"><b>General</b></td> 
    3232    <td valign="top"><b>Bluetooth</b></td> 
    33   </tr>  
     33  </tr> 
    3434 
    3535  <tr bgcolor="#B5F1B4"> 
     
    3939    <td valign="top">&nbsp;</td> 
    4040    <td valign="top">&nbsp;</td> 
    41     <td valign="top"><b>BT_MakeConfigFile</b></td> 
    42   </tr>   
     41    <td valign="top"><b>COM_MakeBTConfigFile</b></td> 
     42  </tr> 
    4343 
    4444  <tr bgcolor="#FFFF80"> 
     
    4747    <td valign="top"><b>SendMotorSettings</b><br>SetMotor<br>SetPower<br>SetAngleLimit<br>SetRampMode<br>SpeedRegulation<br>SyncToMotor<br><br><b>StopMotor</b><br><br><b>GetMotorSettings</b><br>GetMotor<br><br><b>ResetMotorAngle</b><br><br>SetMemoryCount<br>GetMemoryCount</td> 
    4848    <td valign="top"><b>OpenLight<br>OpenSound<br>OpenSwitch<br>OpenUltrasonic<br><br>GetLight<br>GetSound<br>GetSwitch<br>GetUltrasonic<br><br>CloseSensor</b></td> 
    49     <td valign="top">readFromIniFile</td> 
    50     <td valign="top"><b>BT_OpenHandle</b><br><br><b>BT_CloseHandle</b><br>BT_CloseAllHandles<br><br></td> 
    51   </tr>   
     49    <td valign="top">readFromIniFile<br><br>MAP_GetCommModule<br>MAP_GetInputModule<br>MAP_GetOutputModule<br>MAP_GetSoundModule<br>MAP_GetUIModule<br><br>MAP_SetOutputModule</td> 
     50    <td valign="top"><b>COM_OpenNXT</b><br>COM_OpenNXTEx<br><br><b>COM_CloseNXT</b><br></td> 
     51  </tr> 
    5252 
    5353  <tr bgcolor="#F5BB80"> 
     
    5656    <td valign="top"><b>NXT_SetOutputState<br><br>NXT_GetOutputState<br><br>NXT_ResetMotorPosition</b></td> 
    5757    <td valign="top"><b>NXT_SetInputMode<br><br>NXT_GetInputValues</b><br><br>NXT_ResetInputScaledValue<br><br>NXT_LSRead<br>NXT_LSWrite<br>NXT_LSGetStatus</td> 
    58     <td valign="top"><b>NXT_PlayTone</b><br>NXT_SendKeepAlive<br>NXT_GetBatteryLevel<br><br>NXT_StartProgram<br>NXT_StopProgram<br><br>NXT_SetBrickName<br></td> 
    59     <td valign="top">BT_CreatePacket<br>BT_SendPacket<br>BT_CollectPacket<br><br>BT_SetDefaultHandle<br>BT_GetDefaultHandle<br></td> 
    60   </tr>   
     58    <td valign="top"><b>NXT_PlayTone</b><br>NXT_PlaySoundFile<br>NXT_StopSoundPlayback<br><br>NXT_StartProgram<br>NXT_StopProgram<br><br>NXT_SendKeepAlive<br>NXT_GetBatteryLevel<br>NXT_GetFirmwareVersion<br>NXT_SetBrickName<br><br>NXT_ReadIOMap<br>NXT_WriteIOMap<br></td> 
     59    <td valign="top">COM_CreatePacket<br>COM_SendPacket<br>COM_CollectPacket<br><br>COM_SetDefaultNXT<br>COM_GetDefaultNXT<br></td> 
     60  </tr> 
    6161 
    6262  <tr bgcolor="#FF80FF"> 
     
    6565    <td valign="top">MOTOR_A<br>MOTOR_B<br>MOTOR_C<br><br><i>byte2outputmode<br>byte2regmode<br>byte2runstate<br>outputmode2byte<br>regmode2byte<br>runstate2byte</i><br><br><i>initializeGlobalMotorStateVar<br>resetMotorRegulation</i></td> 
    6666    <td valign="top">SENSOR_1<br>SENSOR_2<br>SENSOR_3<br>SENSOR_4<br><br><i>byte2sensortype<br>byte2sensormode<br>sensortype2byte<br>sensormode2byte</i></td> 
    67     <td valign="top">textOut<br><br>tictic (o)<br>toctoc (o)<br><br><i>dec2wordbytes<br>name2commandbytes<br>commandbyte2name<br>wordbytes2dec</i></td> 
    68     <td valign="top">checkStatusByte</td> 
     67    <td valign="top">DebugMode<br><i>isdebug</i><br><br>textOut<br><br>tictic (o)<br>toctoc (o)<br><br><i>dec2wordbytes<br>name2commandbytes<br>commandbyte2name<br>wordbytes2dec</i></td> 
     68    <td valign="top">checkStatusByte<br><br><i>createHandleStruct</i><br><i>checkHandleStruct</i><br><br><i>getLibusbErrorString</i><br><i>getVISAErrorString</i><br><i>getReplyLengthFromCmdByte</i></td> 
    6969  </tr> 
    7070 
     
    7272    <td colspan="6" >legend: NXT_* = NXT Direct commands without any limitations (mapped to the LEGO direct command documentation)<br> 
    7373&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    74 BT_* = Functions related to the Bluetooth connection<br> 
     74COM_* = Functions related to the NXT communication<br> 
     75&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
     76MAP_* = Functions related to the NXT module maps<br> 
    7577&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    7678<b>bold</b> = Main funcions or main group functions<br> 
  • branches/atorf/RWTHMindstormsNXT/isdebug.m

    r112 r144  
    11function ret = isdebug 
     2%  
     3 
     4% Syntax 
     5%   ||  
     6% 
     7% Description 
     8% 
     9% Example 
     10% 
     11% See also:  
     12% 
     13% Signature 
     14%   Author: Linus Atorf (see AUTHORS) 
     15%   Date: 2008/07/04 
     16%   Copyright: 2007-2008, RWTH Aachen University 
     17% 
     18; 
     19% 
     20% *********************************************************************************************** 
     21% *  This file is part of the RWTH - Mindstorms NXT Toolbox.                                    * 
     22% *                                                                                             * 
     23% *  The RWTH - Mindstorms NXT Toolbox is free software: you can redistribute it and/or modify  * 
     24% *  it under the terms of the GNU General Public License as published by the Free Software     * 
     25% *  Foundation, either version 3 of the License, or (at your option) any later version.        * 
     26% *                                                                                             * 
     27% *  The RWTH - Mindstorms NXT Toolbox is distributed in the hope that it will be useful,       * 
     28% *  but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS  * 
     29% *  FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.             * 
     30% *                                                                                             * 
     31% *  You should have received a copy of the GNU General Public License along with the           * 
     32% *  RWTH - Mindstorms NXT Toolbox. If not, see <http://www.gnu.org/licenses/>.                 * 
     33% *********************************************************************************************** 
    234     
    335    %careful with empty var?