| 1 | |
|---|
| 2 | <!DOCTYPE html |
|---|
| 3 | PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
|---|
| 4 | <html> |
|---|
| 5 | <head> |
|---|
| 6 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
|---|
| 7 | |
|---|
| 8 | <!-- |
|---|
| 9 | This HTML is auto-generated from an M-file. |
|---|
| 10 | To make changes, update the M-file and republish this document. |
|---|
| 11 | --> |
|---|
| 12 | <title>OpenInfrared</title> |
|---|
| 13 | <meta name="generator" content="MATLAB 7.7"> |
|---|
| 14 | <meta name="date" content="2008-11-05"> |
|---|
| 15 | <meta name="m-file" content="script_OpenInfrared"> |
|---|
| 16 | <link type="text/css" rel="stylesheet" href="../../style.css"> |
|---|
| 17 | </head> |
|---|
| 18 | <body> |
|---|
| 19 | <p class="header">RWTH - Mindstorms NXT Toolbox</p> |
|---|
| 20 | <div class="content"> |
|---|
| 21 | <h1>OpenInfrared</h1> |
|---|
| 22 | <!--introduction--> |
|---|
| 23 | <p>Initializes and sets the mode of the HiTechnic infrared seeker sensor</p> |
|---|
| 24 | <!--/introduction--> |
|---|
| 25 | <h2>Contents</h2> |
|---|
| 26 | <div> |
|---|
| 27 | <ul> |
|---|
| 28 | <li><a href="#2">Syntax</a></li> |
|---|
| 29 | <li><a href="#5">Description</a></li> |
|---|
| 30 | <li><a href="#8">Examples</a></li> |
|---|
| 31 | <li><a href="#10">See also</a></li> |
|---|
| 32 | <li><a href="#12">Signature</a></li> |
|---|
| 33 | </ul> |
|---|
| 34 | </div> |
|---|
| 35 | <h2>Syntax<a name="2"></a></h2> |
|---|
| 36 | <p><tt>OpenInfrared(port)</tt></p> |
|---|
| 37 | <p><tt>OpenInfrared(port, handle)</tt></p> |
|---|
| 38 | <h2>Description<a name="5"></a></h2> |
|---|
| 39 | <p><tt>OpenInfrared(port)</tt> initializes the input mode of HiTechnic infrared seeker 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 | </p> |
|---|
| 41 | <p>The last optional argument can be a valid NXT handle. If none is specified, the default handle will be used (call <tt>COM_SetDefaultNXT</tt> to set one). |
|---|
| 42 | </p> |
|---|
| 43 | <h2>Examples<a name="8"></a></h2><pre class="codeinput"> OpenInfrared(SENSOR_4); |
|---|
| 44 | [direction rawData] = GetInfrared(SENSOR_4); |
|---|
| 45 | CloseSensor(SENSOR_4); |
|---|
| 46 | </pre><h2>See also<a name="10"></a></h2> |
|---|
| 47 | <p><a href="GetInfrared.html">GetInfrared</a>, <a href="CloseSensor.html">CloseSensor</a>, <a href="NXT_LSGetStatus.html">NXT_LSGetStatus</a>, <a href="NXT_LSRead.html">NXT_LSRead</a></p> |
|---|
| 48 | <h2>Signature<a name="12"></a></h2> |
|---|
| 49 | <div> |
|---|
| 50 | <ul> |
|---|
| 51 | <li><b>Author:</b> Linus Atorf (see AUTHORS) |
|---|
| 52 | </li> |
|---|
| 53 | <li><b>Date:</b> 2008/09/25 |
|---|
| 54 | </li> |
|---|
| 55 | <li><b>Copyright:</b> 2007-2008, RWTH Aachen University |
|---|
| 56 | </li> |
|---|
| 57 | </ul> |
|---|
| 58 | </div> |
|---|
| 59 | <p class="footer"><br> |
|---|
| 60 | Published with wg_publish; V1.0<br></p> |
|---|
| 61 | </div> |
|---|
| 62 | <!-- |
|---|
| 63 | ##### SOURCE BEGIN ##### |
|---|
| 64 | %% OpenInfrared |
|---|
| 65 | % Initializes and sets the mode of the HiTechnic infrared seeker sensor |
|---|
| 66 | %% |
|---|
| 67 | %% Syntax |
|---|
| 68 | % |OpenInfrared(port)| |
|---|
| 69 | %% |
|---|
| 70 | % |OpenInfrared(port, handle)| |
|---|
| 71 | %% |
|---|
| 72 | %% Description |
|---|
| 73 | % |OpenInfrared(port)| initializes the input mode of HiTechnic infrared seeker sensor specified by the sensor |
|---|
| 74 | % |port|. The value |port| can be addressed by the symbolic constants |
|---|
| 75 | % |SENSOR_1| , |SENSOR_2|, |SENSOR_3| and |SENSOR_4| analog to the labeling on the NXT Brick. |
|---|
| 76 | %% |
|---|
| 77 | % The last optional argument can be a valid NXT handle. If none is |
|---|
| 78 | % specified, the default handle will be used (call |COM_SetDefaultNXT| to |
|---|
| 79 | % set one). |
|---|
| 80 | %% |
|---|
| 81 | %% Examples |
|---|
| 82 | OpenInfrared(SENSOR_4); |
|---|
| 83 | [direction rawData] = GetInfrared(SENSOR_4); |
|---|
| 84 | CloseSensor(SENSOR_4); |
|---|
| 85 | %% |
|---|
| 86 | %% See also |
|---|
| 87 | % GetInfrared, CloseSensor, NXT_LSGetStatus, NXT_LSRead |
|---|
| 88 | %% |
|---|
| 89 | %% Signature |
|---|
| 90 | %% |
|---|
| 91 | % * *Author:* Linus Atorf (see AUTHORS) |
|---|
| 92 | % * *Date:* 2008/09/25 |
|---|
| 93 | % * *Copyright:* 2007-2008, RWTH Aachen University |
|---|
| 94 | % |
|---|
| 95 | |
|---|
| 96 | ##### SOURCE END ##### |
|---|
| 97 | --> |
|---|
| 98 | </body> |
|---|
| 99 | </html> |
|---|