Changeset 254
- Timestamp:
- 09/10/08 19:15:42 (5 years ago)
- Location:
- branches/atorf/RWTHMindstormsNXT
- Files:
-
- 32 added
- 67 modified
-
README (modified) (7 diffs)
-
README.txt (modified) (7 diffs)
-
demos.xml (modified) (3 diffs)
-
doc/acknowledgements.html (modified) (2 diffs)
-
doc/examples/BasicToolboxFunctionsTest.html (added)
-
doc/examples/NextGenerationUltrasound.html (added)
-
doc/examples/ToolboxSpeedTest.html (added)
-
doc/examples/example_1_PlayTone.html (added)
-
doc/examples/example_2_ReadSoundSensor.html (added)
-
doc/examples/example_3_DriveAroundTable.html (added)
-
doc/examples/example_4_DriveUntilWall.html (added)
-
doc/examples/examples.html (modified) (1 diff)
-
doc/functions/ToolboxVer2Guidelines.html (added)
-
doc/functions/abc.html (modified) (1 diff)
-
doc/functions/categories.html (modified) (2 diffs)
-
doc/functions/help/COM_CloseNXT.html (added)
-
doc/functions/help/COM_CollectPacket.html (added)
-
doc/functions/help/COM_CreatePacket.html (added)
-
doc/functions/help/COM_GetDefaultNXT.html (added)
-
doc/functions/help/COM_MakeBTConfigFile.html (added)
-
doc/functions/help/COM_OpenNXT.html (added)
-
doc/functions/help/COM_OpenNXTEx.html (added)
-
doc/functions/help/COM_SendPacket.html (added)
-
doc/functions/help/COM_SetDefaultNXT.html (added)
-
doc/functions/help/CloseSensor.html (modified) (3 diffs)
-
doc/functions/help/Contents.html (added)
-
doc/functions/help/DebugMode.html (added)
-
doc/functions/help/GetLight.html (modified) (3 diffs)
-
doc/functions/help/GetMemoryCount.html (modified) (5 diffs)
-
doc/functions/help/GetMotor.html (modified) (3 diffs)
-
doc/functions/help/GetMotorSettings.html (modified) (3 diffs)
-
doc/functions/help/GetSound.html (modified) (3 diffs)
-
doc/functions/help/GetSwitch.html (modified) (3 diffs)
-
doc/functions/help/GetUltrasonic.html (modified) (4 diffs)
-
doc/functions/help/MAP_GetCommModule.html (added)
-
doc/functions/help/MAP_GetInputModule.html (added)
-
doc/functions/help/MAP_GetOutputModule.html (added)
-
doc/functions/help/MAP_GetSoundModule.html (added)
-
doc/functions/help/MAP_GetUIModule.html (added)
-
doc/functions/help/MAP_SetOutputModule.html (added)
-
doc/functions/help/MOTOR_A.html (modified) (3 diffs)
-
doc/functions/help/MOTOR_B.html (modified) (3 diffs)
-
doc/functions/help/MOTOR_C.html (modified) (3 diffs)
-
doc/functions/help/MotorRotateAbs.html (modified) (3 diffs)
-
doc/functions/help/NXT_GetBatteryLevel.html (modified) (5 diffs)
-
doc/functions/help/NXT_GetFirmwareVersion.html (added)
-
doc/functions/help/NXT_GetInputValues.html (modified) (7 diffs)
-
doc/functions/help/NXT_GetOutputState.html (modified) (7 diffs)
-
doc/functions/help/NXT_LSGetStatus.html (modified) (7 diffs)
-
doc/functions/help/NXT_LSRead.html (modified) (7 diffs)
-
doc/functions/help/NXT_LSWrite.html (modified) (7 diffs)
-
doc/functions/help/NXT_PlaySoundFile.html (added)
-
doc/functions/help/NXT_PlayTone.html (modified) (7 diffs)
-
doc/functions/help/NXT_ReadIOMap.html (added)
-
doc/functions/help/NXT_ResetInputScaledValue.html (modified) (8 diffs)
-
doc/functions/help/NXT_ResetMotorPosition.html (modified) (7 diffs)
-
doc/functions/help/NXT_SendKeepAlive.html (modified) (9 diffs)
-
doc/functions/help/NXT_SetBrickName.html (modified) (7 diffs)
-
doc/functions/help/NXT_SetInputMode.html (modified) (8 diffs)
-
doc/functions/help/NXT_SetOutputState.html (modified) (5 diffs)
-
doc/functions/help/NXT_StartProgram.html (modified) (7 diffs)
-
doc/functions/help/NXT_StopProgram.html (modified) (6 diffs)
-
doc/functions/help/NXT_StopSoundPlayback.html (added)
-
doc/functions/help/NXT_WriteIOMap.html (added)
-
doc/functions/help/OpenLight.html (modified) (3 diffs)
-
doc/functions/help/OpenSound.html (modified) (3 diffs)
-
doc/functions/help/OpenSwitch.html (modified) (3 diffs)
-
doc/functions/help/OpenUltrasonic.html (modified) (7 diffs)
-
doc/functions/help/ResetMotorAngle.html (modified) (5 diffs)
-
doc/functions/help/SENSOR_1.html (modified) (3 diffs)
-
doc/functions/help/SENSOR_2.html (modified) (3 diffs)
-
doc/functions/help/SENSOR_3.html (modified) (3 diffs)
-
doc/functions/help/SENSOR_4.html (modified) (3 diffs)
-
doc/functions/help/SendMotorSettings.html (modified) (3 diffs)
-
doc/functions/help/SetAngleLimit.html (modified) (3 diffs)
-
doc/functions/help/SetMemoryCount.html (modified) (5 diffs)
-
doc/functions/help/SetMotor.html (modified) (3 diffs)
-
doc/functions/help/SetPower.html (modified) (3 diffs)
-
doc/functions/help/SetRampMode.html (modified) (3 diffs)
-
doc/functions/help/SetTurnRatio.html (modified) (3 diffs)
-
doc/functions/help/SpeedRegulation.html (modified) (3 diffs)
-
doc/functions/help/StopMotor.html (modified) (3 diffs)
-
doc/functions/help/SwitchLamp.html (modified) (3 diffs)
-
doc/functions/help/SyncToMotor.html (modified) (3 diffs)
-
doc/functions/help/USGetSnapshotResults.html (added)
-
doc/functions/help/USMakeSnapshot.html (added)
-
doc/functions/help/WaitForMotor.html (modified) (3 diffs)
-
doc/functions/help/checkStatusByte.html (modified) (5 diffs)
-
doc/functions/help/readFromIniFile.html (modified) (3 diffs)
-
doc/functions/help/textOut.html (modified) (3 diffs)
-
doc/functions/help/tictic.html (modified) (3 diffs)
-
doc/functions/help/toctoc.html (modified) (3 diffs)
-
doc/helpindex.xml (modified) (1 diff)
-
doc/helptoc.xml (modified) (2 diffs)
-
doc/programming/programming_robots.html (modified) (1 diff)
-
doc/release.html (modified) (3 diffs)
-
doc/start/requirements.html (modified) (1 diff)
-
doc/webpages.html (modified) (1 diff)
-
info.xml (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/atorf/RWTHMindstormsNXT/README
r3 r254 2 2 * Readme file for RWTH - Mindstorms NXT Toolbox for MATLAB * 3 3 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - * 4 * Version 1.00 - January 24th, 2008 *4 * Version 2.00beta - July 18th, 2008 * 5 5 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 6 6 … … 42 42 - MATLAB Version 7.4 (R2007a) or higher 43 43 - LEGO® Mindstorms NXT building kit (e.g. Education Kit) 44 - LEGO® Mindstorms NXT firmware v1.05 (recommended) 45 - Bluetooth 2.0 adapter recommended model by LEGO® (e.g. AVM BlueFRITZ! USB) 46 supporting the serial port profile (SPP) 44 - LEGO® Mindstorms NXT firmware v1.05 (recommended) 45 OR a firmware compatible to the NXT's direct command interface 46 - Bluetooth: Bluetooth 2.0 adapter recommended model by LEGO® 47 (e.g. AVM BlueFRITZ! USB) supporting the serial port profile (SPP) 48 - USB: 49 Windows: Official MINDSTORMS NXT Driver "Fantom", v1.02 or better 50 Linux: libusb or libusb-dev 47 51 48 The SPP (serial port profile) means that a virtual serial port is installed, which maps all data to the Bluetooth interface. You can verify this under Windows inside the Device Manager, where an additional COM-Port should be visible. Under Linux, the bluez Bluetooth stack is recommended. A device called "rfcomm0" or similar should be present inside the /dev/ directory. 52 53 *** Bluetooth: 54 55 The SPP (serial port profile) means that a virtual serial port is installed, which maps all data to the Bluetooth interface. You can verify this under Windows inside the Device Manager, where an additional COM-Port should be visible. Under Linux, the bluez Bluetooth stack is recommended. The package you need is usually called "bluetooth" (for Debian's apt-get). This 56 package should already contain "bluez-utils", if not, install it as well. 57 On the our project website you'll find a zip-archive containing useful scripts for Linux. 58 For Bluetooth-connection, the script "btconnect" is recommended, followed by the NXT's name or 59 its MAC adress. Make sure the user has access rights to devices called "rfcomm". Sometimes this 60 means adding the current user to the group "dialout". 61 For Bluetooth under Linux the packages "dbns" and "dbns-x11" may also be required. 62 The the command "bluetooth-applet --singleton" can be run from the console. After this, the script 63 "btconnect" should work. 64 65 66 *** USB: 67 68 For USB-connections under Windows, the official LEGO MINDSTORMS NXT Device Driver v1.02 or 69 better has to be installed (also called "Fantom"). It can be downloaded here: 70 http://mindstorms.lego.com/support/updates/ 71 Direct download link is this: 72 http://cache.lego.com/upload/contentTemplating/MindstormsUpdate/otherfiles/2057/upload1F7B2420-A5ED-44FF-9460-E262657029DC.zip 73 74 On Linux systems, the open-source library libusb has to be present. It can be retrieved using 75 a packet manager, for example Debian's apt-get. If installing the package "libusb" alone does 76 not work, also "libusb-dev" should be retrieved and installed. 77 78 79 80 To troubleshoot problems with opening connections to the NXT, the toolbox command 81 >> DebugMode on 82 can be used before trying to open a handle. 83 49 84 50 85 … … 61 96 - Also add the folder demos (it is a sub-directory of RWTHMindstormsNXT ) 62 97 - Press Save to remember settings for future MATLAB sessions 63 - Run the command >> BT_MakeConfigFile<< from the MATLAB command window or:98 - Run the command >>COM_MakeBTConfigFile<< from the MATLAB command window or: 64 99 edit a bluetooth-example ini-file from the toolbox folder to suit your configuration. 100 You can skip this and the next step, if you don't want to use Bluetooth. 65 101 - Establish a Bluetooth connection to your NXT using your adapter's driver software. 66 102 - Authenticate with the NXT (a passkey request should appear) 67 - You can now open Bluetooth connections using the toolbox command >>BT_OpenHandle<< 103 - You can now open Bluetooth or USB connections using the toolbox commands 104 >>COM_OpenNXT<< or >>COM_OpenNXTEx<< 68 105 69 106 … … 72 109 --------------------- 73 110 74 The RWTH - Mindstorms NXT Toolbox is a collection of MATLAB-functions (so called m-files) 75 and documentation / help files (mostly HTML). You have received these files in a compressed archive, that just needs to be extracted to a directory of your choice. This folder can even be on an external hard disk, USB stick or network drive. However it is recommended to use a folder on a normal hard disk drive for performance reasons. 111 The RWTH - Mindstorms NXT Toolbox is a collection of MATLAB-functions (so called m-files) and documentation / help files (mostly HTML). You have received these files in a compressed archive that just needs to be extracted to a directory of your choice. This folder can even be on an external hard disk, USB stick or network drive. However it is recommended to use a folder on a normal hard disk drive for performance reasons. 76 112 So just uncompress the archive and remember the folder you extracted it to. 77 113 Make sure that the internal sub-directory structure is kept! Also it is important that all files are located in a sub-folder called "RWTHMindstormsNXT" (without the ") for identification purposes. … … 91 127 92 128 Before you can begin working with Bluetooth connections, you have to create a settings file that contains information about your Bluetooth adapter and serial port. 93 Either you can use the toolbox-command >> BT_MakeConfigFile<< inside the command window. A dialog window lets you enter the required parameters. The other way is to edit the example-files called "bluetooth-example-windows.ini" or "bluetooth-example-linux.ini", that are provided in the toolbox root folder.129 Either you can use the toolbox-command >>COM_MakeBTConfigFile<< inside the command window. A dialog window lets you enter the required parameters. The other way is to edit the example-files called "bluetooth-example-windows.ini" or "bluetooth-example-linux.ini", that are provided in the toolbox root folder. 94 130 95 131 You can leave the default values for the beginning, the only thing you will have to enter is the COM-Port. The Bluetooth SPP (serial port profile) maps a virtual COM-Port to your adapter. Find out which port this is (under Windows you can use the Device Manager) and enter it in the dialog window (example: COM4). The other parameters are explained in the documentation. Advanced users should refer to the first chapter "Bluetooth connections and serial handles" of the section "Functions - Overview". … … 102 138 Once the correct ini-file is created, it can be put inside the toolbox root path or anywhere inside the MATLAB search path for better convenience. 103 139 104 You can now try the demos (which require a correct configuration file called "bluetooth.ini") or start opening connections using the toolbox command BT_OpenHandle . Note that before this works, you have to establish a physical connection to your NXT. Depending on your Bluetooth adapter's driver software, this can be different. Once successful, the NXT and driver software will prompt you for a passkey. The authentification is then complete, and the toolbox should work properly. 140 You can now try the demos (which require a correct configuration file called "bluetooth.ini") or start opening connections using the toolbox command COM_OpenNXT. 141 Note that before this works, you have to establish a physical connection to your NXT. Depending on your Bluetooth adapter's driver software, this can be different. Once successful, the NXT and driver software will prompt you for a passkey. The authentification is then complete, and the toolbox should work properly. 105 142 106 143 … … 125 162 126 163 127 * RWTH Aachen University Student Project - MATLAB meets LEGO Mindstorms 2007 / 2008128 -> http://www.lfb.rwth-aachen.de/ en/education/ws07/mindstorms.html164 * RWTH Aachen University Student Project - MATLAB meets LEGO Mindstorms 165 -> http://www.lfb.rwth-aachen.de/mindstorms 129 166 130 167 -
branches/atorf/RWTHMindstormsNXT/README.txt
r3 r254 2 2 * Readme file for RWTH - Mindstorms NXT Toolbox for MATLAB * 3 3 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - * 4 * Version 1.00 - January 24th, 2008 *4 * Version 2.00beta - July 18th, 2008 * 5 5 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 6 6 … … 42 42 - MATLAB Version 7.4 (R2007a) or higher 43 43 - LEGO® Mindstorms NXT building kit (e.g. Education Kit) 44 - LEGO® Mindstorms NXT firmware v1.05 (recommended) 45 - Bluetooth 2.0 adapter recommended model by LEGO® (e.g. AVM BlueFRITZ! USB) 46 supporting the serial port profile (SPP) 44 - LEGO® Mindstorms NXT firmware v1.05 (recommended) 45 OR a firmware compatible to the NXT's direct command interface 46 - Bluetooth: Bluetooth 2.0 adapter recommended model by LEGO® 47 (e.g. AVM BlueFRITZ! USB) supporting the serial port profile (SPP) 48 - USB: 49 Windows: Official MINDSTORMS NXT Driver "Fantom", v1.02 or better 50 Linux: libusb or libusb-dev 47 51 48 The SPP (serial port profile) means that a virtual serial port is installed, which maps all data to the Bluetooth interface. You can verify this under Windows inside the Device Manager, where an additional COM-Port should be visible. Under Linux, the bluez Bluetooth stack is recommended. A device called "rfcomm0" or similar should be present inside the /dev/ directory. 52 53 *** Bluetooth: 54 55 The SPP (serial port profile) means that a virtual serial port is installed, which maps all data to the Bluetooth interface. You can verify this under Windows inside the Device Manager, where an additional COM-Port should be visible. Under Linux, the bluez Bluetooth stack is recommended. The package you need is usually called "bluetooth" (for Debian's apt-get). This 56 package should already contain "bluez-utils", if not, install it as well. 57 On the our project website you'll find a zip-archive containing useful scripts for Linux. 58 For Bluetooth-connection, the script "btconnect" is recommended, followed by the NXT's name or 59 its MAC adress. Make sure the user has access rights to devices called "rfcomm". Sometimes this 60 means adding the current user to the group "dialout". 61 For Bluetooth under Linux the packages "dbns" and "dbns-x11" may also be required. 62 The the command "bluetooth-applet --singleton" can be run from the console. After this, the script 63 "btconnect" should work. 64 65 66 *** USB: 67 68 For USB-connections under Windows, the official LEGO MINDSTORMS NXT Device Driver v1.02 or 69 better has to be installed (also called "Fantom"). It can be downloaded here: 70 http://mindstorms.lego.com/support/updates/ 71 Direct download link is this: 72 http://cache.lego.com/upload/contentTemplating/MindstormsUpdate/otherfiles/2057/upload1F7B2420-A5ED-44FF-9460-E262657029DC.zip 73 74 On Linux systems, the open-source library libusb has to be present. It can be retrieved using 75 a packet manager, for example Debian's apt-get. If installing the package "libusb" alone does 76 not work, also "libusb-dev" should be retrieved and installed. 77 78 79 80 To troubleshoot problems with opening connections to the NXT, the toolbox command 81 >> DebugMode on 82 can be used before trying to open a handle. 83 49 84 50 85 … … 61 96 - Also add the folder demos (it is a sub-directory of RWTHMindstormsNXT ) 62 97 - Press Save to remember settings for future MATLAB sessions 63 - Run the command >> BT_MakeConfigFile<< from the MATLAB command window or:98 - Run the command >>COM_MakeBTConfigFile<< from the MATLAB command window or: 64 99 edit a bluetooth-example ini-file from the toolbox folder to suit your configuration. 100 You can skip this and the next step, if you don't want to use Bluetooth. 65 101 - Establish a Bluetooth connection to your NXT using your adapter's driver software. 66 102 - Authenticate with the NXT (a passkey request should appear) 67 - You can now open Bluetooth connections using the toolbox command >>BT_OpenHandle<< 103 - You can now open Bluetooth or USB connections using the toolbox commands 104 >>COM_OpenNXT<< or >>COM_OpenNXTEx<< 68 105 69 106 … … 72 109 --------------------- 73 110 74 The RWTH - Mindstorms NXT Toolbox is a collection of MATLAB-functions (so called m-files) 75 and documentation / help files (mostly HTML). You have received these files in a compressed archive, that just needs to be extracted to a directory of your choice. This folder can even be on an external hard disk, USB stick or network drive. However it is recommended to use a folder on a normal hard disk drive for performance reasons. 111 The RWTH - Mindstorms NXT Toolbox is a collection of MATLAB-functions (so called m-files) and documentation / help files (mostly HTML). You have received these files in a compressed archive that just needs to be extracted to a directory of your choice. This folder can even be on an external hard disk, USB stick or network drive. However it is recommended to use a folder on a normal hard disk drive for performance reasons. 76 112 So just uncompress the archive and remember the folder you extracted it to. 77 113 Make sure that the internal sub-directory structure is kept! Also it is important that all files are located in a sub-folder called "RWTHMindstormsNXT" (without the ") for identification purposes. … … 91 127 92 128 Before you can begin working with Bluetooth connections, you have to create a settings file that contains information about your Bluetooth adapter and serial port. 93 Either you can use the toolbox-command >> BT_MakeConfigFile<< inside the command window. A dialog window lets you enter the required parameters. The other way is to edit the example-files called "bluetooth-example-windows.ini" or "bluetooth-example-linux.ini", that are provided in the toolbox root folder.129 Either you can use the toolbox-command >>COM_MakeBTConfigFile<< inside the command window. A dialog window lets you enter the required parameters. The other way is to edit the example-files called "bluetooth-example-windows.ini" or "bluetooth-example-linux.ini", that are provided in the toolbox root folder. 94 130 95 131 You can leave the default values for the beginning, the only thing you will have to enter is the COM-Port. The Bluetooth SPP (serial port profile) maps a virtual COM-Port to your adapter. Find out which port this is (under Windows you can use the Device Manager) and enter it in the dialog window (example: COM4). The other parameters are explained in the documentation. Advanced users should refer to the first chapter "Bluetooth connections and serial handles" of the section "Functions - Overview". … … 102 138 Once the correct ini-file is created, it can be put inside the toolbox root path or anywhere inside the MATLAB search path for better convenience. 103 139 104 You can now try the demos (which require a correct configuration file called "bluetooth.ini") or start opening connections using the toolbox command BT_OpenHandle . Note that before this works, you have to establish a physical connection to your NXT. Depending on your Bluetooth adapter's driver software, this can be different. Once successful, the NXT and driver software will prompt you for a passkey. The authentification is then complete, and the toolbox should work properly. 140 You can now try the demos (which require a correct configuration file called "bluetooth.ini") or start opening connections using the toolbox command COM_OpenNXT. 141 Note that before this works, you have to establish a physical connection to your NXT. Depending on your Bluetooth adapter's driver software, this can be different. Once successful, the NXT and driver software will prompt you for a passkey. The authentification is then complete, and the toolbox should work properly. 105 142 106 143 … … 125 162 126 163 127 * RWTH Aachen University Student Project - MATLAB meets LEGO Mindstorms 2007 / 2008128 -> http://www.lfb.rwth-aachen.de/ en/education/ws07/mindstorms.html164 * RWTH Aachen University Student Project - MATLAB meets LEGO Mindstorms 165 -> http://www.lfb.rwth-aachen.de/mindstorms 129 166 130 167 -
branches/atorf/RWTHMindstormsNXT/demos.xml
r3 r254 6 6 <icon>$toolbox/matlab/icons/matlabicon.gif</icon> 7 7 <description> 8 The RWTH - Mindstorms NXT Toolbox provide MATLAB functions to control LEGO Mindstorms NXT robots viaa wireless Bluetooth connection.8 The RWTH - Mindstorms NXT Toolbox provides MATLAB functions to control LEGO Mindstorms NXT robots via USB or a wireless Bluetooth connection. 9 9 </description> 10 10 … … 25 25 </demosection> 26 26 27 <demosection> 27 <!-- 28 <demosection> 28 29 <label>Monitoring Tools</label> 29 30 <demoitem> 30 <label>Watch AnalogSensor GUI</label>31 <label>Watch Sensor GUI</label> 31 32 <type>M-GUI</type> 32 <callback>GUI_Watch AnalogSensor</callback>33 <file>doc/demos/watch AnalogSensor_gui.html</file>33 <callback>GUI_WatchSensor</callback> 34 <file>doc/demos/watchSensor_gui.html</file> 34 35 </demoitem> 35 36 … … 41 42 </demoitem> 42 43 </demosection> 43 44 --> 44 45 </demos> -
branches/atorf/RWTHMindstormsNXT/doc/acknowledgements.html
r3 r254 31 31 32 32 33 <h2> Promoters:</h2>33 <h2>Faculty:</h2> 34 34 Prof. Til Aach, Prof. Tobias G. Noll, Achim Knepper 35 35 … … 41 41 All contributors are members of the <a href="http://www.rwth-aachen.de">RWTH Aachen University</a>. 42 42 <p></p> 43 RWTH Aachen University Student Project <a href="http://www.lfb.rwth-aachen.de/de/lehre/ws07/mindstorms.html">MATLAB meets LEGO Mindstorms</a>.43 RWTH Aachen University First Semester Student Project <a href="http://www.lfb.rwth-aachen.de/mindstorms">MATLAB meets LEGO Mindstorms</a>. 44 44 45 45 -
branches/atorf/RWTHMindstormsNXT/doc/examples/examples.html
r3 r254 6 6 </head> 7 7 8 <body >8 <body bgcolor="#FFFFFF" text="#000001"> 9 9 <p class="header">RWTH - Mindstorms NXT Toolbox</p> 10 <h2>Examples</h2> 10 <p align="center"> 11 <h1>Examples</h1> 12 </p> 11 13 12 14 <ul> 13 <li><a href="#1">Example 1: Play Tone and Get Battery Level</a></li> 14 <li><a href="#2">Example 2: Read Sound Sensor</a></li> 15 <li><a href="BasicToolboxFunctionsTest.html">BasicToolboxFunctionsTest.m : This little script calls and times some basic toolbox functions. 16 </a></li> 17 </br> 18 <li><a href="NextGenerationUltrasound.html">NextGenerationUltrasound.m : This little script demonstrates the results of the new ultrasound 19 </a></li> 20 </br> 21 <li><a href="ToolboxSpeedTest.html">ToolboxSpeedTest.m : This little script calls and times some basic toolbox functions, 22 </a></li> 23 </br> 24 <li><a href="example_1_PlayTone.html">example_1_PlayTone.m : Example to play a specific tone with the NXT Brick and retrieve the current battery level: 25 </a></li> 26 </br> 27 <li><a href="example_2_ReadSoundSensor.html">example_2_ReadSoundSensor.m : Example to read the sound sensor value in db: Prepare workspace by cleaning all old settings to be on the safe side. 28 </a></li> 29 </br> 30 <li><a href="example_3_DriveAroundTable.html">example_3_DriveAroundTable.m : In this little demo, our bot drives a square on the floor around a well known table. 31 </a></li> 32 </br> 33 <li><a href="example_4_DriveUntilWall.html">example_4_DriveUntilWall.m : In this little demo our robot drives forward until it detects a wall. 34 </a></li> 35 </br> 15 36 </ul> 16 <hr>17 18 19 <h3>Example 1: Play Tone and Get Battery Level<a name="1"></a></h3>20 Example to play a specific tone with the NXT Brick and retrieve the current battery level:21 <br><br>22 23 Prepare workspace by cleaning all old settings to be on the safe side.24 <pre class="codeinput">25 clear all26 close all27 </pre>28 29 Close previous Bluetooth connections.30 <pre class="codeinput">31 BT_CloseAllHandles;32 </pre>33 34 Open new Bluetooth connection according to the previous generated configuration file.35 <pre class="codeinput">36 bt_handle = BT_OpenHandle('bluetooth.ini', 'check');37 BT_SetDefaultHandle(bt_handle);38 </pre>39 40 Play tone with frequency 800Hz and duration of 500ms.41 <pre class="codeinput">42 NXT_PlayTone(800,500);43 </pre>44 45 Get current battery level.46 <pre class="codeinput">47 voltage = NXT_GetBatteryLevel<br>48 >> voltage = 762349 </pre>50 51 Close Bluetooth connection.52 <pre class="codeinput">53 BT_CloseHandle(bt_handle);54 </pre>55 <br>56 57 58 59 <h3>Example 2: Read Sound Sensor<a name="2"></a></h3>60 Example to read the sound sensor value in db:61 62 Prepare workspace by cleaning all old settings to be on the safe side.63 <pre class="codeinput">64 clear all65 close all66 </pre>67 68 Close previous Bluetooth connections.69 <pre class="codeinput">70 BT_CloseAllHandles;71 </pre>72 73 Open new Bluetooth connection according to the previous generated configuration file.74 <pre class="codeinput">75 bt_handle = BT_OpenHandle('bluetooth.ini', 'check');76 BT_SetDefaultHandle(bt_handle);77 </pre>78 79 Set the correct sound sensor mode and input port.80 <pre class="codeinput">81 OpenSound(SENSOR_2, 'DB');82 </pre>83 84 Get the current sound sensor value in dB.85 <pre class="codeinput">86 value = GetSound(SENSOR_2)<br>87 >> value = 6488 </pre>89 90 Close the sound sensor.91 <pre class="codeinput">92 CloseSensor(SENSOR_2);93 </pre>94 95 Close Bluetooth connection.96 <pre class="codeinput">97 BT_CloseHandle(bt_handle);98 </pre>99 100 101 37 102 38 </body> -
branches/atorf/RWTHMindstormsNXT/doc/functions/abc.html
r3 r254 11 11 <h1>Functions - Alphabetical List</h1> 12 12 </p> 13 <hr>14 <p>15 <!-- <font size="4" face="Geneva, Arial, Helvetica, san-serif"> -->16 A 17 <a href="#B">B</a> 18 <a href="#C">C</a> 19 <a href="#D">D</a> 20 E 21 F 22 <a href="#G">G</a> 23 H 24 I 25 J 26 K 27 L 28 <a href="#M">M</a> 29 <a href="#N">N</a> 30 <a href="#O">O</a> 31 P 32 Q 33 <a href="#R">R</a> 34 <a href="#S">S</a> 35 <a href="#T">T</a> 36 U 37 V 38 <a href="#W">W</a> 39 X 40 Y 41 Z 42 </p>43 <br><br>44 13 45 14 <table> 46 47 48 <tr><td><a name="B"></a> 49 <a href="./help/BT_CloseAllHandles.html">BT_CloseAllHandles</a></td><td>Closes and deletes all existing serial or file handles, which are open </td></tr> 50 <tr><td><a href="./help/BT_CloseHandle.html">BT_CloseHandle</a></td><td>Closes and deletes an existing serial or file handle </td></tr> 51 <tr><td><a href="./help/BT_CollectPacket.html">BT_CollectPacket</a></td><td>Reads data from serial/Bluetooth port and retrieves exactly one packet </td></tr> 52 <tr><td><a href="./help/BT_CreatePacket.html">BT_CreatePacket</a></td><td>Generates a valid Bluetooth packet ready for transmission (i.e. calculates length) </td></tr> 53 <tr><td><a href="./help/BT_GetDefaultHandle.html">BT_GetDefaultHandle</a></td><td>Returns the global default Bluetooth handle if it was previously set </td></tr> 54 <tr><td><a href="./help/BT_MakeConfigFile.html">BT_MakeConfigFile</a></td><td>Creates a Bluetooth configuration file which is needed to open a Bluetooth connection. </td></tr> 55 <tr><td><a href="./help/BT_OpenHandle.html">BT_OpenHandle</a></td><td>Opens a Bluetooth connection using settings from the given configuration file </td></tr> 56 <tr><td><a href="./help/BT_SendPacket.html">BT_SendPacket</a></td><td>Sends a Bluetooth packet (byte-array) via a Bluetooth channel (serial port) </td></tr> 57 <tr><td><a href="./help/BT_SetDefaultHandle.html">BT_SetDefaultHandle</a></td><td>Sets a global default Bluetooth handle that will be used by the NXT-Functions if no other handle is specified. </td></tr> 58 59 60 <tr><td><a name="C"></a> 61 <a href="./help/CloseSensor.html">CloseSensor</a></td><td>Closes a specified sensor port (e.g. turns off the active light mode of the NXT light sensor) </td></tr> 62 <tr><td><a href="./help/checkStatusByte.html">checkStatusByte</a></td><td>Interpretes the status byte of a return package and creates an error message </td></tr> 63 64 65 <tr><td><a name="G"></a> 66 <a href="./help/GetLight.html">GetLight</a></td><td>Reads the current value of the NXT light sensor </td></tr> 67 <tr><td><a href="./help/GetMemoryCount.html">GetMemoryCount</a></td><td>Gets the internal NXT memory counter (manual mapping replica) </td></tr> 68 <tr><td><a href="./help/GetMotor.html">GetMotor</a></td><td>Reads the current motor set by SetMotor(). Raises an error if no motor was set </td></tr> 69 <tr><td><a href="./help/GetMotorSettings.html">GetMotorSettings</a></td><td>Returns the current motor data / settings (e.g. position, speed, etc.) from the specified motor </td></tr> 70 <tr><td><a href="./help/GetSound.html">GetSound</a></td><td>Reads the current value of the NXT sound sensor </td></tr> 71 <tr><td><a href="./help/GetSwitch.html">GetSwitch</a></td><td>Reads the current value of the NXT switch / touch sensor </td></tr> 72 <tr><td><a href="./help/GetUltrasonic.html">GetUltrasonic</a></td><td>Reads the current value of the NXT ultrasonic sensor </td></tr> 73 74 75 <tr><td><a name="M"></a> 76 <a href="./help/MOTOR_A.html">MOTOR_A</a></td><td>Symbolic constant MOTOR_A (returns 0) </td></tr> 77 <tr><td><a href="./help/MOTOR_B.html">MOTOR_B</a></td><td>Symbolic constant MOTOR_B (returns 1) </td></tr> 78 <tr><td><a href="./help/MOTOR_C.html">MOTOR_C</a></td><td>Symbolic constant MOTOR_C (returns 2) </td></tr> 79 <tr><td><a href="./help/MotorRotateAbs.html">MotorRotateAbs</a></td><td>Rotates a motor to an absolute angle </td></tr> 80 81 82 <tr><td><a name="N"></a> 83 <a href="./help/NXT_GetBatteryLevel.html">NXT_GetBatteryLevel</a></td><td>Returns the current battery level in milli volts </td></tr> 84 <tr><td><a href="./help/NXT_GetInputValues.html">NXT_GetInputValues</a></td><td>Processes a complete sensor reading, i.e. requests input values and collects the answer. </td></tr> 85 <tr><td><a href="./help/NXT_GetOutputState.html">NXT_GetOutputState</a></td><td>Requests and retrieves an output motor state reading </td></tr> 86 <tr><td><a href="./help/NXT_LSGetStatus.html">NXT_LSGetStatus</a></td><td>Gets the number of available bytes from low speed (digital) sensor (e.g. ultrasonic) </td></tr> 87 <tr><td><a href="./help/NXT_LSRead.html">NXT_LSRead</a></td><td>Reads data from a low speed (digital) sensor </td></tr> 88 <tr><td><a href="./help/NXT_LSWrite.html">NXT_LSWrite</a></td><td>Writes the given data to a low speed (digital) sensor </td></tr> 89 <tr><td><a href="./help/NXT_PlayTone.html">NXT_PlayTone</a></td><td>Plays a tone with the given frequency and duration </td></tr> 90 <tr><td><a href="./help/NXT_ResetInputScaledValue.html">NXT_ResetInputScaledValue</a></td><td>Resets the sensors ScaledVal back to 0, depends on currently configured mode (see NXT_SetInputMode) </td></tr> 91 <tr><td><a href="./help/NXT_ResetMotorPosition.html">NXT_ResetMotorPosition</a></td><td>Resets NXT internal counter for specified motor, relative or absolute counter </td></tr> 92 <tr><td><a href="./help/NXT_SendKeepAlive.html">NXT_SendKeepAlive</a></td><td>Sends a KeepAlive packet. Optional: requests sleep time limit. </td></tr> 93 <tr><td><a href="./help/NXT_SetBrickName.html">NXT_SetBrickName</a></td><td>Sets a new name for the NXT Brick (connected to the specified handle) </td></tr> 94 <tr><td><a href="./help/NXT_SetInputMode.html">NXT_SetInputMode</a></td><td>Sets mode, configures and initializes sensor ready to be read out </td></tr> 95 <tr><td><a href="./help/NXT_SetOutputState.html">NXT_SetOutputState</a></td><td>Sends previously specified settings to current active motor. </td></tr> 96 <tr><td><a href="./help/NXT_StartProgram.html">NXT_StartProgram</a></td><td>Starts the given program on the NXT Brick </td></tr> 97 <tr><td><a href="./help/NXT_StopProgram.html">NXT_StopProgram</a></td><td>Stops a specific program on the NXT Brick </td></tr> 98 99 100 <tr><td><a name="O"></a> 101 <a href="./help/OpenLight.html">OpenLight</a></td><td>Sets the parameter mode of the NXT light sensor </td></tr> 102 <tr><td><a href="./help/OpenSound.html">OpenSound</a></td><td>Sets the parameter mode of the NXT sound sensor </td></tr> 103 <tr><td><a href="./help/OpenSwitch.html">OpenSwitch</a></td><td>Sets the parameter mode of the NXT switch / touch sensor </td></tr> 104 <tr><td><a href="./help/OpenUltrasonic.html">OpenUltrasonic</a></td><td>Initializes and sets the mode of the NXT ultrasonic sensor </td></tr> 105 106 107 <tr><td><a name="R"></a> 108 <a href="./help/readFromIniFile.html">readFromIniFile</a></td><td>Reads parameters from a configuration file (usually *.ini) </td></tr> 109 <tr><td><a href="./help/ResetMotorAngle.html">ResetMotorAngle</a></td><td>Resets the relative angle counter for the given motor </td></tr> 110 111 112 <tr><td><a name="S"></a> 113 <a href="./help/SENSOR_1.html">SENSOR_1</a></td><td>Symbolic constant SENSOR_1 (returns 0) </td></tr> 114 <tr><td><a href="./help/SENSOR_2.html">SENSOR_2</a></td><td>Symbolic constant SENSOR_2 (returns 1) </td></tr> 115 <tr><td><a href="./help/SENSOR_3.html">SENSOR_3</a></td><td>Symbolic constant SENSOR_3 (returns 2) </td></tr> 116 <tr><td><a href="./help/SENSOR_4.html">SENSOR_4</a></td><td>Symbolic constant SENSOR_4 (returns 3) </td></tr> 117 <tr><td><a href="./help/SendMotorSettings.html">SendMotorSettings</a></td><td>Sends previously specified settings to current active motor. </td></tr> 118 <tr><td><a href="./help/SetAngleLimit.html">SetAngleLimit</a></td><td>Sets the angle limit (in degrees) of the current motor port </td></tr> 119 <tr><td><a href="./help/SetMemoryCount.html">SetMemoryCount</a></td><td>Sets the internal NXT memory counter (manual mapping replica) </td></tr> 120 <tr><td><a href="./help/SetMotor.html">SetMotor</a></td><td>Sets the current motor to use for motor setting commands </td></tr> 121 <tr><td><a href="./help/SetPower.html">SetPower</a></td><td>Sets the power of the current active motor </td></tr> 122 <tr><td><a href="./help/SetRampMode.html">SetRampMode</a></td><td>Sets the runstate of the current active motor </td></tr> 123 <tr><td><a href="./help/SetTurnRatio.html">SetTurnRatio</a></td><td>Sets the turn ratio of the current active motor </td></tr> 124 <tr><td><a href="./help/SpeedRegulation.html">SpeedRegulation</a></td><td>Enables / disables the speed regulation mode of the current active motor </td></tr> 125 <tr><td><a href="./help/StopMotor.html">StopMotor</a></td><td>Stops / brakes specified motor. (Synchronisation will be lost after this) </td></tr> 126 <tr><td><a href="./help/SwitchLamp.html">SwitchLamp</a></td><td>Switches the LEGO lamp on or off (has to be connected to a motor port) </td></tr> 127 <tr><td><a href="./help/SyncToMotor.html">SyncToMotor</a></td><td>Enables synchronization regulation for current active and specified motor </td></tr> 128 129 130 <tr><td><a name="T"></a> 131 <a href="./help/textOut.html">textOut</a></td><td>Wrapper for fprintf() which can optionally write screen output to a logfile </td></tr> 132 <tr><td><a href="./help/tictic.html">tictic</a></td><td>Similar to MATLAB's tic(), but extended to save "more states" </td></tr> 133 <tr><td><a href="./help/toctoc.html">toctoc</a></td><td>Similar to MATLAB's toc(), but extended to save "more states" </td></tr> 134 135 136 <tr><td><a name="W"></a> 137 <a href="./help/WaitForMotor.html">WaitForMotor</a></td><td>Pauses execution until specific motor is not running anymore. </td></tr> 15 <tr><td><a href="./help/checkStatusByte.html">checkStatusByte</a></td><td>Interpretes the status byte of a return package and creates an error message</td></tr> 16 <tr><td><a href="./help/CloseSensor.html">CloseSensor</a></td><td>Closes a specified sensor port (e.g. turns off the active light mode of the NXT light sensor)</td></tr> 17 <tr><td><a href="./help/COM_CloseNXT.html">COM_CloseNXT</a></td><td>Closes and deletes a specific NXT handle, or clears all existing handles</td></tr> 18 <tr><td><a href="./help/COM_CollectPacket.html">COM_CollectPacket</a></td><td>Reads data from a USB or serial/Bluetooth port and retrieves exactly one packet</td></tr> 19 <tr><td><a href="./help/COM_CreatePacket.html">COM_CreatePacket</a></td><td>Generates a valid Bluetooth packet ready for transmission (i.e. calculates length)</td></tr> 20 <tr><td><a href="./help/COM_GetDefaultNXT.html">COM_GetDefaultNXT</a></td><td>Returns the global default NXT handle if it was previously set</td></tr> 21 <tr><td><a href="./help/COM_MakeBTConfigFile.html">COM_MakeBTConfigFile</a></td><td>Creates a Bluetooth configuration file which is needed to open a Bluetooth connection.</td></tr> 22 <tr><td><a href="./help/COM_OpenNXT.html">COM_OpenNXT</a></td><td>Opens a USB or Bluetooth connection to an NXT device and returns a handle for future use</td></tr> 23 <tr><td><a href="./help/COM_OpenNXTEx.html">COM_OpenNXTEx</a></td><td>Opens a Bluetooth or USB connection to an NXT device and returns a handle for future use</td></tr> 24 <tr><td><a href="./help/COM_SendPacket.html">COM_SendPacket</a></td><td>Sends a communication protocol packet (byte-array) via a USB or Bluetooth channel (serial port)</td></tr> 25 <tr><td><a href="./help/COM_SetDefaultNXT.html">COM_SetDefaultNXT</a></td><td>Sets a global default NXT handle that will be used by other functions if no handle is specified.</td></tr> 26 <tr><td><a href="./help/DebugMode.html">DebugMode</a></td><td>Gets or sets the debug state (i.e. if textOut will print messages to the command window)</td></tr> 27 <tr><td><a href="./help/GetLight.html">GetLight</a></td><td>Reads the current value of the NXT light sensor</td></tr> 28 <tr><td><a href="./help/GetMemoryCount.html">GetMemoryCount</a></td><td>Gets the internal NXT memory counter (manual mapping replica)</td></tr> 29 <tr><td><a href="./help/GetMotor.html">GetMotor</a></td><td>Reads the current motor set by SetMotor(). Raises an error if no motor was set</td></tr> 30 <tr><td><a href="./help/GetMotorSettings.html">GetMotorSettings</a></td><td>Returns the current motor data / settings (e.g. position, speed, etc.) from the specified motor</td></tr> 31 <tr><td><a href="./help/GetSound.html">GetSound</a></td><td>Reads the current value of the NXT sound sensor</td></tr> 32 <tr><td><a href="./help/GetSwitch.html">GetSwitch</a></td><td>Reads the current value of the NXT switch / touch sensor</td></tr> 33 <tr><td><a href="./help/GetUltrasonic.html">GetUltrasonic</a></td><td>Reads the current value of the NXT ultrasonic sensor</td></tr> 34 <tr><td><a href="./help/MAP_GetCommModule.html">MAP_GetCommModule</a></td><td>Reads the IO map of the communication module</td></tr> 35 <tr><td><a href="./help/MAP_GetInputModule.html">MAP_GetInputModule</a></td><td>Reads the IO map of the input module</td></tr> 36 <tr><td><a href="./help/MAP_GetOutputModule.html">MAP_GetOutputModule</a></td><td>Reads the IO map of the output module</td></tr> 37 <tr><td><a href="./help/MAP_GetSoundModule.html">MAP_GetSoundModule</a></td><td>Reads the IO map of the sound module</td></tr> 38 <tr><td><a href="./help/MAP_GetUIModule.html">MAP_GetUIModule</a></td><td>Reads the IO map of the user interface module</td></tr> 39 <tr><td><a href="./help/MAP_SetOutputModule.html">MAP_SetOutputModule</a></td><td>Writes the IO map to the output module</td></tr> 40 <tr><td><a href="./help/MOTOR_A.html">MOTOR_A</a></td><td>Symbolic constant MOTOR_A (returns 0)</td></tr> 41 <tr><td><a href="./help/MOTOR_B.html">MOTOR_B</a></td><td>Symbolic constant MOTOR_B (returns 1)</td></tr> 42 <tr><td><a href="./help/MOTOR_C.html">MOTOR_C</a></td><td>Symbolic constant MOTOR_C (returns 2)</td></tr> 43 <tr><td><a href="./help/MotorRotateAbs.html">MotorRotateAbs</a></td><td>Rotates a motor to an absolute angle</td></tr> 44 <tr><td><a href="./help/NXT_GetBatteryLevel.html">NXT_GetBatteryLevel</a></td><td>Returns the current battery level in milli volts</td></tr> 45 <tr><td><a href="./help/NXT_GetFirmwareVersion.html">NXT_GetFirmwareVersion</a></td><td>Returns the protocol and firmware version of the NXT</td></tr> 46 <tr><td><a href="./help/NXT_GetInputValues.html">NXT_GetInputValues</a></td><td>Processes a complete sensor reading, i.e. requests input values and collects the answer.</td></tr> 47 <tr><td><a href="./help/NXT_GetOutputState.html">NXT_GetOutputState</a></td><td>Requests and retrieves an output motor state reading</td></tr> 48 <tr><td><a href="./help/NXT_LSGetStatus.html">NXT_LSGetStatus</a></td><td>Gets the number of available bytes from low speed (digital) sensor (e.g. ultrasonic)</td></tr> 49 <tr><td><a href="./help/NXT_LSRead.html">NXT_LSRead</a></td><td>Reads data from a low speed (digital) sensor</td></tr> 50 <tr><td><a href="./help/NXT_LSWrite.html">NXT_LSWrite</a></td><td>Writes the given data to a low speed (digital) sensor</td></tr> 51 <tr><td><a href="./help/NXT_PlaySoundFile.html">NXT_PlaySoundFile</a></td><td>Plays the given sound file on the NXT Brick</td></tr> 52 <tr><td><a href="./help/NXT_PlayTone.html">NXT_PlayTone</a></td><td>Plays a tone with the given frequency and duration</td></tr> 53 <tr><td><a href="./help/NXT_ReadIOMap.html">NXT_ReadIOMap</a></td><td>Reads the IO map of the given module ID</td></tr> 54 <tr><td><a href="./help/NXT_ResetInputScaledValue.html">NXT_ResetInputScaledValue</a></td><td>Resets the sensors ScaledVal back to 0, depends on currently configured mode (see NXT_SetInputMode)</td></tr> 55 <tr><td><a href="./help/NXT_ResetMotorPosition.html">NXT_ResetMotorPosition</a></td><td>Resets NXT internal counter for specified motor, relative or absolute counter</td></tr> 56 <tr><td><a href="./help/NXT_SendKeepAlive.html">NXT_SendKeepAlive</a></td><td>Sends a KeepAlive packet. Optional: requests sleep time limit.</td></tr> 57 <tr><td><a href="./help/NXT_SetBrickName.html">NXT_SetBrickName</a></td><td>Sets a new name for the NXT Brick (connected to the specified handle)</td></tr> 58 <tr><td><a href="./help/NXT_SetInputMode.html">NXT_SetInputMode</a></td><td>Sets mode, configures and initializes sensor ready to be read out</td></tr> 59 <tr><td><a href="./help/NXT_SetOutputState.html">NXT_SetOutputState</a></td><td>Sends previously specified settings to current active motor.</td></tr> 60 <tr><td><a href="./help/NXT_StartProgram.html">NXT_StartProgram</a></td><td>Starts the given program on the NXT Brick</td></tr> 61 <tr><td><a href="./help/NXT_StopProgram.html">NXT_StopProgram</a></td><td>Stops a specific program on the NXT Brick</td></tr> 62 <tr><td><a href="./help/NXT_StopSoundPlayback.html">NXT_StopSoundPlayback</a></td><td>Stops the current sound playback</td></tr> 63 <tr><td><a href="./help/NXT_WriteIOMap.html">NXT_WriteIOMap</a></td><td>Writes the IO map to the given module ID</td></tr> 64 <tr><td><a href="./help/OpenLight.html">OpenLight</a></td><td>Sets the parameter mode of the NXT light sensor</td></tr> 65 <tr><td><a href="./help/OpenSound.html">OpenSound</a></td><td>Sets the parameter mode of the NXT sound sensor</td></tr> 66 <tr><td><a href="./help/OpenSwitch.html">OpenSwitch</a></td><td>Sets the parameter mode of the NXT switch / touch sensor</td></tr> 67 <tr><td><a href="./help/OpenUltrasonic.html">OpenUltrasonic</a></td><td>Initializes and sets the mode of the NXT ultrasonic sensor</td></tr> 68 <tr><td><a href="./help/readFromIniFile.html">readFromIniFile</a></td><td>Reads parameters from a configuration file (usually *.ini)</td></tr> 69 <tr><td><a href="./help/ResetMotorAngle.html">ResetMotorAngle</a></td><td>Resets the relative angle counter for the given motor</td></tr> 70 <tr><td><a href="./help/SendMotorSettings.html">SendMotorSettings</a></td><td>Sends previously specified settings to current active motor.</td></tr> 71 <tr><td><a href="./help/SENSOR_1.html">SENSOR_1</a></td><td>Symbolic constant SENSOR_1 (returns 0)</td></tr> 72 <tr><td><a href="./help/SENSOR_2.html">SENSOR_2</a></td><td>Symbolic constant SENSOR_2 (returns 1)</td></tr> 73 <tr><td><a href="./help/SENSOR_3.html">SENSOR_3</a></td><td>Symbolic constant SENSOR_3 (returns 2)</td></tr> 74 <tr><td><a href="./help/SENSOR_4.html">SENSOR_4</a></td><td>Symbolic constant SENSOR_4 (returns 3)</td></tr> 75 <tr><td><a href="./help/SetAngleLimit.html">SetAngleLimit</a></td><td>Sets the angle limit (in degrees) of the current motor port</td></tr> 76 <tr><td><a href="./help/SetMemoryCount.html">SetMemoryCount</a></td><td>Sets the internal NXT memory counter (manual mapping replica)</td></tr> 77 <tr><td><a href="./help/SetMotor.html">SetMotor</a></td><td>Sets the current motor to use for motor setting commands</td></tr> 78 <tr><td><a href="./help/SetPower.html">SetPower</a></td><td>Sets the power of the current active motor</td></tr> 79 <tr><td><a href="./help/SetRampMode.html">SetRampMode</a></td><td>Sets the runstate of the current active motor</td></tr> 80 <tr><td><a href="./help/SetTurnRatio.html">SetTurnRatio</a></td><td>Sets the turn ratio of the current active motor</td></tr> 81 <tr><td><a href="./help/SpeedRegulation.html">SpeedRegulation</a></td><td>Enables / disables the speed regulation mode of the current active motor</td></tr> 82 <tr><td><a href="./help/StopMotor.html">StopMotor</a></td><td>Stops / brakes specified motor. (Synchronisation will be lost after this)</td></tr> 83 <tr><td><a href="./help/SwitchLamp.html">SwitchLamp</a></td><td>Switches the LEGO lamp on or off (has to be connected to a motor port)</td></tr> 84 <tr><td><a href="./help/SyncToMotor.html">SyncToMotor</a></td><td>Enables synchronization regulation for current active and specified motor</td></tr> 85 <tr><td><a href="./help/textOut.html">textOut</a></td><td>Wrapper for fprintf() which can optionally write screen output to a logfile</td></tr> 86 <tr><td><a href="./help/tictic.html">tictic</a></td><td>Similar to MATLAB's tic(), but extended to save "more states"</td></tr> 87 <tr><td><a href="./help/toctoc.html">toctoc</a></td><td>Similar to MATLAB's toc(), but extended to save "more states"</td></tr> 88 <tr><td><a href="./help/USGetSnapshotResults.html">USGetSnapshotResults</a></td><td>Retrieves up to eight echos (distances) stored inside the US sensor</td></tr> 89 <tr><td><a href="./help/USMakeSnapshot.html">USMakeSnapshot</a></td><td>Causes the ultrasonic sensor to send one snapshot ("ping") and record the echos</td></tr> 90 <tr><td><a href="./help/WaitForMotor.html">WaitForMotor</a></td><td>Pauses execution until specific motor is not running anymore.</td></tr> 138 91 </table> 139 92 -
branches/atorf/RWTHMindstormsNXT/doc/functions/categories.html
r3 r254 1 1 <html> 2 2 <head> 3 <title>Functions - By Category</title>3 <title>Functions by Category</title> 4 4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 5 5 <link type="text/css" rel="stylesheet" href="../style.css"> … … 9 9 <p class="header">RWTH - Mindstorms NXT Toolbox</p> 10 10 <p align="center"> 11 <h1>Functions - By Category</h1> 12 </p> 13 <hr> 14 <p> 15 <!-- <font size="4" face="Geneva, Arial, Helvetica, san-serif"> --> 11 <h1>Functions by Category</h1> 16 12 </p> 17 13 18 14 <table> 19 20 <tr><td colspan="2"><h2>Bluetooth Connection</h2></td></tr> 21 <tr><td><a href="./help/BT_MakeConfigFile.html">BT_MakeConfigFile</a></td><td>Creates a Bluetooth configuration file which is needed to open a Bluetooth connection. </td></tr> 22 <tr><td><a href="./help/BT_CloseAllHandles.html">BT_CloseAllHandles</a></td><td>Closes and deletes all existing serial or file handles, which are open </td></tr> 23 <tr><td><a href="./help/BT_CloseHandle.html">BT_CloseHandle</a></td><td>Closes and deletes an existing serial or file handle </td></tr> 24 <tr><td><a href="./help/BT_OpenHandle.html">BT_OpenHandle</a></td><td>Opens a Bluetooth connection using settings from the given configuration file </td></tr> 25 <tr><td><a href="./help/BT_SetDefaultHandle.html">BT_SetDefaultHandle</a></td><td>Sets a global default Bluetooth handle that will be used by the NXT-Functions if no other handle is specified. </td></tr> 26 <tr><td><a href="./help/BT_GetDefaultHandle.html">BT_GetDefaultHandle</a></td><td>Returns the global default Bluetooth handle if it was previously set </td></tr> 27 <tr><td><a href="./help/BT_CreatePacket.html">BT_CreatePacket</a></td><td>Generates a valid Bluetooth packet ready for transmission (i.e. calculates length) </td></tr> 28 <tr><td><a href="./help/BT_SendPacket.html">BT_SendPacket</a></td><td>Sends a Bluetooth packet (byte-array) via a Bluetooth channel (serial port) </td></tr> 29 <tr><td><a href="./help/BT_CollectPacket.html">BT_CollectPacket</a></td><td>Reads data from serial/Bluetooth port and retrieves exactly one packet </td></tr> 15 <tr><td colspan="2"><h2>NXT Communication</h2></td></tr> 16 <tr><td><a href="./help/COM_CloseNXT.html">COM_CloseNXT</a></td><td>Closes and deletes a specific NXT handle, or clears all existing handles</td></tr> 17 <tr><td><a href="./help/COM_CollectPacket.html">COM_CollectPacket</a></td><td>Reads data from a USB or serial/Bluetooth port and retrieves exactly one packet</td></tr> 18 <tr><td><a href="./help/COM_CreatePacket.html">COM_CreatePacket</a></td><td>Generates a valid Bluetooth packet ready for transmission (i.e. calculates length)</td></tr> 19 <tr><td><a href="./help/COM_GetDefaultNXT.html">COM_GetDefaultNXT</a></td><td>Returns the global default NXT handle if it was previously set</td></tr> 20 <tr><td><a href="./help/COM_MakeBTConfigFile.html">COM_MakeBTConfigFile</a></td><td>Creates a Bluetooth configuration file which is needed to open a Bluetooth connection.</td></tr> 21 <tr><td><a href="./help/COM_OpenNXT.html">COM_OpenNXT</a></td><td>Opens a USB or Bluetooth connection to an NXT device and returns a handle for future use</td></tr> 22 <tr><td><a href="./help/COM_OpenNXTEx.html">COM_OpenNXTEx</a></td><td>Opens a Bluetooth or USB connection to an NXT device and returns a handle for future use</td></tr> 23 <tr><td><a href="./help/COM_SendPacket.html">COM_SendPacket</a></td><td>Sends a communication protocol packet (byte-array) via a USB or Bluetooth channel (serial port)</td></tr> 24 <tr><td><a href="./help/COM_SetDefaultNXT.html">COM_SetDefaultNXT</a></td><td>Sets a global default NXT handle that will be used by other functions if no handle is specified.</td></tr> 30 25 <tr><td><br><br></td></tr> 31 26 32 27 33 28 <tr><td colspan="2"><h2>NXT Sensors</h2></td></tr> 34 <tr><td><a href="./help/OpenLight.html">OpenLight</a></td><td>Sets the parameter mode of the NXT light sensor </td></tr> 35 <tr><td><a href="./help/OpenSound.html">OpenSound</a></td><td>Sets the parameter mode of the NXT sound sensor </td></tr> 36 <tr><td><a href="./help/OpenSwitch.html">OpenSwitch</a></td><td>Sets the parameter mode of the NXT switch / touch sensor </td></tr> 37 <tr><td><a href="./help/OpenUltrasonic.html">OpenUltrasonic</a></td><td>Initializes and sets the mode of the NXT ultrasonic sensor </td></tr> 38 <tr><td><a href="./help/CloseSensor.html">CloseSensor</a></td><td>Closes a specified sensor port (e.g. turns off the active light mode of the NXT light sensor) </td></tr> 39 <tr><td><a href="./help/GetLight.html">GetLight</a></td><td>Reads the current value of the NXT light sensor </td></tr> 40 <tr><td><a href="./help/GetSound.html">GetSound</a></td><td>Reads the current value of the NXT sound sensor </td></tr> 41 <tr><td><a href="./help/GetSwitch.html">GetSwitch</a></td><td>Reads the current value of the NXT switch / touch sensor </td></tr> 42 <tr><td><a href="./help/GetUltrasonic.html">GetUltrasonic</a></td><td>Reads the current value of the NXT ultrasonic sensor </td></tr> 43 <tr><td><br></td></tr> 44 <tr><td><a href="./help/SENSOR_1.html">SENSOR_1</a></td><td>Symbolic constant SENSOR_1 (returns 0) </td></tr> 45 <tr><td><a href="./help/SENSOR_2.html">SENSOR_2</a></td><td>Symbolic constant SENSOR_2 (returns 1) </td></tr> 46 <tr><td><a href="./help/SENSOR_3.html">SENSOR_3</a></td><td>Symbolic constant SENSOR_3 (returns 2) </td></tr> 47 <tr><td><a href="./help/SENSOR_4.html">SENSOR_4</a></td><td>Symbolic constant SENSOR_4 (returns 3) </td></tr> 29 <tr><td><a href="./help/CloseSensor.html">CloseSensor</a></td><td>Closes a specified sensor port (e.g. turns off the active light mode of the NXT light sensor)</td></tr> 30 <tr><td><a href="./help/GetLight.html">GetLight</a></td><td>Reads the current value of the NXT light sensor</td></tr> 31 <tr><td><a href="./help/GetSound.html">GetSound</a></td><td>Reads the current value of the NXT sound sensor</td></tr> 32 <tr><td><a href="./help/GetSwitch.html">GetSwitch</a></td><td>Reads the current value of the NXT switch / touch sensor</td></tr> 33 <tr><td><a href="./help/GetUltrasonic.html">GetUltrasonic</a></td><td>Reads the current value of the NXT ultrasonic sensor</td></tr> 34 <tr><td><a href="./help/OpenLight.html">OpenLight</a></td><td>Sets the parameter mode of the NXT light sensor</td></tr> 35 <tr><td><a href="./help/OpenSound.html">OpenSound</a></td><td>Sets the parameter mode of the NXT sound sensor</td></tr> 36 <tr><td><a href="./help/OpenSwitch.html">OpenSwitch</a></td><td>Sets the parameter mode of the NXT switch / touch sensor</td></tr> 37 <tr><td><a href="./help/OpenUltrasonic.html">OpenUltrasonic</a></td><td>Initializes and sets the mode of the NXT ultrasonic sensor</td></tr> 38 <tr><td><a href="./help/SENSOR_1.html">SENSOR_1</a></td><td>Symbolic constant SENSOR_1 (returns 0)</td></tr> 39 <tr><td><a href="./help/SENSOR_2.html">SENSOR_2</a></td><td>Symbolic constant SENSOR_2 (returns 1)</td></tr> 40 <tr><td><a href="./help/SENSOR_3.html">SENSOR_3</a></td><td>Symbolic constant SENSOR_3 (returns 2)</td></tr> 41 <tr><td><a href="./help/SENSOR_4.html">SENSOR_4</a></td><td>Symbolic constant SENSOR_4 (returns 3)</td></tr> 42 <tr><td><a href="./help/USGetSnapshotResults.html">USGetSnapshotResults</a></td><td>Retrieves up to eight echos (distances) stored inside the US sensor</td></tr> 43 <tr><td><a href="./help/USMakeSnapshot.html">USMakeSnapshot</a></td><td>Causes the ultrasonic sensor to send one snapshot ("ping") and record the echos</td></tr> 48 44 <tr><td><br><br></td></tr> 49 45 50 46 51 <tr><td colspan="2"><h2>NXT Motor</h2></td></tr> 52 <tr><td><a href="./help/GetMotor.html">GetMotor</a></td><td>Reads the current motor set by SetMotor(). Raises an error if no motor was set </td></tr> 53 <tr><td><a href="./help/GetMotorSettings.html">GetMotorSettings</a></td><td>Returns the current motor data / settings (e.g. position, speed, etc.) from the specified motor </td></tr> 54 <tr><td><a href="./help/SetAngleLimit.html">SetAngleLimit</a></td><td>Sets the angle limit (in degrees) of the current motor port </td></tr> 55 <tr><td><a href="./help/SetMotor.html">SetMotor</a></td><td>Sets the current motor to use for motor setting commands </td></tr> 56 <tr><td><a href="./help/SetPower.html">SetPower</a></td><td>Sets the power of the current active motor </td></tr> 57 <tr><td><a href="./help/SetRampMode.html">SetRampMode</a></td><td>Sets the runstate of the current active motor </td></tr> 58 <tr><td><a href="./help/SetTurnRatio.html">SetTurnRatio</a></td><td>Sets the turn ratio of the current active motor </td></tr> 59 <tr><td><a href="./help/SpeedRegulation.html">SpeedRegulation</a></td><td>Enables / disables the speed regulation mode of the current active motor </td></tr> 60 <tr><td><a href="./help/SyncToMotor.html">SyncToMotor</a></td><td>Enables synchronization regulation for current active and specified motor </td></tr> 61 <tr><td><a href="./help/SendMotorSettings.html">SendMotorSettings</a></td><td>Sends previously specified settings to current active motor. </td></tr> 62 <tr><td><a href="./help/WaitForMotor.html">WaitForMotor</a></td><td>Pauses execution until specific motor is not running anymore. </td></tr> 63 <tr><td><a href="./help/StopMotor.html">StopMotor</a></td><td>Stops / brakes specified motor. (Synchronisation will be lost after this) </td></tr> 64 <tr><td><a href="./help/ResetMotorAngle.html">ResetMotorAngle</a></td><td>Resets the relative angle counter for the given motor </td></tr> 65 <tr><td><br></td></tr> 66 <tr><td><a href="./help/SwitchLamp.html">SwitchLamp</a></td><td>Switches the LEGO lamp on or off (has to be connected to a motor port) </td></tr> 67 <tr><td><br></td></tr> 68 <tr><td><a href="./help/MOTOR_A.html">MOTOR_A</a></td><td>Symbolic constant MOTOR_A (returns 0) </td></tr> 69 <tr><td><a href="./help/MOTOR_B.html">MOTOR_B</a></td><td>Symbolic constant MOTOR_B (returns 1) </td></tr> 70 <tr><td><a href="./help/MOTOR_C.html">MOTOR_C</a></td><td>Symbolic constant MOTOR_C (returns 2) </td></tr> 71 <tr><td><br></td></tr> 72 <tr><td><a href="./help/MotorRotateAbs.html">MotorRotateAbs</a></td><td>Rotates a motor to an absolute angle </td></tr> 73 <tr><td><a href="./help/GetMemoryCount.html">GetMemoryCount</a></td><td>Gets the internal NXT memory counter (manual mapping replica) </td></tr> 74 <tr><td><a href="./help/SetMemoryCount.html">SetMemoryCount</a></td><td>Sets the internal NXT memory counter (manual mapping replica) </td></tr> 47 <tr><td colspan="2"><h2>NXT Motors</h2></td></tr> 48 <tr><td><a href="./help/GetMemoryCount.html">GetMemoryCount</a></td><td>Gets the internal NXT memory counter (manual mapping replica)</td></tr> 49 <tr><td><a href="./help/GetMotor.html">GetMotor</a></td><td>Reads the current motor set by SetMotor(). Raises an error if no motor was set</td></tr> 50 <tr><td><a href="./help/GetMotorSettings.html">GetMotorSettings</a></td><td>Returns the current motor data / settings (e.g. position, speed, etc.) from the specified motor</td></tr> 51 <tr><td><a href="./help/MOTOR_A.html">MOTOR_A</a></td><td>Symbolic constant MOTOR_A (returns 0)</td></tr> 52 <tr><td><a href="./help/MOTOR_B.html">MOTOR_B</a></td><td>Symbolic constant MOTOR_B (returns 1)</td></tr> 53 <tr><td><a href="./help/MOTOR_C.html">MOTOR_C</a></td><td>Symbolic constant MOTOR_C (returns 2)</td></tr> 54 <tr><td><a href="./help/MotorRotateAbs.html">MotorRotateAbs</a></td><td>Rotates a motor to an absolute angle</td></tr> 55 <tr><td><a href="./help/ResetMotorAngle.html">ResetMotorAngle</a></td><td>Resets the relative angle counter for the given motor</td></tr> 56 <tr><td><a href="./help/SendMotorSettings.html">SendMotorSettings</a></td><td>Sends previously specified settings to current active motor.</td></tr> 57 <tr><td><a href="./help/SetAngleLimit.html">SetAngleLimit</a></td><td>Sets the angle limit (in degrees) of the current motor port</td></tr> 58 <tr><td><a href="./help/SetMemoryCount.html">SetMemoryCount</a></td><td>Sets the internal NXT memory counter (manual mapping replica)</td></tr> 59 <tr><td><a href="./help/SetMotor.html">SetMotor</a></td><td>Sets the current motor to use for motor setting commands</td></tr> 60 <tr><td><a href="./help/SetPower.html">SetPower</a></td><td>Sets the power of the current active motor</td></tr> 61 <tr><td><a href="./help/SetRampMode.html">SetRampMode</a></td><td>Sets the runstate of the current active motor</td></tr> 62 <tr><td><a href="./help/SetTurnRatio.html">SetTurnRatio</a></td><td>Sets the turn ratio of the current active motor</td></tr> 63 <tr><td><a href="./help/SpeedRegulation.html">SpeedRegulation</a></td><td>Enables / disables the speed regulation mode of the current active motor</td></tr> 64 <tr><td><a href="./help/StopMotor.html">StopMotor</a></td><td>Stops / brakes specified motor. (Synchronisation will be lost after this)</td></tr> 65 <tr><td><a href="./help/SwitchLamp.html">SwitchLamp</a></td><td>Switches the LEGO lamp on or off (has to be connected to a motor port)</td></tr> 66 <tr><td><a href="./help/SyncToMotor.html">SyncToMotor</a></td><td>Enables synchronization regulation for current active and specified motor</td></tr> 67 <tr><td><a href="./help/WaitForMotor.html">WaitForMotor</a></td><td>Pauses execution until specific motor is not running anymore.</td></tr> 75 68 <tr><td><br><br></td></tr> 76 69 77 70 78 <tr><td colspan="2"><h2> Direct NXT Functions</h2></td></tr> 79 <tr><td><a href="./help/NXT_GetBatteryLevel.html">NXT_GetBatteryLevel</a></td><td>Returns the current battery level in milli volts </td></tr> 80 <tr><td><a href="./help/NXT_GetInputValues.html">NXT_GetInputValues</a></td><td>Processes a complete sensor reading, i.e. requests input values and collects the answer. </td></tr> 81 <tr><td><a href="./help/NXT_GetOutputState.html">NXT_GetOutputState</a></td><td>Requests and retrieves an output motor state reading </td></tr> 82 <tr><td><a href="./help/NXT_LSGetStatus.html">NXT_LSGetStatus</a></td><td>Gets the number of available bytes from low speed (digital) sensor (e.g. ultrasonic) </td></tr> 83 <tr><td><a href="./help/NXT_LSRead.html">NXT_LSRead</a></td><td>Reads data from a low speed (digital) sensor </td></tr> 84 <tr><td><a href="./help/NXT_LSWrite.html">NXT_LSWrite</a></td><td>Writes the given data to a low speed (digital) sensor </td></tr> 85 <tr><td><a href="./help/NXT_PlayTone.html">NXT_PlayTone</a></td><td>Plays a tone with the given frequency and duration </td></tr> 86 <tr><td><a href="./help/NXT_ResetInputScaledValue.html">NXT_ResetInputScaledValue</a></td><td>Resets the sensors ScaledVal back to 0, depends on currently configured mode (see NXT_SetInputMode) </td></tr> 87 <tr><td><a href="./help/NXT_ResetMotorPosition.html">NXT_ResetMotorPosition</a></td><td>Resets NXT internal counter for specified motor, relative or absolute counter </td></tr> 88 <tr><td><a href="./help/NXT_SendKeepAlive.html">NXT_SendKeepAlive</a></td><td>Sends a KeepAlive packet. Optional: requests sleep time limit. </td></tr> 89 <tr><td><a href="./help/NXT_SetBrickName.html">NXT_SetBrickName</a></td><td>Sets a new name for the NXT Brick (connected to the specified handle) </td></tr> 90 <tr><td><a href="./help/NXT_SetInputMode.html">NXT_SetInputMode</a></td><td>Sets mode, configures and initializes sensor ready to be read out </td></tr> 91 <tr><td><a href="./help/NXT_SetOutputState.html">NXT_SetOutputState</a></td><td>Sends previously specified settings to current active motor. </td></tr> 92 <tr><td><a href="./help/NXT_StartProgram.html">NXT_StartProgram</a></td><td>Starts the given program on the NXT Brick </td></tr> 93 <tr><td><a href="./help/NXT_StopProgram.html">NXT_StopProgram</a></td><td>Stops a specific program on the NXT Brick </td></tr> 71 <tr><td colspan="2"><h2>Direct NXT Functions</h2></td></tr> 72 <tr><td><a href="./help/NXT_GetBatteryLevel.html">NXT_GetBatteryLevel</a></td><td>Returns the current battery level in milli volts</td></tr> 73 <tr><td><a href="./help/NXT_GetFirmwareVersion.html">NXT_GetFirmwareVersion</a></td><td>Returns the protocol and firmware version of the NXT</td></tr> 74 <tr><td><a href="./help/NXT_GetInputValues.html">NXT_GetInputValues</a></td><td>Processes a complete sensor reading, i.e. requests input values and collects the answer.</td></tr> 75 <tr><td><a href="./help/NXT_GetOutputState.html">NXT_GetOutputState</a></td><td>Requests and retrieves an output motor state reading</td></tr> 76 <tr><td><a href="./help/NXT_LSGetStatus.html">NXT_LSGetStatus</a></td><td>Gets the number of available bytes from low speed (digital) sensor (e.g. ultrasonic)</td></tr> 77 <tr><td><a href="./help/NXT_LSRead.html">NXT_LSRead</a></td><td>Reads data from a low speed (digital) sensor</td></tr> 78 <tr><td><a href="./help/NXT_LSWrite.html">NXT_LSWrite</a></td><td>Writes the given data to a low speed (digital) sensor</td></tr> 79 <tr><td><a href="./help/NXT_PlaySoundFile.html">NXT_PlaySoundFile</a></td><td>Plays the given sound file on the NXT Brick</td></tr> 80 <tr><td><a href="./help/NXT_PlayTone.html">NXT_PlayTone</a></td><td>Plays a tone with the given frequency and duration</td></tr> 81 <tr><td><a href="./help/NXT_ReadIOMap.html">NXT_ReadIOMap</a></td><td>Reads the IO map of the given module ID</td></tr> 82 <tr><td><a href="./help/NXT_ResetInputScaledValue.html">NXT_ResetInputScaledValue</a></td><td>Resets the sensors ScaledVal back to 0, depends on currently configured mode (see NXT_SetInputMode)</td></tr> 83 <tr><td><a href="./help/NXT_ResetMotorPosition.html">NXT_ResetMotorPosition</a></td><td>Resets NXT internal counter for specified motor, relative or absolute counter</td></tr> 84 <tr><td><a href="./help/NXT_SendKeepAlive.html">NXT_SendKeepAlive</a></td><td>Sends a KeepAlive packet. Optional: requests sleep time limit.</td></tr> 85 <tr><td><a href="./help/NXT_SetBrickName.html">NXT_SetBrickName</a></td><td>Sets a new name for the NXT Brick (connected to the specified handle)</td></tr> 86 <tr><td><a href="./help/NXT_SetInputMode.html">NXT_SetInputMode</a></td><td>Sets mode, configures and initializes sensor ready to be read out</td></tr> 87 <tr><td><a href="./help/NXT_SetOutputState.html">NXT_SetOutputState</a></td><td>Sends previously specified settings to current active motor.</td></tr> 88 <tr><td><a href="./help/NXT_StartProgram.html">NXT_StartProgram</a></td><td>Starts the given program on the NXT Brick</td></tr> 89 <tr><td><a href="./help/NXT_StopProgram.html">NXT_StopProgram</a></td><td>Stops a specific program on the NXT Brick</td></tr> 90 <tr><td><a href="./help/NXT_StopSoundPlayback.html">NXT_StopSoundPlayback</a></td><td>Stops the current sound playback</td></tr> 91 <tr><td><a href="./help/NXT_WriteIOMap.html">NXT_WriteIOMap</a></td><td>Writes the IO map to the given module ID</td></tr> 94 92 <tr><td><br><br></td></tr> 95 93 96 94 97 <tr><td colspan="2"><h2> Help Functions</h2></td></tr> 98 <tr><td><a href="./help/checkStatusByte.html">checkStatusByte</a></td><td>Interpretes the status byte of a return package and creates an error message </td></tr> 99 <tr><td><a href="./help/readFromIniFile.html">readFromIniFile</a></td><td>Reads parameters from a configuration file (usually *.ini) </td></tr> 100 <tr><td><a href="./help/textOut.html">textOut</a></td><td>Wrapper for fprintf() which can optionally write screen output to a logfile </td></tr> 101 <tr><td><a href="./help/tictic.html">tictic</a></td><td>Similar to MATLAB's tic(), but extended to save "more states" </td></tr> 102 <tr><td><a href="./help/toctoc.html">toctoc</a></td><td>Similar to MATLAB's toc(), but extended to save "more states" </td></tr> 103 </table> 95 <tr><td colspan="2"><h2>NXT Module Map Functions</h2></td></tr> 96 <tr><td><a href="./help/MAP_GetCommModule.html">MAP_GetCommModule</a></td><td>Reads the IO map of the communication module</td></tr> 97 <tr><td><a href="./help/MAP_GetInputModule.html">MAP_GetInputModule</a></td><td>Reads the IO map of the input module</td></tr> 98 <tr><td><a href="./help/MAP_GetOutputModule.html">MAP_GetOutputModule</a></td><td>Reads the IO map of the output module</td></tr> 99 <tr><td><a href="./help/MAP_GetSoundModule.html">MAP_GetSoundModule</a></td><td>Reads the IO map of the sound module</td></tr> 100 <tr><td><a href="./help/MAP_GetUIModule.html">MAP_GetUIModule</a></td><td>Reads the IO map of the user interface module</td></tr> 101 <tr><td><a href="./help/MAP_SetOutputModule.html">MAP_SetOutputModule</a></td><td>Writes the IO map to the output module</td></tr> 102 <tr><td><br><br></td></tr> 104 103 105 104 106 <!-- </font> --> 105 <tr><td colspan="2"><h2>General Functions</h2></td></tr> 106 <tr><td><a href="./help/checkStatusByte.html">checkStatusByte</a></td><td>Interpretes the status byte of a return package and creates an error message</td></tr> 107 <tr><td><a href="./help/readFromIniFile.html">readFromIniFile</a></td><td>Reads parameters from a configuration file (usually *.ini)</td></tr> 108 <tr><td><a href="./help/textOut.html">textOut</a></td><td>Wrapper for fprintf() which can optionally write screen output to a logfile</td></tr> 109 <tr><td><a href="./help/tictic.html">tictic</a></td><td>Similar to MATLAB's tic(), but extended to save "more states"</td></tr> 110 <tr><td><a href="./help/toctoc.html">toctoc</a></td><td>Similar to MATLAB's toc(), but extended to save "more states"</td></tr> 111 <tr><td><br><br></td></tr> 107 112 113 114 <tr><td colspan="2"><h2>Debug Functions</h2></td></tr> 115 <tr><td><a href="./help/DebugMode.html">DebugMode</a></td><td>Gets or sets the debug state (i.e. if textOut will print messages to the command window)</td></tr> 116 <tr><td><br><br></td></tr> 117 118 119 </table> 108 120 109 121 </body> -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/CloseSensor.html
r3 r254 12 12 <title>CloseSensor</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_CloseSensor"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 51 51 <li><b>Date:</b> 2007/10/15 52 52 </li> 53 <li><b>Copyright:</b> 2007 , RWTH Aachen University53 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 54 54 </li> 55 55 </ul> … … 86 86 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 87 87 % * *Date:* 2007/10/15 88 % * *Copyright:* 2007 , RWTH Aachen University88 % * *Copyright:* 2007-2008, RWTH Aachen University 89 89 % 90 90 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/GetLight.html
r3 r254 12 12 <title>GetLight</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_GetLight"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 53 53 <li><b>Date:</b> 2007/10/15 54 54 </li> 55 <li><b>Copyright:</b> 2007 , RWTH Aachen University55 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 56 56 </li> 57 57 </ul> … … 90 90 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 91 91 % * *Date:* 2007/10/15 92 % * *Copyright:* 2007 , RWTH Aachen University92 % * *Copyright:* 2007-2008, RWTH Aachen University 93 93 % 94 94 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/GetMemoryCount.html
r45 r254 5 5 <head> 6 6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 7 7 8 8 <!-- 9 9 This HTML is auto-generated from an M-file. … … 12 12 <title>GetMemoryCount</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_GetMemoryCount"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 43 43 <h2>Examples<a name="5"></a></h2><pre class="codeinput"> memory = GetMemoryCount(MOTOR_A); 44 44 </pre><h2>See also<a name="6"></a></h2> 45 <p><a href="SetMemoryCount .html">SetMemoryCount</a>, <a href="MOTOR_A.html">MOTOR_A</a>, <a href="MOTOR_B.html">MOTOR_B</a>, <a href="MOTOR_C.html">MOTOR_C</a></p>45 <p><a href="SetMemoryCounter.html">SetMemoryCounter</a>, <a href="MOTOR_A.html">MOTOR_A</a>, <a href="MOTOR_B.html">MOTOR_B</a>, <a href="MOTOR_C.html">MOTOR_C</a></p> 46 46 <h2>Signature<a name="7"></a></h2> 47 47 <div> … … 51 51 <li><b>Date:</b> 2007/10/15 52 52 </li> 53 <li><b>Copyright:</b> 2007 , RWTH Aachen University53 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 54 54 </li> 55 55 </ul> … … 87 87 % * *Author:* Alexander Behrens (see AUTHORS) 88 88 % * *Date:* 2007/10/15 89 % * *Copyright:* 2007 , RWTH Aachen University89 % * *Copyright:* 2007-2008, RWTH Aachen University 90 90 % 91 91 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/GetMotor.html
r3 r254 12 12 <title>GetMotor</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_GetMotor"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 49 49 <li><b>Date:</b> 2007/10/15 50 50 </li> 51 <li><b>Copyright:</b> 2007 , RWTH Aachen University51 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 52 52 </li> 53 53 </ul> … … 79 79 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 80 80 % * *Date:* 2007/10/15 81 % * *Copyright:* 2007 , RWTH Aachen University81 % * *Copyright:* 2007-2008, RWTH Aachen University 82 82 % 83 83 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/GetMotorSettings.html
r3 r254 12 12 <title>GetMotorSettings</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_GetMotorSettings"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 74 74 <li><b>Date:</b> 2007/10/15 75 75 </li> 76 <li><b>Copyright:</b> 2007 , RWTH Aachen University76 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 77 77 </li> 78 78 </ul> … … 134 134 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 135 135 % * *Date:* 2007/10/15 136 % * *Copyright:* 2007 , RWTH Aachen University136 % * *Copyright:* 2007-2008, RWTH Aachen University 137 137 % 138 138 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/GetSound.html
r3 r254 12 12 <title>GetSound</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_GetSound"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 53 53 <li><b>Date:</b> 2007/10/15 54 54 </li> 55 <li><b>Copyright:</b> 2007 , RWTH Aachen University55 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 56 56 </li> 57 57 </ul> … … 90 90 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 91 91 % * *Date:* 2007/10/15 92 % * *Copyright:* 2007 , RWTH Aachen University92 % * *Copyright:* 2007-2008, RWTH Aachen University 93 93 % 94 94 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/GetSwitch.html
r3 r254 12 12 <title>GetSwitch</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_GetSwitch"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 52 52 <li><b>Date:</b> 2007/10/15 53 53 </li> 54 <li><b>Copyright:</b> 2007 , RWTH Aachen University54 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 55 55 </li> 56 56 </ul> … … 89 89 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 90 90 % * *Date:* 2007/10/15 91 % * *Copyright:* 2007 , RWTH Aachen University91 % * *Copyright:* 2007-2008, RWTH Aachen University 92 92 % 93 93 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/GetUltrasonic.html
r3 r254 12 12 <title>GetUltrasonic</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_GetUltrasonic"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 44 44 CloseSensor(SENSOR_4); 45 45 </pre><h2>See also<a name="5"></a></h2> 46 <p><a href=" NXT_LSRead.html">NXT_LSRead</a>, <a href="NXT_LSWrite.html">NXT_LSWrite</a>, <a href="OpenUltrasonic.html">OpenUltrasonic</a>, <a href="CloseSensor.html">CloseSensor</a>, <a href="SENSOR_1.html">SENSOR_1</a>, <a href="SENSOR_2.html">SENSOR_2</a>, <a href="SENSOR_3.html">SENSOR_3</a>, <a href="SENSOR_4.html">SENSOR_4</a></p>46 <p><a href="OpenUltrasonic.html">OpenUltrasonic</a>, <a href="USMakeSnapshot.html">USMakeSnapshot</a>, <a href="USGetSnapshotResults.html">USGetSnapshotResults</a>, <a href="CloseSensor.html">CloseSensor</a>, <a href="NXT_LSRead.html">NXT_LSRead</a>, <a href="NXT_LSWrite.html">NXT_LSWrite</a></p> 47 47 <h2>Signature<a name="6"></a></h2> 48 48 <div> … … 50 50 <li><b>Author:</b> Linus Atorf, Alexander Behrens (see AUTHORS) 51 51 </li> 52 <li><b>Date:</b> 200 7/10/1552 <li><b>Date:</b> 2008/01/15 53 53 </li> 54 <li><b>Copyright:</b> 2007 , RWTH Aachen University54 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 55 55 </li> 56 56 </ul> … … 82 82 %% 83 83 %% See also 84 % NXT_LSRead, NXT_LSWrite, OpenUltrasonic, CloseSensor, SENSOR_1, SENSOR_2, SENSOR_3, 85 % SENSOR_4 84 % OpenUltrasonic, USMakeSnapshot, USGetSnapshotResults, CloseSensor, NXT_LSRead, NXT_LSWrite 86 85 %% 87 86 %% Signature 88 87 %% 89 88 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 90 % * *Date:* 200 7/10/1591 % * *Copyright:* 2007 , RWTH Aachen University89 % * *Date:* 2008/01/15 90 % * *Copyright:* 2007-2008, RWTH Aachen University 92 91 % 93 92 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/MOTOR_A.html
r3 r254 12 12 <title>MOTOR_A</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_MOTOR_A"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 49 49 <li><b>Date:</b> 2007/10/15 50 50 </li> 51 <li><b>Copyright:</b> 2007 , RWTH Aachen University51 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 52 52 </li> 53 53 </ul> … … 78 78 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 79 79 % * *Date:* 2007/10/15 80 % * *Copyright:* 2007 , RWTH Aachen University80 % * *Copyright:* 2007-2008, RWTH Aachen University 81 81 % 82 82 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/MOTOR_B.html
r3 r254 12 12 <title>MOTOR_B</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_MOTOR_B"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 49 49 <li><b>Date:</b> 2007/10/15 50 50 </li> 51 <li><b>Copyright:</b> 2007 , RWTH Aachen University51 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 52 52 </li> 53 53 </ul> … … 78 78 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 79 79 % * *Date:* 2007/10/15 80 % * *Copyright:* 2007 , RWTH Aachen University80 % * *Copyright:* 2007-2008, RWTH Aachen University 81 81 % 82 82 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/MOTOR_C.html
r3 r254 12 12 <title>MOTOR_C</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_MOTOR_C"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 49 49 <li><b>Date:</b> 2007/10/15 50 50 </li> 51 <li><b>Copyright:</b> 2007 , RWTH Aachen University51 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 52 52 </li> 53 53 </ul> … … 78 78 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 79 79 % * *Date:* 2007/10/15 80 % * *Copyright:* 2007 , RWTH Aachen University80 % * *Copyright:* 2007-2008, RWTH Aachen University 81 81 % 82 82 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/MotorRotateAbs.html
r3 r254 12 12 <title>MotorRotateAbs</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_MotorRotateAbs"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 50 50 <li><b>Date:</b> 2007/10/15 51 51 </li> 52 <li><b>Copyright:</b> 2007 , RWTH Aachen University52 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 53 53 </li> 54 54 </ul> … … 86 86 % * *Author:* Robter Schwann, Bernd Neumann (see AUTHORS) 87 87 % * *Date:* 2007/10/15 88 % * *Copyright:* 2007 , RWTH Aachen University88 % * *Copyright:* 2007-2008, RWTH Aachen University 89 89 % 90 90 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/NXT_GetBatteryLevel.html
r3 r254 12 12 <title>NXT_GetBatteryLevel</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_NXT_GetBatteryLevel"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 41 41 <p><tt>voltage = NXT_GetBatteryLevel(handle)</tt> uses the given Bluetooth connection <tt>handle</tt>. This should be a serial handle on a PC system and a file handle on a Linux system. 42 42 </p> 43 <p>If no Bluetooth handle is specified the default one (<tt> BT_GetDefaultHandle</tt>) is used.43 <p>If no Bluetooth handle is specified the default one (<tt>COM_GetDefaultNXT</tt>) is used. 44 44 </p> 45 45 <h2>Examples<a name="6"></a></h2><pre class="codeinput"> voltage = NXT_GetBatteryLevel(); 46 </pre><pre class="codeinput"> bt_handle = BT_OpenHandle(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>);47 voltage = NXT_GetBatteryLevel( bt_handle);46 </pre><pre class="codeinput"> handle = COM_OpenNXT(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>); 47 voltage = NXT_GetBatteryLevel(handle); 48 48 </pre><h2>See also<a name="8"></a></h2> 49 <p><a href=" BT_GetDefaultHandle.html">BT_GetDefaultHandle</a>, <a href="NXT_SendKeepAlive.html">NXT_SendKeepAlive</a></p>49 <p><a href="COM_GetDefaultNXT.html">COM_GetDefaultNXT</a>, <a href="NXT_SendKeepAlive.html">NXT_SendKeepAlive</a></p> 50 50 <h2>Signature<a name="9"></a></h2> 51 51 <div> … … 55 55 <li><b>Date:</b> 2007/10/15 56 56 </li> 57 <li><b>Copyright:</b> 2007 , RWTH Aachen University57 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 58 58 </li> 59 59 </ul> … … 79 79 % serial handle on a PC system and a file handle on a Linux system. 80 80 %% 81 % If no Bluetooth handle is specified the default one (| BT_GetDefaultHandle|) is used.81 % If no Bluetooth handle is specified the default one (|COM_GetDefaultNXT|) is used. 82 82 %% 83 83 %% Examples 84 84 voltage = NXT_GetBatteryLevel(); 85 85 %% 86 bt_handle = BT_OpenHandle('bluetooth.ini','check');87 voltage = NXT_GetBatteryLevel( bt_handle);86 handle = COM_OpenNXT('bluetooth.ini','check'); 87 voltage = NXT_GetBatteryLevel(handle); 88 88 %% 89 89 %% See also 90 % BT_GetDefaultHandle, NXT_SendKeepAlive90 % COM_GetDefaultNXT, NXT_SendKeepAlive 91 91 %% 92 92 %% Signature … … 94 94 % * *Author:* Linus Atorf (see AUTHORS) 95 95 % * *Date:* 2007/10/15 96 % * *Copyright:* 2007 , RWTH Aachen University96 % * *Copyright:* 2007-2008, RWTH Aachen University 97 97 % 98 98 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/NXT_GetInputValues.html
r3 r254 12 12 <title>NXT_GetInputValues</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_NXT_GetInputValues"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 41 41 <p><tt>data = NXT_GetInputValues(port, handle)</tt> uses the given Bluetooth connection <tt>handle</tt>. This should be a serial handle on a PC system and a file handle on a Linux system. 42 42 </p> 43 <p>If no Bluetooth handle is specified the default one (<tt> BT_GetDefaultHandle</tt>) is used.43 <p>If no Bluetooth handle is specified the default one (<tt>COM_GetDefaultNXT</tt>) is used. 44 44 </p> 45 45 <p><b>Output:</b></p> … … 71 71 <p>For more details see the official LEGO Mindstorms communication protocol.</p> 72 72 <h2>Examples<a name="21"></a></h2><pre class="codeinput"> data = NXT_GetInputValues(SENSOR_3); 73 </pre><pre class="codeinput"> bt_handle = BT_OpenHandle(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>);74 data = NXT_GetInputValues(SENSOR_1, bt_handle);73 </pre><pre class="codeinput"> handle = COM_OpenNXT(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>); 74 data = NXT_GetInputValues(SENSOR_1, handle); 75 75 </pre><h2>See also<a name="23"></a></h2> 76 76 <p><a href="NXT_SetInputMode.html">NXT_SetInputMode</a>, <a href="GetLight.html">GetLight</a>, <a href="GetSwitch.html">GetSwitch</a>, <a href="GetSound.html">GetSound</a>, <a href="GetUltrasonic.html">GetUltrasonic</a>, <a href="SENSOR_1.html">SENSOR_1</a>, <a href="SENSOR_2.html">SENSOR_2</a>, <a href="SENSOR_3.html">SENSOR_3</a>, <a href="SENSOR_4.html">SENSOR_4</a></p> … … 82 82 <li><b>Date:</b> 2007/10/15 83 83 </li> 84 <li><b>Copyright:</b> 2007 , RWTH Aachen University84 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 85 85 </li> 86 86 </ul> … … 109 109 % serial handle on a PC system and a file handle on a Linux system. 110 110 %% 111 % If no Bluetooth handle is specified the default one (| BT_GetDefaultHandle|) is used.111 % If no Bluetooth handle is specified the default one (|COM_GetDefaultNXT|) is used. 112 112 %% 113 113 %% … … 151 151 data = NXT_GetInputValues(SENSOR_3); 152 152 %% 153 bt_handle = BT_OpenHandle('bluetooth.ini','check');154 data = NXT_GetInputValues(SENSOR_1, bt_handle);153 handle = COM_OpenNXT('bluetooth.ini','check'); 154 data = NXT_GetInputValues(SENSOR_1, handle); 155 155 %% 156 156 %% See also … … 161 161 % * *Author:* Linus Atorf (see AUTHORS) 162 162 % * *Date:* 2007/10/15 163 % * *Copyright:* 2007 , RWTH Aachen University163 % * *Copyright:* 2007-2008, RWTH Aachen University 164 164 % 165 165 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/NXT_GetOutputState.html
r3 r254 12 12 <title>NXT_GetOutputState</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_NXT_GetOutputState"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 41 41 <p><tt>data = NXT_GetOutputState(port, handle)</tt> uses the given Bluetooth connection <tt>handle</tt>. This should be a serial handle on a PC system and a file handle on a Linux system. 42 42 </p> 43 <p>If no Bluetooth handle is specified the default one (<tt> BT_GetDefaultHandle</tt>) is used.43 <p>If no Bluetooth handle is specified the default one (<tt>COM_GetDefaultNXT</tt>) is used. 44 44 </p> 45 45 <p><b>Output:</b></p> … … 76 76 <p>For more details see the official LEGO Mindstorms communication protocol.</p> 77 77 <h2>Examples<a name="23"></a></h2><pre class="codeinput"> data = NXT_GetOutputState(MOTOR_B); 78 </pre><pre class="codeinput"> bt_handle = BT_OpenHandle(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>);79 data = NXT_GetOutputState(MOTOR_A, bt_handle);78 </pre><pre class="codeinput"> handle = COM_OpenNXT(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>); 79 data = NXT_GetOutputState(MOTOR_A, handle); 80 80 </pre><h2>See also<a name="25"></a></h2> 81 81 <p><a href="GetMotorSettings.html">GetMotorSettings</a>, <a href="SendMotorSettings.html">SendMotorSettings</a>, <a href="NXT_SetOutputState.html">NXT_SetOutputState</a>, <a href="MOTOR_A.html">MOTOR_A</a>, <a href="MOTOR_B.html">MOTOR_B</a>, <a href="MOTOR_C.html">MOTOR_C</a></p> … … 87 87 <li><b>Date:</b> 2007/10/15 88 88 </li> 89 <li><b>Copyright:</b> 2007 , RWTH Aachen University89 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 90 90 </li> 91 91 </ul> … … 113 113 % serial handle on a PC system and a file handle on a Linux system. 114 114 %% 115 % If no Bluetooth handle is specified the default one (| BT_GetDefaultHandle|) is used.115 % If no Bluetooth handle is specified the default one (|COM_GetDefaultNXT|) is used. 116 116 %% 117 117 %% … … 153 153 data = NXT_GetOutputState(MOTOR_B); 154 154 %% 155 bt_handle = BT_OpenHandle('bluetooth.ini','check');156 data = NXT_GetOutputState(MOTOR_A, bt_handle);155 handle = COM_OpenNXT('bluetooth.ini','check'); 156 data = NXT_GetOutputState(MOTOR_A, handle); 157 157 %% 158 158 %% See also … … 163 163 % * *Author:* Linus Atorf (see AUTHORS) 164 164 % * *Date:* 2007/10/15 165 % * *Copyright:* 2007 , RWTH Aachen University165 % * *Copyright:* 2007-2008, RWTH Aachen University 166 166 % 167 167 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/NXT_LSGetStatus.html
r3 r254 12 12 <title>NXT_LSGetStatus</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_NXT_LSGetStatus"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 41 41 <p><tt>[BytesReady status] = NXT_LSGetStatus(port, handle)</tt> uses the given Bluetooth connection <tt>handle</tt>. This should be a serial handle on a PC system and a file handle on a Linux system. 42 42 </p> 43 <p>If no Bluetooth handle is specified the default one (<tt> BT_GetDefaultHandle</tt>) is used.43 <p>If no Bluetooth handle is specified the default one (<tt>COM_GetDefaultNXT</tt>) is used. 44 44 </p> 45 45 <p>For more details see the official LEGO Mindstorms communication protocol.</p> … … 52 52 </p> 53 53 <h2>Examples<a name="10"></a></h2><pre class="codeinput"> [BytesReady status] = NXT_LSGetStatus(SENSOR_3); 54 </pre><pre class="codeinput"> bt_handle = BT_OpenHandle(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>);54 </pre><pre class="codeinput"> handle = COM_OpenNXT(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>); 55 55 NXT_SetInputMode(SENSOR_1, <span class="string">'LOWSPEED_9V'</span>, <span class="string">'RAWMODE'</span>, <span class="string">'dontreply'</span>); 56 56 <span class="comment">% note that status can contain errorsmessages, use checkStatusByte</span> 57 [BytesReady status] = NXT_LSGetStatus(SENSOR_1, bt_handle);57 [BytesReady status] = NXT_LSGetStatus(SENSOR_1, handle); 58 58 </pre><h2>See also<a name="12"></a></h2> 59 59 <p><a href="NXT_SetInputMode.html">NXT_SetInputMode</a>, <a href="checkStatusByte.html">checkStatusByte</a>, <a href="NXT_LSWrite.html">NXT_LSWrite</a>, <a href="NXT_LSRead.html">NXT_LSRead</a></p> … … 65 65 <li><b>Date:</b> 2007/10/15 66 66 </li> 67 <li><b>Copyright:</b> 2007 , RWTH Aachen University67 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 68 68 </li> 69 69 </ul> … … 93 93 % serial handle on a PC system and a file handle on a Linux system. 94 94 %% 95 % If no Bluetooth handle is specified the default one (| BT_GetDefaultHandle|) is used.95 % If no Bluetooth handle is specified the default one (|COM_GetDefaultNXT|) is used. 96 96 %% 97 97 % For more details see the official LEGO Mindstorms communication protocol. … … 111 111 [BytesReady status] = NXT_LSGetStatus(SENSOR_3); 112 112 %% 113 bt_handle = BT_OpenHandle('bluetooth.ini','check');113 handle = COM_OpenNXT('bluetooth.ini','check'); 114 114 NXT_SetInputMode(SENSOR_1, 'LOWSPEED_9V', 'RAWMODE', 'dontreply'); 115 115 % note that status can contain errorsmessages, use checkStatusByte 116 [BytesReady status] = NXT_LSGetStatus(SENSOR_1, bt_handle);116 [BytesReady status] = NXT_LSGetStatus(SENSOR_1, handle); 117 117 %% 118 118 %% See also … … 124 124 % * *Author:* Linus Atorf (see AUTHORS) 125 125 % * *Date:* 2007/10/15 126 % * *Copyright:* 2007 , RWTH Aachen University126 % * *Copyright:* 2007-2008, RWTH Aachen University 127 127 % 128 128 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/NXT_LSRead.html
r3 r254 12 12 <title>NXT_LSRead</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_NXT_LSRead"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 41 41 <p><tt>[data BytesRead] = NXT_LSRead(port, handle)</tt> uses the given Bluetooth connection <tt>handle</tt>. This should be a serial handle on a PC system and a file handle on a Linux system. 42 42 </p> 43 <p>If no Bluetooth handle is specified the default one (<tt> BT_GetDefaultHandle</tt>) is used.43 <p>If no Bluetooth handle is specified the default one (<tt>COM_GetDefaultNXT</tt>) is used. 44 44 </p> 45 45 <p>For more details see the official LEGO Mindstorms communication protocol.</p> … … 50 50 <p>Before using LS commands, the sensor mode has to be set to <tt>LOWSPEED_9V</tt> using the NXT_SetInputMode command. 51 51 </p> 52 <h2>Examples<a name="10"></a></h2><pre class="codeinput"> bt_handle = BT_OpenHandle(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>);52 <h2>Examples<a name="10"></a></h2><pre class="codeinput"> handle = COM_OpenNXT(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>); 53 53 54 54 NXT_SetInputMode(SENSOR_1, <span class="string">'LOWSPEED_9V'</span>, <span class="string">'RAWMODE'</span>, <span class="string">'dontreply'</span>); 55 55 <span class="comment">% usually we would use NXT_LSWrite before, to request some sort of reply</span> 56 [data BytesRead] = NXT_LSRead(SENSOR_1, bt_handle);56 [data BytesRead] = NXT_LSRead(SENSOR_1, handle); 57 57 </pre><h2>See also<a name="11"></a></h2> 58 58 <p><a href="NXT_SetInputMode.html">NXT_SetInputMode</a>, <a href="NXT_LSWrite.html">NXT_LSWrite</a>, <a href="NXT_LSGetStatus.html">NXT_LSGetStatus</a></p> … … 64 64 <li><b>Date:</b> 2007/10/15 65 65 </li> 66 <li><b>Copyright:</b> 2007 , RWTH Aachen University66 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 67 67 </li> 68 68 </ul> … … 90 90 % serial handle on a PC system and a file handle on a Linux system. 91 91 %% 92 % If no Bluetooth handle is specified the default one (| BT_GetDefaultHandle|) is used.92 % If no Bluetooth handle is specified the default one (|COM_GetDefaultNXT|) is used. 93 93 %% 94 94 %% … … 106 106 %% 107 107 %% Examples 108 bt_handle = BT_OpenHandle('bluetooth.ini','check');108 handle = COM_OpenNXT('bluetooth.ini','check'); 109 109 110 110 NXT_SetInputMode(SENSOR_1, 'LOWSPEED_9V', 'RAWMODE', 'dontreply'); 111 111 % usually we would use NXT_LSWrite before, to request some sort of reply 112 [data BytesRead] = NXT_LSRead(SENSOR_1, bt_handle);112 [data BytesRead] = NXT_LSRead(SENSOR_1, handle); 113 113 %% 114 114 %% See also … … 120 120 % * *Author:* Linus Atorf (see AUTHORS) 121 121 % * *Date:* 2007/10/15 122 % * *Copyright:* 2007 , RWTH Aachen University122 % * *Copyright:* 2007-2008, RWTH Aachen University 123 123 % 124 124 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/NXT_LSWrite.html
r3 r254 12 12 <title>NXT_LSWrite</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_NXT_LSWrite"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 41 41 <p><tt>NXT_LSWrite(port, RXLength, data, ReplyMode, handle)</tt> uses the given Bluetooth connection <tt>handle</tt>. This should be a serial handle on a PC system and a file handle on a Linux system. 42 42 </p> 43 <p>If no Bluetooth handle is specified the default one (<tt> BT_GetDefaultHandle</tt>) is used.43 <p>If no Bluetooth handle is specified the default one (<tt>COM_GetDefaultNXT</tt>) is used. 44 44 </p> 45 45 <p>For more details see the official LEGO Mindstorms communication protocol.</p> … … 51 51 </p> 52 52 <h2>Example<a name="10"></a></h2><pre class="codeinput"> RequestLen = 1; 53 I2Cdata = hex2dec([<span class="string">'02'</span>; <span class="string">'42'</span>]); <span class="comment">% specific ultrasonic I& #65533;C command</span>53 I2Cdata = hex2dec([<span class="string">'02'</span>; <span class="string">'42'</span>]); <span class="comment">% specific ultrasonic I²C command</span> 54 54 55 bt_handle = BT_OpenHandle(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>);55 handle = COM_OpenNXT(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>); 56 56 NXT_SetInputMode(SENSOR_1, <span class="string">'LOWSPEED_9V'</span>, <span class="string">'RAWMODE'</span>, <span class="string">'dontreply'</span>); 57 57 58 NXT_LSWrite(SENSOR_1, RequestLen, I2Cdata, <span class="string">'dontreply'</span>, bt_handle);58 NXT_LSWrite(SENSOR_1, RequestLen, I2Cdata, <span class="string">'dontreply'</span>, handle); 59 59 </pre><h2>See also<a name="11"></a></h2> 60 60 <p><a href="NXT_SetInputMode.html">NXT_SetInputMode</a>, <a href="NXT_LSRead.html">NXT_LSRead</a>, <a href="NXT_LSGetStatus.html">NXT_LSGetStatus</a></p> … … 66 66 <li><b>Date:</b> 2007/10/15 67 67 </li> 68 <li><b>Copyright:</b> 2007 , RWTH Aachen University68 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 69 69 </li> 70 70 </ul> … … 94 94 % |handle|. This should be a serial handle on a PC system and a file handle on a Linux system. 95 95 %% 96 % If no Bluetooth handle is specified the default one (| BT_GetDefaultHandle|) is used.96 % If no Bluetooth handle is specified the default one (|COM_GetDefaultNXT|) is used. 97 97 %% 98 98 % For more details see the official LEGO Mindstorms communication protocol. … … 110 110 %% Example 111 111 RequestLen = 1; 112 I2Cdata = hex2dec(['02'; '42']); % specific ultrasonic I ÿC command112 I2Cdata = hex2dec(['02'; '42']); % specific ultrasonic I²C command 113 113 114 bt_handle = BT_OpenHandle('bluetooth.ini','check');114 handle = COM_OpenNXT('bluetooth.ini','check'); 115 115 NXT_SetInputMode(SENSOR_1, 'LOWSPEED_9V', 'RAWMODE', 'dontreply'); 116 116 117 NXT_LSWrite(SENSOR_1, RequestLen, I2Cdata, 'dontreply', bt_handle);117 NXT_LSWrite(SENSOR_1, RequestLen, I2Cdata, 'dontreply', handle); 118 118 %% 119 119 %% See also … … 125 125 % * *Author:* Linus Atorf (see AUTHORS) 126 126 % * *Date:* 2007/10/15 127 % * *Copyright:* 2007 , RWTH Aachen University127 % * *Copyright:* 2007-2008, RWTH Aachen University 128 128 % 129 129 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/NXT_PlayTone.html
r3 r254 12 12 <title>NXT_PlayTone</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_NXT_PlayTone"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 35 35 <h2>Syntax<a name="1"></a></h2> 36 36 <p><tt>NXT_PlayTone(frequency, duration)</tt></p> 37 <p><tt>NXT_PlayTone(frequency, duration, bt_handle)</tt></p>37 <p><tt>NXT_PlayTone(frequency, duration, handle)</tt></p> 38 38 <h2>Description<a name="3"></a></h2> 39 39 <p><tt>NXT_PlayTone(frequency, duration)</tt> plays a tone of the <tt>frequency</tt> in Hz (200 - 14000Hz) and the <tt>duration</tt> in milli seconds. 40 40 </p> 41 <p><tt>NXT_PlayTone(frequency, duration, bt_handle)</tt> sends the play tone command over the specific Bluetooth handle (serial handle (PC) / file handle (Linux)).41 <p><tt>NXT_PlayTone(frequency, duration, handle)</tt> sends the play tone command over the specific NXT handle (e.g. struct containing a serial handle (PC) / file handle (Linux)). 42 42 </p> 43 <p>If no Bluetooth handle is specified the default one (<tt>BT_GetDefaultHandle</tt>) is used.43 <p>If no NXT handle is specified the default one (<tt>COM_GetDefaultNXT</tt>) is used. 44 44 </p> 45 45 <p>For more details see the official LEGO Mindstorms communication protocol.</p> 46 46 <h2>Examples<a name="7"></a></h2><pre class="codeinput"> NXT_PlayTone(440, 100); 47 </pre><pre class="codeinput"> bt_handle = BT_OpenHandle(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>);48 BT_SetDefaultHandle(bt_handle);47 </pre><pre class="codeinput"> handle = COM_OpenNXT(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>); 48 COM_SetDefaultNXT(handle); 49 49 NXT_PlayTone(1200, 120); 50 50 </pre><h2>See also<a name="9"></a></h2> 51 <p><a href=" BT_GetDefaultHandle.html">BT_GetDefaultHandle</a></p>51 <p><a href="COM_GetDefaultNXT.html">COM_GetDefaultNXT</a></p> 52 52 <h2>Signature<a name="10"></a></h2> 53 53 <div> … … 57 57 <li><b>Date:</b> 2007/10/15 58 58 </li> 59 <li><b>Copyright:</b> 2007 , RWTH Aachen University59 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 60 60 </li> 61 61 </ul> … … 72 72 % |NXT_PlayTone(frequency, duration)| 73 73 %% 74 % |NXT_PlayTone(frequency, duration, bt_handle)|74 % |NXT_PlayTone(frequency, duration, handle)| 75 75 %% 76 76 %% Description … … 78 78 % |duration| in milli seconds. 79 79 %% 80 % |NXT_PlayTone(frequency, duration, bt_handle)| sends the play tone command over the specific81 % Bluetooth handle (serial handle (PC) / file handle (Linux)).80 % |NXT_PlayTone(frequency, duration, handle)| sends the play tone command over the specific 81 % NXT handle (e.g. struct containing a serial handle (PC) / file handle (Linux)). 82 82 %% 83 % If no Bluetooth handle is specified the default one (|BT_GetDefaultHandle|) is used.83 % If no NXT handle is specified the default one (|COM_GetDefaultNXT|) is used. 84 84 %% 85 85 % For more details see the official LEGO Mindstorms communication protocol. … … 88 88 NXT_PlayTone(440, 100); 89 89 %% 90 bt_handle = BT_OpenHandle('bluetooth.ini','check');91 BT_SetDefaultHandle(bt_handle);90 handle = COM_OpenNXT('bluetooth.ini','check'); 91 COM_SetDefaultNXT(handle); 92 92 NXT_PlayTone(1200, 120); 93 93 %% 94 94 %% See also 95 % BT_GetDefaultHandle95 % COM_GetDefaultNXT 96 96 %% 97 97 %% Signature … … 99 99 % * *Author:* Linus Atorf (see AUTHORS) 100 100 % * *Date:* 2007/10/15 101 % * *Copyright:* 2007 , RWTH Aachen University101 % * *Copyright:* 2007-2008, RWTH Aachen University 102 102 % 103 103 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/NXT_ResetInputScaledValue.html
r3 r254 12 12 <title>NXT_ResetInputScaledValue</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_NXT_ResetInputScaledValue"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 35 35 <h2>Syntax<a name="1"></a></h2> 36 36 <p><tt>NXT_ResetInputScaledValue(port)</tt></p> 37 <p><tt>NXT_ResetInputScaledValue(port, bt_handle)</tt></p>37 <p><tt>NXT_ResetInputScaledValue(port, handle)</tt></p> 38 38 <h2>Description<a name="3"></a></h2> 39 39 <p><tt>NXT_ResetInputScaledValue(port)</tt> resets the sensors <tt>ScaledVal</tt> back to <tt>0</tt> of the given sensor <tt>port</tt>. The value <tt>port</tt> can be addressed by the symbolic constants <tt>SENSOR_1</tt>, <tt>SENSOR_2</tt>, <tt>SENSOR_3</tt> and <tt>SENSOR_4</tt> analog to the labeling on the NXT Brick. The <tt>ScaledVal</tt> is set by function <tt>NXT_SetInputMode</tt>. 40 40 </p> 41 <p><tt>NXT_ResetInputScaledValue(port, bt_handle)</tt> uses the given Bluetooth connection <tt>handle</tt>. This should bea serial handle on a PC system and a file handle on a Linux system.41 <p><tt>NXT_ResetInputScaledValue(port, handle)</tt> uses the given NXT connection <tt>handle</tt>. This should be a struct containing a serial handle on a PC system and a file handle on a Linux system. 42 42 </p> 43 <p>If no Bluetooth handle is specified the default one (<tt>BT_GetDefaultHandle</tt>) is used.43 <p>If no NXT handle is specified the default one (<tt>COM_GetDefaultNXT</tt>) is used. 44 44 </p> 45 45 <p>For more details see the official LEGO Mindstorms communication protocol.</p> … … 47 47 </p> 48 48 <h2>Examples<a name="8"></a></h2><pre class="codeinput"> NXT_ResetInputScaledValue(SENSOR_2); 49 </pre><pre class="codeinput"> bt_handle = BT_OpenHandle(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>);50 NXT_ResetInputScaledValue(SENSOR_4, bt_handle);49 </pre><pre class="codeinput"> handle = COM_OpenNXT(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>); 50 NXT_ResetInputScaledValue(SENSOR_4, handle); 51 51 </pre><h2>See also<a name="10"></a></h2> 52 52 <p><a href="NXT_SetInputMode.html">NXT_SetInputMode</a>, <a href="NXT_GetInputValues.html">NXT_GetInputValues</a></p> … … 58 58 <li><b>Date:</b> 2007/10/15 59 59 </li> 60 <li><b>Copyright:</b> 2007 , RWTH Aachen University60 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 61 61 </li> 62 62 </ul> … … 73 73 % |NXT_ResetInputScaledValue(port)| 74 74 %% 75 % |NXT_ResetInputScaledValue(port, bt_handle)|75 % |NXT_ResetInputScaledValue(port, handle)| 76 76 %% 77 77 %% Description … … 81 81 % function |NXT_SetInputMode|. 82 82 %% 83 % |NXT_ResetInputScaledValue(port, bt_handle)| uses the given Bluetoothconnection |handle|. This should be a84 % s erial handle on a PC system and a file handle on a Linux system.83 % |NXT_ResetInputScaledValue(port, handle)| uses the given NXT connection |handle|. This should be a 84 % struct containing a serial handle on a PC system and a file handle on a Linux system. 85 85 %% 86 % If no Bluetooth handle is specified the default one (|BT_GetDefaultHandle|) is used.86 % If no NXT handle is specified the default one (|COM_GetDefaultNXT|) is used. 87 87 %% 88 88 % For more details see the official LEGO Mindstorms communication protocol. … … 96 96 NXT_ResetInputScaledValue(SENSOR_2); 97 97 %% 98 bt_handle = BT_OpenHandle('bluetooth.ini','check');99 NXT_ResetInputScaledValue(SENSOR_4, bt_handle);98 handle = COM_OpenNXT('bluetooth.ini','check'); 99 NXT_ResetInputScaledValue(SENSOR_4, handle); 100 100 %% 101 101 %% See also … … 106 106 % * *Author:* Linus Atorf (see AUTHORS) 107 107 % * *Date:* 2007/10/15 108 % * *Copyright:* 2007 , RWTH Aachen University108 % * *Copyright:* 2007-2008, RWTH Aachen University 109 109 % 110 110 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/NXT_ResetMotorPosition.html
r3 r254 12 12 <title>NXT_ResetMotorPosition</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_NXT_ResetMotorPosition"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 35 35 <h2>Syntax<a name="1"></a></h2> 36 36 <p><tt>NXT_ResetMotorPosition(port, isRelative)</tt></p> 37 <p><tt>NXT_ResetMotorPosition(port, isRelative, bt_handle)</tt></p>37 <p><tt>NXT_ResetMotorPosition(port, isRelative, handle)</tt></p> 38 38 <h2>Description<a name="3"></a></h2> 39 39 <p><tt>NXT_ResetMotorPosition(port, isRelative)</tt> resets the NXT internal counter of the given motor <tt>port</tt>. The value <tt>port</tt> can be addressed by the symbolic constants <tt>MOTOR_A</tt>, <tt>MOTOR_B</tt>, <tt>MOTOR_C</tt> analog to the labeling on the NXT Brick. The boolean flag <tt>isRelative</tt> determines the relative (BlockTachoCount) or absolute counter (RotationCount). 40 40 </p> 41 <p><tt>NXT_ResetMotorPosition(port, bt_handle)</tt> uses the given Bluetooth connection <tt>handle</tt>. This should bea serial handle on a PC system and a file handle on a Linux system.41 <p><tt>NXT_ResetMotorPosition(port, handle)</tt> uses the given NXT connection <tt>handle</tt>. This should be a struct containing a serial handle on a PC system and a file handle on a Linux system. 42 42 </p> 43 <p>If no Bluetooth handle is specified the default one (<tt>BT_GetDefaultHandle</tt>) is used.43 <p>If no NXT handle is specified the default one (<tt>COM_GetDefaultNXT</tt>) is used. 44 44 </p> 45 45 <p>For more details see the official LEGO Mindstorms communication protocol.</p> 46 46 <h2>Examples<a name="7"></a></h2><pre class="codeinput"> NXT_ResetMotorPosition(MOTOR_B, true); 47 </pre><pre class="codeinput"> bt_handle = BT_OpenHandle(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>);48 NXT_ResetMotorPosition(MOTOR_A, false, bt_handle);47 </pre><pre class="codeinput"> handle = COM_OpenNXT(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>); 48 NXT_ResetMotorPosition(MOTOR_A, false, handle); 49 49 </pre><h2>See also<a name="9"></a></h2> 50 <p><a href=" BT_GetDefaultHandle.html">BT_GetDefaultHandle</a></p>50 <p><a href="COM_GetDefaultNXT.html">COM_GetDefaultNXT</a></p> 51 51 <h2>Signature<a name="10"></a></h2> 52 52 <div> … … 56 56 <li><b>Date:</b> 2007/10/15 57 57 </li> 58 <li><b>Copyright:</b> 2007 , RWTH Aachen University58 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 59 59 </li> 60 60 </ul> … … 71 71 % |NXT_ResetMotorPosition(port, isRelative)| 72 72 %% 73 % |NXT_ResetMotorPosition(port, isRelative, bt_handle)|73 % |NXT_ResetMotorPosition(port, isRelative, handle)| 74 74 %% 75 75 %% Description … … 79 79 % relative (BlockTachoCount) or absolute counter (RotationCount). 80 80 %% 81 % |NXT_ResetMotorPosition(port, bt_handle)| uses the given Bluetoothconnection |handle|. This should be a82 % s erial handle on a PC system and a file handle on a Linux system.81 % |NXT_ResetMotorPosition(port, handle)| uses the given NXT connection |handle|. This should be a 82 % struct containing a serial handle on a PC system and a file handle on a Linux system. 83 83 %% 84 % If no Bluetooth handle is specified the default one (|BT_GetDefaultHandle|) is used.84 % If no NXT handle is specified the default one (|COM_GetDefaultNXT|) is used. 85 85 %% 86 86 % For more details see the official LEGO Mindstorms communication protocol. … … 89 89 NXT_ResetMotorPosition(MOTOR_B, true); 90 90 %% 91 bt_handle = BT_OpenHandle('bluetooth.ini','check');92 NXT_ResetMotorPosition(MOTOR_A, false, bt_handle);91 handle = COM_OpenNXT('bluetooth.ini','check'); 92 NXT_ResetMotorPosition(MOTOR_A, false, handle); 93 93 %% 94 94 %% See also 95 % BT_GetDefaultHandle95 % COM_GetDefaultNXT 96 96 %% 97 97 %% Signature … … 99 99 % * *Author:* Linus Atorf (see AUTHORS) 100 100 % * *Date:* 2007/10/15 101 % * *Copyright:* 2007 , RWTH Aachen University101 % * *Copyright:* 2007-2008, RWTH Aachen University 102 102 % 103 103 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/NXT_SendKeepAlive.html
r3 r254 12 12 <title>NXT_SendKeepAlive</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_NXT_SendKeepAlive"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 35 35 <h2>Syntax<a name="1"></a></h2> 36 36 <p><tt>[status SleepTimeLimit] = NXT_SendKeepAlive(ReplyMode)</tt></p> 37 <p><tt>[status SleepTimeLimit] = NXT_SendKeepAlive(ReplyMode, bt_handle)</tt></p>37 <p><tt>[status SleepTimeLimit] = NXT_SendKeepAlive(ReplyMode, handle)</tt></p> 38 38 <h2>Description<a name="3"></a></h2> 39 39 <p><tt>[status SleepTimeLimit] = NXT_SendKeepAlive(ReplyMode)</tt> sends a KeepAlive packet to the NXT Brick to get the current sleep time limit of the Brick in milliseconds. By the <tt>ReplyMode</tt> one can request an acknowledgement for the packet transmission. The two strings <tt>'reply'</tt> and <tt>'dontreply'</tt> are valid. <tt>status</tt> indicates if an error occures by the packet transmission. Function <tt>checkStatusBytes</tt> is interpreting this information per default. The value <tt>SleepTimeLimit</tt> contains the time in milliseconds after the NXT brick will turn off automatically. The variable will only be set if <tt>ReplyMode</tt> is <tt>'reply'</tt>. The sleep time limit setting can only be modified using the on-screen-menu on the brick itself. … … 47 47 answer: You obviously didn't use <tt>'reply'</tt> and still tried to get an answer. 48 48 </p> 49 <p><tt>[status SleepTimeLimit] = NXT_SendKeepAlive(ReplyMode, bt_handle)</tt> uses the given Bluetooth connection <tt>handle</tt>. This should bea serial handle on a PC system and a file handle on a Linux system.49 <p><tt>[status SleepTimeLimit] = NXT_SendKeepAlive(ReplyMode, handle)</tt> uses the given NXT connection <tt>handle</tt>. This should be a struct containing a serial handle on a PC system and a file handle on a Linux system. 50 50 </p> 51 <p>If no Bluetooth handle is specified the default one (<tt>BT_GetDefaultHandle</tt>) is used.51 <p>If no NXT handle is specified the default one (<tt>COM_GetDefaultNXT</tt>) is used. 52 52 </p> 53 53 <p>For more details see the official LEGO Mindstorms communication protocol.</p> 54 54 <p><b>Note:</b></p> 55 <p>This function is also used if you call <tt> BT_OpenHandle()</tt> with the optional <tt>'check'</tt> parameter. Then a keep-alive packet is send and the answer will be received to check for a correctly working bidirectional55 <p>This function is also used if you call <tt>COM_OpenNXT()</tt> with the optional <tt>'check'</tt> parameter. Then a keep-alive packet is send and the answer will be received to check for a correctly working bidirectional 56 56 bluetooth connection. 57 57 </p> 58 58 <h2>Examples<a name="11"></a></h2><pre class="codeinput"> [status SleepTimeLimit] = NXT_SendKeepAlive(<span class="string">'reply'</span>); 59 59 </pre><pre class="codeinput"> NXT_SendKeepAlive(<span class="string">'dontreply'</span>); 60 </pre><pre class="codeinput"> bt_handle = BT_OpenHandle(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>);61 [status SleepTimeLimit] = NXT_SendKeepAlive(<span class="string">'reply'</span>, bt_handle);60 </pre><pre class="codeinput"> handle = COM_OpenNXT(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>); 61 [status SleepTimeLimit] = NXT_SendKeepAlive(<span class="string">'reply'</span>, handle); 62 62 </pre><h2>See also<a name="14"></a></h2> 63 <p><a href=" BT_OpenHandle.html">BT_OpenHandle</a>, <a href="NXT_GetBatteryLevel.html">NXT_GetBatteryLevel</a></p>63 <p><a href="COM_OpenNXT.html">COM_OpenNXT</a>, <a href="NXT_GetBatteryLevel.html">NXT_GetBatteryLevel</a></p> 64 64 <h2>Signature<a name="15"></a></h2> 65 65 <div> … … 69 69 <li><b>Date:</b> 2007/10/15 70 70 </li> 71 <li><b>Copyright:</b> 2007 , RWTH Aachen University71 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 72 72 </li> 73 73 </ul> … … 84 84 % |[status SleepTimeLimit] = NXT_SendKeepAlive(ReplyMode)| 85 85 %% 86 % |[status SleepTimeLimit] = NXT_SendKeepAlive(ReplyMode, bt_handle)|86 % |[status SleepTimeLimit] = NXT_SendKeepAlive(ReplyMode, handle)| 87 87 %% 88 88 %% Description … … 106 106 % |'reply'| and still tried to get an answer. 107 107 %% 108 % |[status SleepTimeLimit] = NXT_SendKeepAlive(ReplyMode, bt_handle)| uses the given Bluetooth109 % connection |handle|. This should be a s erial handle on a PC system and a file handle on a Linux108 % |[status SleepTimeLimit] = NXT_SendKeepAlive(ReplyMode, handle)| uses the given NXT 109 % connection |handle|. This should be a struct containing a serial handle on a PC system and a file handle on a Linux 110 110 % system. 111 111 %% 112 % If no Bluetooth handle is specified the default one (|BT_GetDefaultHandle|) is used.112 % If no NXT handle is specified the default one (|COM_GetDefaultNXT|) is used. 113 113 %% 114 114 % For more details see the official LEGO Mindstorms communication protocol. … … 117 117 % *Note:* 118 118 %% 119 % This function is also used if you call | BT_OpenHandle()| with the optional |'check'| parameter. Then119 % This function is also used if you call |COM_OpenNXT()| with the optional |'check'| parameter. Then 120 120 % a keep-alive packet is send and the answer will be received to check for a correctly working 121 121 % bidirectional bluetooth connection. … … 126 126 NXT_SendKeepAlive('dontreply'); 127 127 %% 128 bt_handle = BT_OpenHandle('bluetooth.ini','check');129 [status SleepTimeLimit] = NXT_SendKeepAlive('reply', bt_handle);128 handle = COM_OpenNXT('bluetooth.ini','check'); 129 [status SleepTimeLimit] = NXT_SendKeepAlive('reply', handle); 130 130 %% 131 131 %% See also 132 % BT_OpenHandle, NXT_GetBatteryLevel132 % COM_OpenNXT, NXT_GetBatteryLevel 133 133 %% 134 134 %% Signature … … 136 136 % * *Author:* Linus Atorf (see AUTHORS) 137 137 % * *Date:* 2007/10/15 138 % * *Copyright:* 2007 , RWTH Aachen University138 % * *Copyright:* 2007-2008, RWTH Aachen University 139 139 % 140 140 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/NXT_SetBrickName.html
r3 r254 12 12 <title>NXT_SetBrickName</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_NXT_SetBrickName"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 35 35 <h2>Syntax<a name="1"></a></h2> 36 36 <p><tt>[NXT_SetBrickName(name)</tt></p> 37 <p><tt>NXT_SetBrickName(name, bt_handle)</tt></p>37 <p><tt>NXT_SetBrickName(name, handle)</tt></p> 38 38 <h2>Description<a name="3"></a></h2> 39 39 <p><tt>NXT_SetBrickName(name)</tt> sets a new <tt>name</tt> for the NXT Brick. The value <tt>name</tt> is a string value and determines the new name of the Brick. The maximum length is limited to 15 characters. 40 40 </p> 41 <p><tt>NXT_SetBrickName(name, bt_handle)</tt> uses the given Bluetooth connection <tt>handle</tt>. This should bea serial handle on a PC system and a file handle on a Linux system.41 <p><tt>NXT_SetBrickName(name, handle)</tt> uses the given NXT connection <tt>handle</tt>. This should be a struct containing a serial handle on a PC system and a file handle on a Linux system. 42 42 </p> 43 <p>If no Bluetooth handle is specified the default one (<tt>BT_GetDefaultHandle</tt>) is used.43 <p>If no NXT handle is specified the default one (<tt>COM_GetDefaultNXT</tt>) is used. 44 44 </p> 45 45 <p>For more details see the official LEGO Mindstorms communication protocol.</p> 46 46 <h2>Examples<a name="7"></a></h2><pre class="codeinput"> NXT_SetBrickName(<span class="string">'MyRobot'</span>); 47 </pre><pre class="codeinput"> bt_handle = BT_OpenHandle(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>);48 NXT_SetBrickName(<span class="string">'Mindy'</span>, bt_handle);47 </pre><pre class="codeinput"> handle = COM_OpenNXT(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>); 48 NXT_SetBrickName(<span class="string">'Mindy'</span>, handle); 49 49 </pre><h2>See also<a name="9"></a></h2> 50 <p><a href=" BT_GetDefaultHandle.html">BT_GetDefaultHandle</a>, <a href="NXT_SendKeepAlive.html">NXT_SendKeepAlive</a>, <a href="NXT_GetBatteryLevel.html">NXT_GetBatteryLevel</a></p>50 <p><a href="COM_GetDefaultNXT.html">COM_GetDefaultNXT</a>, <a href="NXT_SendKeepAlive.html">NXT_SendKeepAlive</a>, <a href="NXT_GetBatteryLevel.html">NXT_GetBatteryLevel</a></p> 51 51 <h2>Signature<a name="10"></a></h2> 52 52 <div> … … 56 56 <li><b>Date:</b> 2007/10/15 57 57 </li> 58 <li><b>Copyright:</b> 2007 , RWTH Aachen University58 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 59 59 </li> 60 60 </ul> … … 71 71 % |[NXT_SetBrickName(name)| 72 72 %% 73 % |NXT_SetBrickName(name, bt_handle)|73 % |NXT_SetBrickName(name, handle)| 74 74 %% 75 75 %% Description … … 77 77 % and determines the new name of the Brick. The maximum length is limited to 15 characters. 78 78 %% 79 % |NXT_SetBrickName(name, bt_handle)| uses the given Bluetoothconnection |handle|. This should be80 % a s erial handle on a PC system and a file handle on a Linux system.79 % |NXT_SetBrickName(name, handle)| uses the given NXT connection |handle|. This should be 80 % a struct containing a serial handle on a PC system and a file handle on a Linux system. 81 81 %% 82 % If no Bluetooth handle is specified the default one (|BT_GetDefaultHandle|) is used.82 % If no NXT handle is specified the default one (|COM_GetDefaultNXT|) is used. 83 83 %% 84 84 % For more details see the official LEGO Mindstorms communication protocol. … … 87 87 NXT_SetBrickName('MyRobot'); 88 88 %% 89 bt_handle = BT_OpenHandle('bluetooth.ini','check');90 NXT_SetBrickName('Mindy', bt_handle);89 handle = COM_OpenNXT('bluetooth.ini','check'); 90 NXT_SetBrickName('Mindy', handle); 91 91 %% 92 92 %% See also 93 % BT_GetDefaultHandle, NXT_SendKeepAlive, NXT_GetBatteryLevel93 % COM_GetDefaultNXT, NXT_SendKeepAlive, NXT_GetBatteryLevel 94 94 %% 95 95 %% Signature … … 97 97 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 98 98 % * *Date:* 2007/10/15 99 % * *Copyright:* 2007 , RWTH Aachen University99 % * *Copyright:* 2007-2008, RWTH Aachen University 100 100 % 101 101 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/NXT_SetInputMode.html
r3 r254 12 12 <title>NXT_SetInputMode</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_NXT_SetInputMode"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 35 35 <h2>Syntax<a name="1"></a></h2> 36 36 <p><tt>status = NXT_SetInputMode(port, SensorTypeDesc, SensorModeDesc, ReplyMode)</tt></p> 37 <p><tt>status = NXT_SetInputMode(port, SensorTypeDesc, SensorModeDesc, ReplyMode, bt_handle)</tt></p>37 <p><tt>status = NXT_SetInputMode(port, SensorTypeDesc, SensorModeDesc, ReplyMode, handle)</tt></p> 38 38 <h2>Description<a name="3"></a></h2> 39 39 <p><tt>status = NXT_SetInputMode(InputPort, SensorTypeDesc, SensorModeDesc, ReplyMode)</tt> sets mode, configures and initializes the given sensor <tt>port</tt> to be ready to be read out. The value <tt>port</tt> can be addressed by the symbolic constants <tt>SENSOR_1</tt>, <tt>SENSOR_2</tt>, <tt>SENSOR_3</tt> and <tt>SENSOR_4</tt> analog to the labeling on the NXT Brick. The value <tt>SensorTypeDesc</tt> determines the sensor type. See all valid types below. <tt>SensorModeDesc</tt> represents the sensor mode. It specifies what mode the <tt>.ScaledVal</tt> from <tt>NXT_GetInputValues</tt> should be. Valid parameters see below. By the <tt>ReplyMode</tt> one can request an acknowledgement for the packet transmission. The two strings <tt>'reply'</tt> and <tt>'dontreply'</tt> are valid. The return value <tt>status</tt> indicates if an error occures by the packet transmission. 40 40 </p> 41 <p><tt>status = NXT_SetInputMode(InputPort, SensorTypeDesc, SensorModeDesc, ReplyMode, bt_handle)</tt> uses the given Bluetooth connection <tt>handle</tt>. This should bea serial handle on a PC system and a file handle on a Linux system.42 </p> 43 <p>If no Bluetooth handle is specified the default one (<tt>BT_GetDefaultHandle</tt>) is used.41 <p><tt>status = NXT_SetInputMode(InputPort, SensorTypeDesc, SensorModeDesc, ReplyMode, handle)</tt> uses the given NXT connection <tt>handle</tt>. This should be a struct containing a serial handle on a PC system and a file handle on a Linux system. 42 </p> 43 <p>If no NXT handle is specified the default one (<tt>COM_GetDefaultNXT</tt>) is used. 44 44 </p> 45 45 <p><b>Input:</b></p> … … 94 94 <p>For more details see the official LEGO Mindstorms communication protocol.</p> 95 95 <h2>Examples<a name="32"></a></h2><pre class="codeinput"> status = NXT_SetInputMode(SENSOR_1, <span class="string">'SOUND_DB'</span>, <span class="string">'RAWMODE'</span>, <span class="string">'dontreply'</span>); 96 </pre><pre class="codeinput"> bt_handle = BT_OpenHandle(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>);97 status = NXT_SetInputMode(SENSOR_3, <span class="string">'LIGHT_ACTIVE'</span>, <span class="string">'RAWMODE'</span>, <span class="string">'dontreply'</span>, bt_handle);96 </pre><pre class="codeinput"> handle = COM_OpenNXT(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>); 97 status = NXT_SetInputMode(SENSOR_3, <span class="string">'LIGHT_ACTIVE'</span>, <span class="string">'RAWMODE'</span>, <span class="string">'dontreply'</span>, handle); 98 98 </pre><h2>See also<a name="34"></a></h2> 99 99 <p><a href="NXT_GetInputValues.html">NXT_GetInputValues</a>, <a href="OpenLight.html">OpenLight</a>, <a href="OpenSound.html">OpenSound</a>, <a href="OpenSwitch.html">OpenSwitch</a>, <a href="OpenUltrasonic.html">OpenUltrasonic</a>, <a href="CloseSensor.html">CloseSensor</a>, <a href="SENSOR_1.html">SENSOR_1</a>, <a href="SENSOR_2.html">SENSOR_2</a>, <a href="SENSOR_3.html">SENSOR_3</a>, <a href="SENSOR_4.html">SENSOR_4</a></p> … … 105 105 <li><b>Date:</b> 2007/10/15 106 106 </li> 107 <li><b>Copyright:</b> 2007 , RWTH Aachen University107 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 108 108 </li> 109 109 </ul> … … 120 120 % |status = NXT_SetInputMode(port, SensorTypeDesc, SensorModeDesc, ReplyMode)| 121 121 %% 122 % |status = NXT_SetInputMode(port, SensorTypeDesc, SensorModeDesc, ReplyMode, bt_handle)|122 % |status = NXT_SetInputMode(port, SensorTypeDesc, SensorModeDesc, ReplyMode, handle)| 123 123 %% 124 124 %% Description … … 133 133 % by the packet transmission. 134 134 %% 135 % |status = NXT_SetInputMode(InputPort, SensorTypeDesc, SensorModeDesc, ReplyMode, bt_handle)|136 % uses the given Bluetooth connection |handle|. This should bea serial handle on a PC system and135 % |status = NXT_SetInputMode(InputPort, SensorTypeDesc, SensorModeDesc, ReplyMode, handle)| 136 % uses the given NXT connection |handle|. This should be a struct containing a serial handle on a PC system and 137 137 % a file handle on a Linux system. 138 138 %% 139 % If no Bluetooth handle is specified the default one (|BT_GetDefaultHandle|) is used.139 % If no NXT handle is specified the default one (|COM_GetDefaultNXT|) is used. 140 140 %% 141 141 %% … … 203 203 status = NXT_SetInputMode(SENSOR_1, 'SOUND_DB', 'RAWMODE', 'dontreply'); 204 204 %% 205 bt_handle = BT_OpenHandle('bluetooth.ini','check');206 status = NXT_SetInputMode(SENSOR_3, 'LIGHT_ACTIVE', 'RAWMODE', 'dontreply', bt_handle);205 handle = COM_OpenNXT('bluetooth.ini','check'); 206 status = NXT_SetInputMode(SENSOR_3, 'LIGHT_ACTIVE', 'RAWMODE', 'dontreply', handle); 207 207 %% 208 208 %% See also … … 213 213 % * *Author:* Linus Atorf (see AUTHORS) 214 214 % * *Date:* 2007/10/15 215 % * *Copyright:* 2007 , RWTH Aachen University215 % * *Copyright:* 2007-2008, RWTH Aachen University 216 216 % 217 217 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/NXT_SetOutputState.html
r3 r254 12 12 <title>NXT_SetOutputState</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_NXT_SetOutputState"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 41 41 </p> 42 42 <p><tt>status = NXT_SetOutputState(OutputPort, Power, IsMotorOn, IsBrake, RegModeName, TurnRatio, RunStateName, TachoLimit, ReplyMode, 43 bt_handle)</tt> uses the given Bluetoothconnection <tt>handle</tt>. This should be a serial handle on a PC system and a file handle on a Linux system.43 handle)</tt> uses the given NXT connection <tt>handle</tt>. This should be a serial handle on a PC system and a file handle on a Linux system. 44 44 </p> 45 45 <h2>Example<a name="5"></a></h2><pre class="codeinput"> NXT_SetOutputState(MOTOR_A,80,1,1,<span class="string">'SPEED'</span>,0,<span class="string">'RUNNING'</span>,360,<span class="string">'dontreply'</span>); … … 53 53 <li><b>Date:</b> 2007/10/15 54 54 </li> 55 <li><b>Copyright:</b> 2007 , RWTH Aachen University55 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 56 56 </li> 57 57 </ul> … … 81 81 %% 82 82 % |status = NXT_SetOutputState(OutputPort, Power, IsMotorOn, IsBrake, RegModeName, TurnRatio, 83 % RunStateName, TachoLimit, ReplyMode, bt_handle)| uses the given Bluetoothconnection |handle|.83 % RunStateName, TachoLimit, ReplyMode, handle)| uses the given NXT connection |handle|. 84 84 % This should be a serial handle on a PC system and a file handle on a Linux system. 85 85 %% … … 94 94 % * *Author:* Linus Atorf (see AUTHORS) 95 95 % * *Date:* 2007/10/15 96 % * *Copyright:* 2007 , RWTH Aachen University96 % * *Copyright:* 2007-2008, RWTH Aachen University 97 97 % 98 98 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/NXT_StartProgram.html
r3 r254 12 12 <title>NXT_StartProgram</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_NXT_StartProgram"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 35 35 <h2>Syntax<a name="1"></a></h2> 36 36 <p><tt>NXT_StartProgram(filename)</tt></p> 37 <p><tt>NXT_StartProgram(filename, bt_handle)</tt></p>37 <p><tt>NXT_StartProgram(filename, handle)</tt></p> 38 38 <h2>Description<a name="3"></a></h2> 39 39 <p><tt>NXT_StartProgram(filename)</tt> starts the embedded NXT Brick program determined by the string <tt>filename</tt>. The maximum length is limited to 15 characters. The file extension <tt>'.rxe'</tt> is added automatically if it was omitted. 40 40 </p> 41 <p><tt>NXT_SetBrickName(name, bt_handle)</tt> uses the given Bluetooth connection <tt>handle</tt>. This should bea serial handle on a PC system and a file handle on a Linux system.41 <p><tt>NXT_SetBrickName(name, handle)</tt> uses the given NXT connection <tt>handle</tt>. This should be a struct containing a serial handle on a PC system and a file handle on a Linux system. 42 42 </p> 43 <p>If no Bluetooth handle is specified the default one (<tt>BT_GetDefaultHandle</tt>) is used.43 <p>If no NXT handle is specified the default one (<tt>COM_GetDefaultNXT</tt>) is used. 44 44 </p> 45 45 <p>For more details see the official LEGO Mindstorms communication protocol.</p> 46 46 <h2>Examples<a name="7"></a></h2><pre class="codeinput"> NXT_StartProgram(<span class="string">'ResetCounter'</span>); 47 </pre><pre class="codeinput"> bt_handle = BT_OpenHandle(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>);48 NXT_StartProgram(<span class="string">'Demo.rxe'</span>, bt_handle);47 </pre><pre class="codeinput"> handle = COM_OpenNXT(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>); 48 NXT_StartProgram(<span class="string">'Demo.rxe'</span>, handle); 49 49 </pre><h2>See also<a name="9"></a></h2> 50 50 <p><a href="NXT_StopProgram.html">NXT_StopProgram</a></p> … … 56 56 <li><b>Date:</b> 2007/10/15 57 57 </li> 58 <li><b>Copyright:</b> 2007 , RWTH Aachen University58 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 59 59 </li> 60 60 </ul> … … 71 71 % |NXT_StartProgram(filename)| 72 72 %% 73 % |NXT_StartProgram(filename, bt_handle)|73 % |NXT_StartProgram(filename, handle)| 74 74 %% 75 75 %% Description … … 78 78 % extension |'.rxe'| is added automatically if it was omitted. 79 79 %% 80 % |NXT_SetBrickName(name, bt_handle)| uses the given Bluetoothconnection |handle|. This should be81 % a s erial handle on a PC system and a file handle on a Linux system.80 % |NXT_SetBrickName(name, handle)| uses the given NXT connection |handle|. This should be 81 % a struct containing a serial handle on a PC system and a file handle on a Linux system. 82 82 %% 83 % If no Bluetooth handle is specified the default one (|BT_GetDefaultHandle|) is used.83 % If no NXT handle is specified the default one (|COM_GetDefaultNXT|) is used. 84 84 %% 85 85 % For more details see the official LEGO Mindstorms communication protocol. … … 88 88 NXT_StartProgram('ResetCounter'); 89 89 %% 90 bt_handle = BT_OpenHandle('bluetooth.ini','check');91 NXT_StartProgram('Demo.rxe', bt_handle);90 handle = COM_OpenNXT('bluetooth.ini','check'); 91 NXT_StartProgram('Demo.rxe', handle); 92 92 %% 93 93 %% See also … … 98 98 % * *Author:* Alexander Behrens, Linus Atorf (see AUTHORS) 99 99 % * *Date:* 2007/10/15 100 % * *Copyright:* 2007 , RWTH Aachen University100 % * *Copyright:* 2007-2008, RWTH Aachen University 101 101 % 102 102 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/NXT_StopProgram.html
r3 r254 12 12 <title>NXT_StopProgram</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_NXT_StopProgram"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 35 35 <h2>Syntax<a name="1"></a></h2> 36 36 <p><tt>NXT_StopProgram()</tt></p> 37 <p><tt>NXT_StopProgram( bt_handle)</tt></p>37 <p><tt>NXT_StopProgram(handle)</tt></p> 38 38 <h2>Description<a name="3"></a></h2> 39 39 <p><tt>NXT_StopProgram()</tt> stops the current running embedded NXT Brick program. 40 40 </p> 41 <p><tt>NXT_StopProgram( bt_handle)</tt> uses the given Bluetooth connection <tt>handle</tt>. This should bea serial handle on a PC system and a file handle on a Linux system.41 <p><tt>NXT_StopProgram(handle)</tt> uses the given NXT connection <tt>handle</tt>. This should be a struct containing a serial handle on a PC system and a file handle on a Linux system. 42 42 </p> 43 <p>If no Bluetooth handle is specified the default one (<tt> BT_GetDefaultHandle</tt>) is used.43 <p>If no Bluetooth handle is specified the default one (<tt>COM_GetDefaultNXT</tt>) is used. 44 44 </p> 45 45 <p>For more details see the official LEGO Mindstorms communication protocol.</p> 46 46 <h2>Examples<a name="7"></a></h2><pre class="codeinput"> NXT_StopProgram(); 47 </pre><pre class="codeinput"> bt_handle = BT_OpenHandle(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>);48 NXT_StopProgram( bt_handle);47 </pre><pre class="codeinput"> handle = COM_OpenNXT(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>); 48 NXT_StopProgram(handle); 49 49 </pre><h2>See also<a name="9"></a></h2> 50 50 <p><a href="NXT_StartProgram.html">NXT_StartProgram</a></p> … … 56 56 <li><b>Date:</b> 2007/10/15 57 57 </li> 58 <li><b>Copyright:</b> 2007 , RWTH Aachen University58 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 59 59 </li> 60 60 </ul> … … 71 71 % |NXT_StopProgram()| 72 72 %% 73 % |NXT_StopProgram( bt_handle)|73 % |NXT_StopProgram(handle)| 74 74 %% 75 75 %% Description 76 76 % |NXT_StopProgram()| stops the current running embedded NXT Brick program. 77 77 %% 78 % |NXT_StopProgram( bt_handle)| uses the given Bluetoothconnection |handle|. This should be79 % a s erial handle on a PC system and a file handle on a Linux system.78 % |NXT_StopProgram(handle)| uses the given NXT connection |handle|. This should be 79 % a struct containing a serial handle on a PC system and a file handle on a Linux system. 80 80 %% 81 % If no Bluetooth handle is specified the default one (| BT_GetDefaultHandle|) is used.81 % If no Bluetooth handle is specified the default one (|COM_GetDefaultNXT|) is used. 82 82 %% 83 83 % For more details see the official LEGO Mindstorms communication protocol. … … 86 86 NXT_StopProgram(); 87 87 %% 88 bt_handle = BT_OpenHandle('bluetooth.ini','check');89 NXT_StopProgram( bt_handle);88 handle = COM_OpenNXT('bluetooth.ini','check'); 89 NXT_StopProgram(handle); 90 90 %% 91 91 %% See also … … 96 96 % * *Author:* Alexander Behrens, Linus Atorf (see AUTHORS) 97 97 % * *Date:* 2007/10/15 98 % * *Copyright:* 2007 , RWTH Aachen University98 % * *Copyright:* 2007-2008, RWTH Aachen University 99 99 % 100 100 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/OpenLight.html
r3 r254 12 12 <title>OpenLight</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_OpenLight"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 52 52 <li><b>Date:</b> 2007/10/15 53 53 </li> 54 <li><b>Copyright:</b> 2007 , RWTH Aachen University54 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 55 55 </li> 56 56 </ul> … … 89 89 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 90 90 % * *Date:* 2007/10/15 91 % * *Copyright:* 2007 , RWTH Aachen University91 % * *Copyright:* 2007-2008, RWTH Aachen University 92 92 % 93 93 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/OpenSound.html
r3 r254 12 12 <title>OpenSound</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_OpenSound"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 52 52 <li><b>Date:</b> 2007/10/15 53 53 </li> 54 <li><b>Copyright:</b> 2007 , RWTH Aachen University54 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 55 55 </li> 56 56 </ul> … … 87 87 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 88 88 % * *Date:* 2007/10/15 89 % * *Copyright:* 2007 , RWTH Aachen University89 % * *Copyright:* 2007-2008, RWTH Aachen University 90 90 % 91 91 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/OpenSwitch.html
r3 r254 12 12 <title>OpenSwitch</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_OpenSwitch"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 52 52 <li><b>Date:</b> 2007/10/15 53 53 </li> 54 <li><b>Copyright:</b> 2007 , RWTH Aachen University54 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 55 55 </li> 56 56 </ul> … … 86 86 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 87 87 % * *Date:* 2007/10/15 88 % * *Copyright:* 2007 , RWTH Aachen University88 % * *Copyright:* 2007-2008, RWTH Aachen University 89 89 % 90 90 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/OpenUltrasonic.html
r3 r254 12 12 <title>OpenUltrasonic</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_OpenUltrasonic"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 29 29 <li><a href="#3">Description</a></li> 30 30 <li><a href="#7">Examples</a></li> 31 <li><a href="# 8">See also</a></li>32 <li><a href="# 9">Signature</a></li>31 <li><a href="#9">See also</a></li> 32 <li><a href="#10">Signature</a></li> 33 33 </ul> 34 34 </div> … … 39 39 <p><tt>OpenUltrasonic(port)</tt> initializes the input mode of NXT uktrasonic sensor specified by the sensor <tt>port</tt>. The value <tt>port</tt> can be addressed by the symbolic constants <tt>SENSOR_1</tt> , <tt>SENSOR_2</tt>, <tt>SENSOR_3</tt> and <tt>SENSOR_4</tt> analog to the labeling on the NXT Brick. 40 40 </p> 41 <p><tt>OpenUltrasonic(port, mode)</tt> can enable the snap shot mode if the value <tt>mode</tt> is equal to the string <tt>'snapshot'</tt>. This mode provides the snap shot mode (or SINGLE_SHOT mode) of the NXT ultrasonic sensor, which provides several sensor42 readings in one step. However this mode is <b>not supported yet</b>.41 <p><tt>OpenUltrasonic(port, mode)</tt> can enable the snapshot mode if the value <tt>mode</tt> is equal to the string <tt>'snapshot'</tt>. This mode provides the snap shot mode (or SINGLE_SHOT mode) of the NXT ultrasonic sensor, which provides several sensor 42 readings in one step. See <tt>USMakeSnapshot</tt> for more information. 43 43 </p> 44 <p>Since the NXT ultrasonic sensor is a digital sensor (that uses the I& #65533;C protocol), the function <tt>NXT_SetInputMode</tt> cannot be used as for analog sensors.44 <p>Since the NXT ultrasonic sensor is a digital sensor (that uses the I²C protocol), the function <tt>NXT_SetInputMode</tt> cannot be used as for analog sensors. 45 45 </p> 46 <p>Note: The <tt>'snapshot'</tt> mode has not been implemented yet.46 <p>Note: When the US sensor is opened in snapshot mode, the function <tt>GetUltrasonic</tt> does not work correctly! 47 47 </p> 48 48 <h2>Examples<a name="7"></a></h2><pre class="codeinput"> OpenUltrasonic(SENSOR_4); 49 49 distance = GetUltrasonic(SENSOR_4); 50 50 CloseSensor(SENSOR_4); 51 </pre><h2>See also<a name="8"></a></h2> 52 <p><a href="GetUltrasonic.html">GetUltrasonic</a>, <a href="CloseSensor.html">CloseSensor</a>, <a href="SENSOR_1.html">SENSOR_1</a>, <a href="SENSOR_2.html">SENSOR_2</a>, <a href="SENSOR_3.html">SENSOR_3</a>, <a href="SENSOR_4.html">SENSOR_4</a></p> 53 <h2>Signature<a name="9"></a></h2> 51 </pre><pre class="codeinput"> port = SENSOR_4; 52 OpenUltrasonic(port, <span class="string">'snapshot'</span>); 53 <span class="comment">% send out the ping</span> 54 USMakeSnapshot(port); 55 <span class="comment">% wait some time for the sound to travel</span> 56 pause(0.1); <span class="comment">% 100ms is probably too much, calculate using c_sound ;-)</span> 57 <span class="comment">% retrieve all the echos in 1 step</span> 58 echos = USGetSnapshotResults(port); 59 CloseSensor(SENSOR_4); 60 </pre><h2>See also<a name="9"></a></h2> 61 <p><a href="GetUltrasonic.html">GetUltrasonic</a>, <a href="USMakeSnapshot.html">USMakeSnapshot</a>, <a href="USGetSnapshotResults.html">USGetSnapshotResults</a>, <a href="CloseSensor.html">CloseSensor</a></p> 62 <h2>Signature<a name="10"></a></h2> 54 63 <div> 55 64 <ul> … … 58 67 <li><b>Date:</b> 2008/01/08 59 68 </li> 60 <li><b>Copyright:</b> 2007 , RWTH Aachen University69 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 61 70 </li> 62 71 </ul> … … 80 89 % |SENSOR_1| , |SENSOR_2|, |SENSOR_3| and |SENSOR_4| analog to the labeling on the NXT Brick. 81 90 %% 82 % |OpenUltrasonic(port, mode)| can enable the snap shot mode if the value |mode| is equal to the string91 % |OpenUltrasonic(port, mode)| can enable the snapshot mode if the value |mode| is equal to the string 83 92 % |'snapshot'|. This mode provides the snap shot mode (or SINGLE_SHOT mode) of the NXT ultrasonic sensor, 84 % which provides several sensor readings in one step. However this mode is *not supported yet*. 93 % which provides several sensor readings in one step. See 94 % |USMakeSnapshot| for more information. 85 95 %% 86 % Since the NXT ultrasonic sensor is a digital sensor (that uses the I ÿC protocol),96 % Since the NXT ultrasonic sensor is a digital sensor (that uses the I²C protocol), 87 97 % the function |NXT_SetInputMode| cannot be used as for analog sensors. 88 98 %% 89 % Note: The |'snapshot'| mode has not been implemented yet. 99 % Note: When the US sensor is opened in snapshot mode, the function 100 % |GetUltrasonic| does not work correctly! 90 101 %% 91 102 %% … … 95 106 CloseSensor(SENSOR_4); 96 107 %% 108 port = SENSOR_4; 109 OpenUltrasonic(port, 'snapshot'); 110 % send out the ping 111 USMakeSnapshot(port); 112 % wait some time for the sound to travel 113 pause(0.1); % 100ms is probably too much, calculate using c_sound ;-) 114 % retrieve all the echos in 1 step 115 echos = USGetSnapshotResults(port); 116 CloseSensor(SENSOR_4); 117 %% 97 118 %% See also 98 % GetUltrasonic, CloseSensor, SENSOR_1, SENSOR_2, SENSOR_3, SENSOR_4119 % GetUltrasonic, USMakeSnapshot, USGetSnapshotResults, CloseSensor 99 120 %% 100 121 %% Signature … … 102 123 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 103 124 % * *Date:* 2008/01/08 104 % * *Copyright:* 2007 , RWTH Aachen University125 % * *Copyright:* 2007-2008, RWTH Aachen University 105 126 % 106 127 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/ResetMotorAngle.html
r3 r254 12 12 <title>ResetMotorAngle</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_ResetMotorAngle"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 41 41 <p><tt>ResetMotorAngle(port, handle)</tt> uses the given Bluetooth connection <tt>handle</tt>. This should be a serial handle on a PC system and a file handle on a Linux system. 42 42 </p> 43 <p>If no Bluetooth handle is specified the default one (<tt>BT_GetDefaultHandle</tt>) is used.43 <p>If no NXT handle is specified the default one (<tt>COM_GetDefaultNXT</tt>) is used. 44 44 </p> 45 45 <h2>Examples<a name="6"></a></h2><pre class="codeinput"> ResetMotorAngle(MOTOR_A); 46 </pre><pre class="codeinput"> bt_handle = BT_OpenHandle(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>);47 ResetMotorAngle(MOTOR_C, bt_handle);46 </pre><pre class="codeinput"> handle = COM_OpenNXT(<span class="string">'bluetooth.ini'</span>,<span class="string">'check'</span>); 47 ResetMotorAngle(MOTOR_C, handle); 48 48 </pre><h2>See also<a name="8"></a></h2> 49 <p><a href="NXT_ResetMotorPosition.html">NXT_ResetMotorPosition</a>, <a href="GetMotorSettings.html">GetMotorSettings</a>, <a href="MOTOR_A.html">MOTOR_A</a>, <a href="MOTOR_B.html">MOTOR_B</a>, <a href="MOTOR_C.html">MOTOR_C</a>, <a href=" BT_GetDefaultHandle.html">BT_GetDefaultHandle</a></p>49 <p><a href="NXT_ResetMotorPosition.html">NXT_ResetMotorPosition</a>, <a href="GetMotorSettings.html">GetMotorSettings</a>, <a href="MOTOR_A.html">MOTOR_A</a>, <a href="MOTOR_B.html">MOTOR_B</a>, <a href="MOTOR_C.html">MOTOR_C</a>, <a href="COM_GetDefaultNXT.html">COM_GetDefaultNXT</a></p> 50 50 <h2>Signature<a name="9"></a></h2> 51 51 <div> … … 55 55 <li><b>Date:</b> 2007/10/15 56 56 </li> 57 <li><b>Copyright:</b> 2007 , RWTH Aachen University57 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 58 58 </li> 59 59 </ul> … … 81 81 % serial handle on a PC system and a file handle on a Linux system. 82 82 %% 83 % If no Bluetooth handle is specified the default one (|BT_GetDefaultHandle|) is used.83 % If no NXT handle is specified the default one (|COM_GetDefaultNXT|) is used. 84 84 %% 85 85 %% Examples 86 86 ResetMotorAngle(MOTOR_A); 87 87 %% 88 bt_handle = BT_OpenHandle('bluetooth.ini','check');89 ResetMotorAngle(MOTOR_C, bt_handle);88 handle = COM_OpenNXT('bluetooth.ini','check'); 89 ResetMotorAngle(MOTOR_C, handle); 90 90 %% 91 91 %% See also 92 % NXT_ResetMotorPosition, GetMotorSettings, MOTOR_A, MOTOR_B, MOTOR_C, BT_GetDefaultHandle92 % NXT_ResetMotorPosition, GetMotorSettings, MOTOR_A, MOTOR_B, MOTOR_C, COM_GetDefaultNXT 93 93 %% 94 94 %% Signature … … 96 96 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 97 97 % * *Date:* 2007/10/15 98 % * *Copyright:* 2007 , RWTH Aachen University98 % * *Copyright:* 2007-2008, RWTH Aachen University 99 99 % 100 100 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/SENSOR_1.html
r3 r254 12 12 <title>SENSOR_1</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_SENSOR_1"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 49 49 <li><b>Date:</b> 2007/10/15 50 50 </li> 51 <li><b>Copyright:</b> 2007 , RWTH Aachen University51 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 52 52 </li> 53 53 </ul> … … 78 78 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 79 79 % * *Date:* 2007/10/15 80 % * *Copyright:* 2007 , RWTH Aachen University80 % * *Copyright:* 2007-2008, RWTH Aachen University 81 81 % 82 82 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/SENSOR_2.html
r3 r254 12 12 <title>SENSOR_2</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_SENSOR_2"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 49 49 <li><b>Date:</b> 2007/10/15 50 50 </li> 51 <li><b>Copyright:</b> 2007 , RWTH Aachen University51 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 52 52 </li> 53 53 </ul> … … 78 78 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 79 79 % * *Date:* 2007/10/15 80 % * *Copyright:* 2007 , RWTH Aachen University80 % * *Copyright:* 2007-2008, RWTH Aachen University 81 81 % 82 82 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/SENSOR_3.html
r3 r254 12 12 <title>SENSOR_3</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_SENSOR_3"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 49 49 <li><b>Date:</b> 2007/10/15 50 50 </li> 51 <li><b>Copyright:</b> 2007 , RWTH Aachen University51 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 52 52 </li> 53 53 </ul> … … 78 78 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 79 79 % * *Date:* 2007/10/15 80 % * *Copyright:* 2007 , RWTH Aachen University80 % * *Copyright:* 2007-2008, RWTH Aachen University 81 81 % 82 82 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/SENSOR_4.html
r3 r254 12 12 <title>SENSOR_4</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_SENSOR_4"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 49 49 <li><b>Date:</b> 2007/10/15 50 50 </li> 51 <li><b>Copyright:</b> 2007 , RWTH Aachen University51 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 52 52 </li> 53 53 </ul> … … 78 78 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 79 79 % * *Date:* 2007/10/15 80 % * *Copyright:* 2007 , RWTH Aachen University80 % * *Copyright:* 2007-2008, RWTH Aachen University 81 81 % 82 82 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/SendMotorSettings.html
r3 r254 12 12 <title>SendMotorSettings</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_SendMotorSettings"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 63 63 <li><b>Date:</b> 2007/10/15 64 64 </li> 65 <li><b>Copyright:</b> 2007 , RWTH Aachen University65 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 66 66 </li> 67 67 </ul> … … 114 114 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 115 115 % * *Date:* 2007/10/15 116 % * *Copyright:* 2007 , RWTH Aachen University116 % * *Copyright:* 2007-2008, RWTH Aachen University 117 117 % 118 118 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/SetAngleLimit.html
r3 r254 12 12 <title>SetAngleLimit</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_SetAngleLimit"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 57 57 <li><b>Date:</b> 2007/10/15 58 58 </li> 59 <li><b>Copyright:</b> 2007 , RWTH Aachen University59 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 60 60 </li> 61 61 </ul> … … 99 99 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 100 100 % * *Date:* 2007/10/15 101 % * *Copyright:* 2007 , RWTH Aachen University101 % * *Copyright:* 2007-2008, RWTH Aachen University 102 102 % 103 103 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/SetMemoryCount.html
r45 r254 5 5 <head> 6 6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 7 7 8 8 <!-- 9 9 This HTML is auto-generated from an M-file. … … 12 12 <title>SetMemoryCount</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_SetMemoryCount"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 43 43 <h2>Example<a name="5"></a></h2><pre class="codeinput"> SetMemoryCount(MOTOR_B, 120); 44 44 </pre><h2>See also<a name="6"></a></h2> 45 <p><a href=" GetMemoryCount.html">GetMemoryCount</a>, <a href="MOTOR_A.html">MOTOR_A</a>, <a href="MOTOR_B.html">MOTOR_B</a>, <a href="MOTOR_C.html">MOTOR_C</a></p>45 <p><a href="SetMemoryCounter.html">SetMemoryCounter</a>, <a href="MOTOR_A.html">MOTOR_A</a>, <a href="MOTOR_B.html">MOTOR_B</a>, <a href="MOTOR_C.html">MOTOR_C</a></p> 46 46 <h2>Signature<a name="7"></a></h2> 47 47 <div> … … 51 51 <li><b>Date:</b> 2007/10/15 52 52 </li> 53 <li><b>Copyright:</b> 2007 , RWTH Aachen University53 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 54 54 </li> 55 55 </ul> … … 87 87 % * *Author:* Alexander Behrens (see AUTHORS) 88 88 % * *Date:* 2007/10/15 89 % * *Copyright:* 2007 , RWTH Aachen University89 % * *Copyright:* 2007-2008, RWTH Aachen University 90 90 % 91 91 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/SetMotor.html
r3 r254 12 12 <title>SetMotor</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_SetMotor"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 53 53 <li><b>Date:</b> 2007/10/15 54 54 </li> 55 <li><b>Copyright:</b> 2007 , RWTH Aachen University55 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 56 56 </li> 57 57 </ul> … … 89 89 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 90 90 % * *Date:* 2007/10/15 91 % * *Copyright:* 2007 , RWTH Aachen University91 % * *Copyright:* 2007-2008, RWTH Aachen University 92 92 % 93 93 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/SetPower.html
r3 r254 12 12 <title>SetPower</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_SetPower"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 52 52 <li><b>Date:</b> 2007/10/15 53 53 </li> 54 <li><b>Copyright:</b> 2007 , RWTH Aachen University54 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 55 55 </li> 56 56 </ul> … … 87 87 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 88 88 % * *Date:* 2007/10/15 89 % * *Copyright:* 2007 , RWTH Aachen University89 % * *Copyright:* 2007-2008, RWTH Aachen University 90 90 % 91 91 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/SetRampMode.html
r3 r254 12 12 <title>SetRampMode</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_SetRampMode"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 52 52 <li><b>Date:</b> 2007/10/15 53 53 </li> 54 <li><b>Copyright:</b> 2007 , RWTH Aachen University54 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 55 55 </li> 56 56 </ul> … … 89 89 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 90 90 % * *Date:* 2007/10/15 91 % * *Copyright:* 2007 , RWTH Aachen University91 % * *Copyright:* 2007-2008, RWTH Aachen University 92 92 % 93 93 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/SetTurnRatio.html
r3 r254 12 12 <title>SetTurnRatio</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_SetTurnRatio"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 62 62 <li><b>Date:</b> 2007/10/15 63 63 </li> 64 <li><b>Copyright:</b> 2007 , RWTH Aachen University64 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 65 65 </li> 66 66 </ul> … … 115 115 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 116 116 % * *Date:* 2007/10/15 117 % * *Copyright:* 2007 , RWTH Aachen University117 % * *Copyright:* 2007-2008, RWTH Aachen University 118 118 % 119 119 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/SpeedRegulation.html
r3 r254 12 12 <title>SpeedRegulation</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_SpeedRegulation"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 57 57 <li><b>Date:</b> 2007/10/15 58 58 </li> 59 <li><b>Copyright:</b> 2007 , RWTH Aachen University59 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 60 60 </li> 61 61 </ul> … … 101 101 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 102 102 % * *Date:* 2007/10/15 103 % * *Copyright:* 2007 , RWTH Aachen University103 % * *Copyright:* 2007-2008, RWTH Aachen University 104 104 % 105 105 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/StopMotor.html
r3 r254 12 12 <title>StopMotor</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_StopMotor"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 62 62 <li><b>Date:</b> 2007/10/15 63 63 </li> 64 <li><b>Copyright:</b> 2007 , RWTH Aachen University64 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 65 65 </li> 66 66 </ul> … … 114 114 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 115 115 % * *Date:* 2007/10/15 116 % * *Copyright:* 2007 , RWTH Aachen University116 % * *Copyright:* 2007-2008, RWTH Aachen University 117 117 % 118 118 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/SwitchLamp.html
r3 r254 12 12 <title>SwitchLamp</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_SwitchLamp"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 54 54 <li><b>Date:</b> 2007/10/15 55 55 </li> 56 <li><b>Copyright:</b> 2007 , RWTH Aachen University56 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 57 57 </li> 58 58 </ul> … … 96 96 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 97 97 % * *Date:* 2007/10/15 98 % * *Copyright:* 2007 , RWTH Aachen University98 % * *Copyright:* 2007-2008, RWTH Aachen University 99 99 % 100 100 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/SyncToMotor.html
r3 r254 12 12 <title>SyncToMotor</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_SyncToMotor"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 66 66 <li><b>Date:</b> 2007/10/15 67 67 </li> 68 <li><b>Copyright:</b> 2007 , RWTH Aachen University68 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 69 69 </li> 70 70 </ul> … … 123 123 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 124 124 % * *Date:* 2007/10/15 125 % * *Copyright:* 2007 , RWTH Aachen University125 % * *Copyright:* 2007-2008, RWTH Aachen University 126 126 % 127 127 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/WaitForMotor.html
r3 r254 12 12 <title>WaitForMotor</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_WaitForMotor"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 66 66 <li><b>Date:</b> 2007/10/15 67 67 </li> 68 <li><b>Copyright:</b> 2007 , RWTH Aachen University68 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 69 69 </li> 70 70 </ul> … … 121 121 % * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS) 122 122 % * *Date:* 2007/10/15 123 % * *Copyright:* 2007 , RWTH Aachen University123 % * *Copyright:* 2007-2008, RWTH Aachen University 124 124 % 125 125 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/checkStatusByte.html
r3 r254 12 12 <title>checkStatusByte</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_checkStatusByte"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 41 41 [err errmsg] = checkStatusByte(status); 42 42 </pre><h2>See also<a name="4"></a></h2> 43 <p><a href=" BT_CollectPacket.html">BT_CollectPacket</a>, <a href="NXT_LSGetStatus.html">NXT_LSGetStatus</a></p>43 <p><a href="COM_CollectPacket.html">COM_CollectPacket</a>, <a href="NXT_LSGetStatus.html">NXT_LSGetStatus</a></p> 44 44 <h2>Signature<a name="5"></a></h2> 45 45 <div> … … 49 49 <li><b>Date:</b> 2007/10/15 50 50 </li> 51 <li><b>Copyright:</b> 2007 , RWTH Aachen University51 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 52 52 </li> 53 53 </ul> … … 75 75 %% 76 76 %% See also 77 % BT_CollectPacket, NXT_LSGetStatus77 % COM_CollectPacket, NXT_LSGetStatus 78 78 %% 79 79 %% Signature … … 81 81 % * *Author:* Linus Atorf (see AUTHORS) 82 82 % * *Date:* 2007/10/15 83 % * *Copyright:* 2007 , RWTH Aachen University83 % * *Copyright:* 2007-2008, RWTH Aachen University 84 84 % 85 85 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/readFromIniFile.html
r3 r254 12 12 <title>readFromIniFile</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_readFromIniFile"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 67 67 <li><b>Date:</b> 2008/01/08 68 68 </li> 69 <li><b>Copyright:</b> 2007 , RWTH Aachen University69 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 70 70 </li> 71 71 </ul> … … 123 123 % * *Author:* Linus Atorf (see AUTHORS) 124 124 % * *Date:* 2008/01/08 125 % * *Copyright:* 2007 , RWTH Aachen University125 % * *Copyright:* 2007-2008, RWTH Aachen University 126 126 % 127 127 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/textOut.html
r3 r254 12 12 <title>textOut</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_textOut"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 72 72 <li><b>Date:</b> 2007/10/15 73 73 </li> 74 <li><b>Copyright:</b> 2007 , RWTH Aachen University74 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 75 75 </li> 76 76 </ul> … … 141 141 % * *Author:* Linus Atorf (see AUTHORS) 142 142 % * *Date:* 2007/10/15 143 % * *Copyright:* 2007 , RWTH Aachen University143 % * *Copyright:* 2007-2008, RWTH Aachen University 144 144 % 145 145 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/tictic.html
r3 r254 12 12 <title>tictic</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_tictic"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 55 55 <li><b>Date:</b> 2007/10/15 56 56 </li> 57 <li><b>Copyright:</b> 2007 , RWTH Aachen University57 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 58 58 </li> 59 59 </ul> … … 94 94 % * *Author:* Linus Atorf (see AUTHORS) 95 95 % * *Date:* 2007/10/15 96 % * *Copyright:* 2007 , RWTH Aachen University96 % * *Copyright:* 2007-2008, RWTH Aachen University 97 97 % 98 98 -
branches/atorf/RWTHMindstormsNXT/doc/functions/help/toctoc.html
r3 r254 12 12 <title>toctoc</title> 13 13 <meta name="generator" content="MATLAB 7.5"> 14 <meta name="date" content="2008-0 1-28">14 <meta name="date" content="2008-07-19"> 15 15 <meta name="m-file" content="script_toctoc"> 16 16 <link type="text/css" rel="stylesheet" href="../../style.css"> … … 55 55 <li><b>Date:</b> 2007/10/15 56 56 </li> 57 <li><b>Copyright:</b> 2007 , RWTH Aachen University57 <li><b>Copyright:</b> 2007-2008, RWTH Aachen University 58 58 </li> 59 59 </ul> … … 95 95 % * *Author:* Linus Atorf (see AUTHORS) 96 96 % * *Date:* 2007/10/15 97 % * *Copyright:* 2007 , RWTH Aachen University97 % * *Copyright:* 2007-2008, RWTH Aachen University 98 98 % 99 99 -
branches/atorf/RWTHMindstormsNXT/doc/helpindex.xml
r3 r254 3 3 4 4 <index version="1.0"> 5 <indexitem target="./functions/help/BT_CloseAllHandles.html">BT_CloseAllHandles</indexitem> 6 <indexitem target="./functions/help/BT_CloseHandle.html">BT_CloseHandle</indexitem> 7 <indexitem target="./functions/help/BT_CollectPacket.html">BT_CollectPacket</indexitem> 8 <indexitem target="./functions/help/BT_CreatePacket.html">BT_CreatePacket</indexitem> 9 <indexitem target="./functions/help/BT_GetDefaultHandle.html">BT_GetDefaultHandle</indexitem> 10 <indexitem target="./functions/help/BT_MakeConfigFile.html">BT_MakeConfigFile</indexitem> 11 <indexitem target="./functions/help/BT_OpenHandle.html">BT_OpenHandle</indexitem> 12 <indexitem target="./functions/help/BT_SendPacket.html">BT_SendPacket</indexitem> 13 <indexitem target="./functions/help/BT_SetDefaultHandle.html">BT_SetDefaultHandle</indexitem> 14 <indexitem target="./functions/help/checkStatusByte.html">checkStatusByte</indexitem> 15 <indexitem target="./functions/help/CloseSensor.html">CloseSensor</indexitem> 16 <indexitem target="./functions/help/GetLight.html">GetLight</indexitem> 17 <indexitem target="./functions/help/GetMemoryCount.html">GetMemoryCount</indexitem> 18 <indexitem target="./functions/help/GetMotor.html">GetMotor</indexitem> 19 <indexitem target="./functions/help/GetMotorSettings.html">GetMotorSettings</indexitem> 20 <indexitem target="./functions/help/GetSound.html">GetSound</indexitem> 21 <indexitem target="./functions/help/GetSwitch.html">GetSwitch</indexitem> 22 <indexitem target="./functions/help/GetUltrasonic.html">GetUltrasonic</indexitem> 23 <indexitem target="./functions/help/MOTOR_A.html">MOTOR_A</indexitem> 24 <indexitem target="./functions/help/MOTOR_B.html">MOTOR_B</indexitem> 25 <indexitem target="./functions/help/MOTOR_C.html">MOTOR_C</indexitem> 26 <indexitem target="./functions/help/MotorRotateAbs.html">MotorRotateAbs</indexitem> 27 <indexitem target="./functions/help/NXT_GetBatteryLevel.html">NXT_GetBatteryLevel</indexitem> 28 <indexitem target="./functions/help/NXT_GetInputValues.html">NXT_GetInputValues</indexitem> 29 <indexitem target="./functions/help/NXT_GetOutputState.html">NXT_GetOutputState</indexitem> 30 <indexitem target="./functions/help/NXT_LSGetStatus.html">NXT_LSGetStatus</indexitem> 31 <indexitem target="./functions/help/NXT_LSRead.html">NXT_LSRead</indexitem> 32 <indexitem target="./functions/help/NXT_LSWrite.html">NXT_LSWrite</indexitem> 33 <indexitem target="./functions/help/NXT_PlayTone.html">NXT_PlayTone</indexitem> 34 <indexitem target="./functions/help/NXT_ResetInputScaledValue.html">NXT_ResetInputScaledValue</indexitem> 35 <indexitem target="./functions/help/NXT_ResetMotorPosition.html">NXT_ResetMotorPosition</indexitem> 36 <indexitem target="./functions/help/NXT_SendKeepAlive.html">NXT_SendKeepAlive</indexitem> 37 <indexitem target="./functions/help/NXT_SetBrickName.html">NXT_SetBrickName</indexitem> 38 <indexitem target="./functions/help/NXT_SetInputMode.html">NXT_SetInputMode</indexitem> 39 <indexitem target="./functions/help/NXT_SetOutputState.html">NXT_SetOutputState</indexitem> 40 <indexitem target="./functions/help/NXT_StartProgra.html">NXT_StartProgra</indexitem> 41 <indexitem target="./functions/help/NXT_StopProgra.html">NXT_StopProgra</indexitem> 42 <indexitem target="./functions/help/OpenLight.html">OpenLight</indexitem> 43 <indexitem target="./functions/help/OpenSound.html">OpenSound</indexitem> 44 <indexitem target="./functions/help/OpenSwitch.html">OpenSwitch</indexitem> 45 <indexitem target="./functions/help/OpenUltrasonic.html">OpenUltrasonic</indexitem> 46 <indexitem target="./functions/help/readFromIniFile.html">readFromIniFile</indexitem> 47 <indexitem target="./functions/help/ResetMotorAngle.html">ResetMotorAngle</indexitem> 48 <indexitem target="./functions/help/SendMotorSettings.html">SendMotorSettings</indexitem> 49 <indexitem target="./functions/help/SENSOR_1.html">SENSOR_1</indexitem> 50 <indexitem target="./functions/help/SENSOR_2.html">SENSOR_2</indexitem> 51 <indexitem target="./functions/help/SENSOR_3.html">SENSOR_3</indexitem> 52 <indexitem target="./functions/help/SENSOR_4.html">SENSOR_4</indexitem> 53 <indexitem target="./functions/help/SetAngleLimit.html">SetAngleLimit</indexitem> 54 <indexitem target="./functions/help/SetMemoryCount.html">SetMemoryCount</indexitem> 55 <indexitem target="./functions/help/SetMotor.html">SetMotor</indexitem> 56 <indexitem target="./functions/help/SetPower.html">SetPower</indexitem> 57 <indexitem target="./functions/help/SetRampMode.html">SetRampMode</indexitem> 58 <indexitem target="./functions/help/SetTurnRatio.html">SetTurnRatio</indexitem> 59 <indexitem target="./functions/help/SpeedRegulation.html">SpeedRegulation</indexitem> 60 <indexitem target="./functions/help/StopMotor.html">StopMotor</indexitem> 61 <indexitem target="./functions/help/SwitchLamp.html">SwitchLamp</indexitem> 62 <indexitem target="./functions/help/SyncToMotor.html">SyncToMotor</indexitem> 63 <indexitem target="./functions/help/textOut.html">textOut</indexitem> 64 <indexitem target="./functions/help/tictic.html">tictic</indexitem> 65 <indexitem target="./functions/help/toctoc.html">toctoc</indexitem> 66 <indexitem target="./functions/help/WaitForMotor.html">WaitForMotor</indexitem> 5 <indexitem target="./functions/help/COM_CloseNXT.html">COM_CloseNXT</indexitem> 6 <indexitem target="./functions/help/COM_CollectPacket.html">COM_CollectPacket</indexitem> 7 <indexitem target="./functions/help/COM_CreatePacket.html">COM_CreatePacket</indexitem> 8 <indexitem target="./functions/help/COM_GetDefaultNXT.html">COM_GetDefaultNXT</indexitem> 9 <indexitem target="./functions/help/COM_MakeBTConfigFile.html">COM_MakeBTConfigFile</indexitem> 10 <indexitem target="./functions/help/COM_OpenNXT.html">COM_OpenNXT</indexitem> 11 <indexitem target="./functions/help/COM_OpenNXTEx.html">COM_OpenNXTEx</indexitem> 12 <indexitem target="./functions/help/COM_SendPacket.html">COM_SendPacket</indexitem> 13 <indexitem target="./functions/help/COM_SetDefaultNXT.html">COM_SetDefaultNXT</indexitem> 14 <indexitem target="./functions/help/CloseSensor.html">CloseSensor</indexitem> 15 <indexitem target="./functions/help/Contents.html">Contents</indexitem> 16 <indexitem target="./functions/help/DebugMode.html">DebugMode</indexitem> 17 <indexitem target="./functions/help/GetLight.html">GetLight</indexitem> 18 <indexitem target="./functions/help/GetMemoryCount.html">GetMemoryCount</indexitem> 19 <indexitem target="./functions/help/GetMotor.html">GetMotor</indexitem> 20 <indexitem target="./functions/help/GetMotorSettings.html">GetMotorSettings</indexitem> 21 <indexitem target="./functions/help/GetSound.html">GetSound</indexitem> 22 <indexitem target="./functions/help/GetSwitch.html">GetSwitch</indexitem> 23 <indexitem target="./functions/help/GetUltrasonic.html">GetUltrasonic</indexitem> 24 <indexitem target="./functions/help/MAP_GetCommModule.html">MAP_GetCommModule</indexitem> 25 <indexitem target="./functions/help/MAP_GetInputModule.html">MAP_GetInputModule</indexitem> 26 <indexitem target="./functions/help/MAP_GetOutputModule.html">MAP_GetOutputModule</indexitem> 27 <indexitem target="./functions/help/MAP_GetSoundModule.html">MAP_GetSoundModule</indexitem> 28 <indexitem target="./functions/help/MAP_GetUIModule.html">MAP_GetUIModule</indexitem> 29 <indexitem target="./functions/help/MAP_SetOutputModule.html">MAP_SetOutputModule</indexitem> 30 <indexitem target="./functions/help/MOTOR_A.html">MOTOR_A</indexitem> 31 <indexitem target="./functions/help/MOTOR_B.html">MOTOR_B</indexitem> 32 <indexitem target="./functions/help/MOTOR_C.html">MOTOR_C</indexitem> 33 <indexitem target="./functions/help/MotorRotateAbs.html">MotorRotateAbs</indexitem> 34 <indexitem target="./functions/help/NXT_GetBatteryLevel.html">NXT_GetBatteryLevel</indexitem> 35 <indexitem target="./functions/help/NXT_GetFirmwareVersion.html">NXT_GetFirmwareVersion</indexitem> 36 <indexitem target="./functions/help/NXT_GetInputValues.html">NXT_GetInputValues</indexitem> 37 <indexitem target="./functions/help/NXT_GetOutputState.html">NXT_GetOutputState</indexitem> 38 <indexitem target="./functions/help/NXT_LSGetStatus.html">NXT_LSGetStatus</indexitem> 39 <indexitem target="./functions/help/NXT_LSRead.html">NXT_LSRead</indexitem> 40 <indexitem target="./functions/help/NXT_LSWrite.html">NXT_LSWrite</indexitem> 41 <indexitem target="./functions/help/NXT_PlaySoundFile.html">NXT_PlaySoundFile</indexitem> 42 <indexitem target="./functions/help/NXT_PlayTone.html">NXT_PlayTone</indexitem> 43 <indexitem target="./functions/help/NXT_ReadIOMap.html">NXT_ReadIOMap</indexitem> 44 <indexitem target="./functions/help/NXT_ResetInputScaledValue.html">NXT_ResetInputScaledValue</indexitem> 45 <indexitem target="./functions/help/NXT_ResetMotorPosition.html">NXT_ResetMotorPosition</indexitem> 46 <indexitem target="./functions/help/NXT_SendKeepAlive.html">NXT_SendKeepAlive</indexitem> 47 <indexitem target="./functions/help/NXT_SetBrickName.html">NXT_SetBrickName</indexitem> 48 <indexitem target="./functions/help/NXT_SetInputMode.html">NXT_SetInputMode</indexitem> 49 <indexitem target="./functions/help/NXT_SetOutputState.html">NXT_SetOutputState</indexitem> 50 <indexitem target="./functions/help/NXT_StartProgram.html">NXT_StartProgram</indexitem> 51 <indexitem target="./functions/help/NXT_StopProgram.html">NXT_StopProgram</indexitem> 52 <indexitem target="./functions/help/NXT_StopSoundPlayback.html">NXT_StopSoundPlayback</indexitem> 53 <indexitem target="./functions/help/NXT_WriteIOMap.html">NXT_WriteIOMap</indexitem> 54 <indexitem target="./functions/help/OpenLight.html">OpenLight</indexitem> 55 <indexitem target="./functions/help/OpenSound.html">OpenSound</indexitem> 56 <indexitem target="./functions/help/OpenSwitch.html">OpenSwitch</indexitem> 57 <indexitem target="./functions/help/OpenUltrasonic.html">OpenUltrasonic</indexitem> 58 <indexitem target="./functions/help/ResetMotorAngle.html">ResetMotorAngle</indexitem> 59 <indexitem target="./functions/help/SENSOR_1.html">SENSOR_1</indexitem> 60 <indexitem target="./functions/help/SENSOR_2.html">SENSOR_2</indexitem> 61 <indexitem target="./functions/help/SENSOR_3.html">SENSOR_3</indexitem> 62 <indexitem target="./functions/help/SENSOR_4.html">SENSOR_4</indexitem> 63 <indexitem target="./functions/help/SendMotorSettings.html">SendMotorSettings</indexitem> 64 <indexitem target="./functions/help/SetAngleLimit.html">SetAngleLimit</indexitem> 65 <indexitem target="./functions/help/SetMemoryCount.html">SetMemoryCount</indexitem> 66 <indexitem target="./functions/help/SetMotor.html">SetMotor</indexitem> 67 <indexitem target="./functions/help/SetPower.html">SetPower</indexitem> 68 <indexitem target="./functions/help/SetRampMode.html">SetRampMode</indexitem> 69 <indexitem target="./functions/help/SetTurnRatio.html">SetTurnRatio</indexitem> 70 <indexitem target="./functions/help/SpeedRegulation.html">SpeedRegulation</indexitem> 71 <indexitem target="./functions/help/StopMotor.html">StopMotor</indexitem> 72 <indexitem target="./functions/help/SwitchLamp.html">SwitchLamp</indexitem> 73 <indexitem target="./functions/help/SyncToMotor.html">SyncToMotor</indexitem> 74 <indexitem target="./functions/help/USGetSnapshotResults.html">USGetSnapshotResults</indexitem> 75 <indexitem target="./functions/help/USMakeSnapshot.html">USMakeSnapshot</indexitem> 76 <indexitem target="./functions/help/WaitForMotor.html">WaitForMotor</indexitem> 77 <indexitem target="./functions/help/checkStatusByte.html">checkStatusByte</indexitem> 78 <indexitem target="./functions/help/readFromIniFile.html">readFromIniFile</indexitem> 79 <indexitem target="./functions/help/textOut.html">textOut</indexitem> 80 <indexitem target="./functions/help/tictic.html">tictic</indexitem> 81 <indexitem target="./functions/help/toctoc.html">toctoc</indexitem> 67 82 </index> -
branches/atorf/RWTHMindstormsNXT/doc/helptoc.xml
r3 r254 53 53 <tocitem target="./functions/categories.html" image="$toolbox/matlab/icons/reficon.gif">Functions - By Category</tocitem> 54 54 <tocitem target="./functions/abc.html" image="$toolbox/matlab/icons/reficon.gif">Functions - Alphabetical List</tocitem> 55 <tocitem target="./functions/ FunctionsOverview.html" image="$toolbox/matlab/icons/reficon.gif">Functions - Overview</tocitem>55 <tocitem target="./functions/ToolboxVer2Guidelines.html" image="$toolbox/matlab/icons/reficon.gif">Functions - Guideline for new v2.00 features</tocitem> 56 56 <tocitem target="./functions/CommandLayers.html" image="$toolbox/matlab/icons/reficon.gif">Functions - Command Layers</tocitem> 57 57 … … 65 65 66 66 <!-- Demos --> 67 <!-- 67 68 <tocitem target="./demos/watchAnalogSensor_gui.html" image="$toolbox/matlab/icons/figureicon.gif">Watch Analog Sensor GUI</tocitem> 68 69 <tocitem target="./demos/watchMotorState_gui.html" image="$toolbox/matlab/icons/figureicon.gif">Watch Motor State GUI</tocitem> 70 --> 69 71 70 72 <!-- Web Pages --> 71 73 <tocitem target="./webpages.html" image="$toolbox/matlab/icons/webicon.gif">Web Pages 72 74 <tocitem target="http://www.mindstorms.rwth-aachen.de" image="$toolbox/matlab/icons/webicon.gif">RWTH - Mindstorms NXT Toolbox - Official Web Page</tocitem> 73 <tocitem target="http://www.lfb.rwth-aachen.de/ de/lehre/ws07/mindstorms.html" image="$toolbox/matlab/icons/webicon.gif">RWTH Project - MATLAB meets LEGO Mindstorms -</tocitem>75 <tocitem target="http://www.lfb.rwth-aachen.de/mindstorms.html" image="$toolbox/matlab/icons/webicon.gif">RWTH Project - MATLAB meets LEGO Mindstorms -</tocitem> 74 76 <tocitem target="http://www.lfb.rwth-aachen.de/en" image="$toolbox/matlab/icons/webicon.gif">RWTH - Institute of Imaging and Computer Vision</tocitem> 75 77 <tocitem target="http://www.rwth-aachen.de" image="$toolbox/matlab/icons/webicon.gif">RWTH Aachen University</tocitem> -
branches/atorf/RWTHMindstormsNXT/doc/programming/programming_robots.html
r3 r254 10 10 <h1>Programming Robots</h1> 11 11 <hr> 12 <h4>Warning - Information in this section might still be from version 1.00 and hence be outdated!</h4> 12 13 13 14 After a Mindstorms NXT robot is constructed and built, its behavior should be programmed. Therefore the following sections describe the RWTH - Mindstorms NXT Toolbox commands and give program design tips. -
branches/atorf/RWTHMindstormsNXT/doc/release.html
r3 r254 10 10 <h1>Release Notes & Version History</h1> 11 11 <hr> 12 <h2>RWTH - Mindstorms NXT Toolbox v1.00</h2> 13 <ul> 14 <li><b>New Features:</b></li> 15 <ul> 16 <li>Extended and updated toolbox documentation.</li> 17 <li>Functions features based on modules release-1.00 (January 22nd, 2008)</li> 18 <ul> 19 <li><b>Features added:</b></li> 20 <ul> 21 <li>Warning- and Error-identifiers for all warnings and errors</li> 22 <li>Contents.m (Toolbox and version identification)</li> 23 <li>Performance improvements in various private lowlevel functions</li> 24 </ul> 25 <li><b>Features changed:</b></li> 26 <ul> 27 <li>readFromIniFile.m (completely new rewritten code, more reliable, better understandable, GPL license)</li> 28 <li>Changed, improved and added lots of comments</li> 29 <li>Changed default Bluetooth parameters to lower (i.e. faster) values</li> 30 <li>New version naming scheme: x.yy, where x = major version (ensuring backwards compatibility) and yy = release number, e.g. 1.01 31 </ul> 32 <li><b>Bugs fixed:</b></li> 33 </ul> 34 </ul> 35 <li>January 24th, 2008</li> 36 </ul> 12 <h2>RWTH - Mindstorms NXT Toolbox version 2.00beta</h2> 13 <ul> 14 <li><b>New Features:</b></li> 15 <ul> 16 <li>Added support for USB communication to the NXT brick (for both Windows and Linux systems):<br> 17 Performance about 10 times faster than with Bluetooth communication.</li> 18 <li>Restructured communication layer: New functions for Bluetooth and USB communication.</li> 19 <li>Full support for multiple NXTs from one program, mixed connections via Bluetooth and USB are supported.</li> 20 <li>New NXT-handle holds useful information about the currently connected device.</li> 21 <li>Added "snapshot mode" for ultrasonic sensor: Send single pings and record multiple echos.<br> 22 (See functions OpenUltrasonic, USMakeSnapshot, and USGetSnapshotResults)</li> 23 <li>Added support for I/O Map Module access of NXT internal registers: See MAP-functions.</li> 24 <li>New function DebugMode for easier access to debug messages generated by textOut.</li> 25 </ul> 26 <li><b>Bug fixes and improvements:</b></li> 27 <ul> 28 <li>Performance improvement (roughly factor 10) of lowlevel functions wordbytes2dec and dec2wordbytes.</li> 29 <li>Fixed a minor bug in SpeedRegulation that occured when working with value 255 for all motors.</li> 30 <li>Added and rewrote some internal helper / lowlevel functions.</li> 31 <li>Added and rewrote some error / warning messages.</li> 32 </ul> 33 <li><b>Files removed:</b></li> 34 <ul> 35 <li>Old BT-functions (Bluetooth) have now been replaced by COM-Functions that also support USB-connections.</li> 36 <li>Removed some private lowlevel functions that were not needed anymore.</li> 37 </ul> 38 <li><b>Known bugs and limitations:</b></li> 39 <ul> 40 <li>Current documentation might be outdated (still from version 1.00 at various places).</li> 41 <li>Programs working with toolbox version 1.00 are not working out of the box with version 2.00beta. The code for opening 42 and closing connections to the NXT brick has to be updated.</li> 43 <li>System functions, especially the new I/O Map Module functions, do not work with USB-connections in Windows.</li> 44 <li>Under heavy load / small intervals between successive sensor polls (when using USB connections), the NXT might send 45 an error message back to the host computer, leading to a warning. This was not reproducable realiably.</li> 46 <li>Old limitations from version 1.00 regarding hardware compatibility and problems with various Bluetooth adapters still apply.</li> 47 </ul> 48 49 <li>July 17th, 2008</li> 50 </ul> 51 37 52 38 53 <br> … … 45 60 info = 46 61 Name: 'RWTH - Mindstorms NXT Toolbox' 47 Version: ' 1.00'62 Version: '2.00beta' 48 63 Release: '' 49 Date: ' 24-Jan-2008'64 Date: '17-Jul-2008' 50 65 </pre> 51 66 If your application requires a certain toolbox release, you can use this command to ensure the requested version is present: … … 58 73 <br> 59 74 60 61 75 <hr> 62 76 <h2>Version History</h2> 77 78 79 <h3>RWTH - Mindstorms NXT Toolbox v1.00</h3> 80 <ul> 81 <li><b>New Features:</b></li> 82 <ul> 83 <li>Extended and updated toolbox documentation.</li> 84 <li>Functions features based on modules release-1.00 (January 22nd, 2008)</li> 85 <ul> 86 <li><b>Features added:</b></li> 87 <ul> 88 <li>Warning- and Error-identifiers for all warnings and errors</li> 89 <li>Contents.m (Toolbox and version identification)</li> 90 <li>Performance improvements in various private lowlevel functions</li> 91 </ul> 92 <li><b>Features changed:</b></li> 93 <ul> 94 <li>readFromIniFile.m (completely new rewritten code, more reliable, better understandable, GPL license)</li> 95 <li>Changed, improved and added lots of comments</li> 96 <li>Changed default Bluetooth parameters to lower (i.e. faster) values</li> 97 <li>New version naming scheme: x.yy, where x = major version (ensuring backwards compatibility) and yy = release number, e.g. 1.01 98 </ul> 99 <li><b>Bugs fixed:</b></li> 100 </ul> 101 </ul> 102 <li>January 24th, 2008</li> 103 </ul> 63 104 64 105 <h3>RWTH - Mindstorms NXT Toolbox v0.3</h3> -
branches/atorf/RWTHMindstormsNXT/doc/start/requirements.html
r3 r254 18 18 <li>LEGO<SUP>®</SUP> Mindstorms NXT firmware v1.05 (recommended)</li> 19 19 <li>Bluetooth 2.0 adapter recommended model by LEGO<SUP>®</SUP> (e.g. AVM BlueFRITZ! USB) supporting the serial port profile (SPP)</li> 20 <li>USB cable and LEGO Mindstorms NXT Fantom USB Driver for Windows (http://mindstorms.lego.com/support/updates/) or libusb library for Linux</li> 20 21 </ul> 21 22 -
branches/atorf/RWTHMindstormsNXT/doc/webpages.html
r3 r254 13 13 <ul> 14 14 <li><a href="http://www.mindstorms.rwth-aachen.de">RWTH - Mindstorms NXT Toolbox - Official Web Page</a></li> 15 <li><a href="http://www.lfb.rwth-aachen.de/ de/lehre/ws07/mindstorms.html">RWTH Aachen UniversityStudent Project - MATLAB meets LEGO Mindstorms -</a></li>16 <li><a href="http://www. rwth-aachen.de">RWTH - Institute of Imaging and Computer Vision</a></li>15 <li><a href="http://www.lfb.rwth-aachen.de/mindstorms">RWTH Aachen University First Semester Student Project - MATLAB meets LEGO Mindstorms -</a></li> 16 <li><a href="http://www.lfb.rwth-aachen.de">RWTH - Institute of Imaging and Computer Vision</a></li> 17 17 <li><a href="http://www.rwth-aachen.de">RWTH Aachen University</a></li> 18 18 <li><a href="http://www.mindstorms.com">LEGO Mindstorms NXT- Official Webpage</a></li> -
branches/atorf/RWTHMindstormsNXT/info.xml
r3 r254 13 13 14 14 15 <!-- 15 16 <listitem> 16 <label>Watch AnalogSensor GUI</label>17 <callback>GUI_Watch AnalogSensor</callback>17 <label>Watch Sensor GUI</label> 18 <callback>GUI_WatchSensor</callback> 18 19 <icon>$toolbox/matlab/icons/figureicon.gif</icon> 19 20 </listitem> … … 24 25 <icon>$toolbox/matlab/icons/figureicon.gif</icon> 25 26 </listitem> 27 --> 26 28 27 29 <listitem> … … 39 41 <listitem> 40 42 <label>RWTH Project - MATLAB meets LEGO Mindstorms -</label> 41 <callback>web http://www.lfb.rwth-aachen.de/ de/lehre/ws07/mindstorms.html-browser;</callback>43 <callback>web http://www.lfb.rwth-aachen.de/mindstorms -browser;</callback> 42 44 <icon>$toolbox/matlab/icons/webicon.gif</icon> 43 45 </listitem>
