root/tags/version-3.00/RWTHMindstormsNXT/doc/functions/help/GetInfrared.html @ 725

Revision 725, 4.4 KB (checked in by atorf, 4 years ago)

Tag 3.00:

Line 
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      <!--
9This HTML is auto-generated from an M-file.
10To make changes, update the M-file and republish this document.
11      -->
12      <title>GetInfrared</title>
13      <meta name="generator" content="MATLAB 7.8">
14      <meta name="date" content="2009-07-20">
15      <meta name="m-file" content="script_GetInfrared">
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>GetInfrared</h1>
22         <!--introduction-->
23         <p>Reads the current value of the Hitechnic infrared sensor (infrared seeker)</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="#9">Example</a></li>
31               <li><a href="#11">See also</a></li>
32               <li><a href="#13">Signature</a></li>
33            </ul>
34         </div>
35         <h2>Syntax<a name="2"></a></h2>
36         <p><tt>[direction rawData] = GetInfrared(port)</tt></p>
37         <p><tt>[direction rawData] = GetInfrared(port, handle)</tt></p>
38         <h2>Description<a name="5"></a></h2>
39         <p><tt>[direction rawData] = GetInfrared(port)</tt> returns the current direction an the raw data of the detected infrared signal. <tt>direction</tt> represents the main direction (1-9) calculated based on the measured raw data given in the <tt>rawData</tt> vector (1x5). Five sensors are provided by the infrared seeker. For more information see <a href="http://www.hitechnic.com">http://www.hitechnic.com</a></p>
40         <p>The given <tt>port</tt> number specifies the connection port. 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.
41         </p>
42         <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).
43         </p>
44         <h2>Example<a name="9"></a></h2><pre class="codeinput">   OpenInfrared(SENSOR_4);
45   [direction rawData] = GetInfrared(SENSOR_4);
46   CloseSensor(SENSOR_4);
47</pre><h2>See also<a name="11"></a></h2>
48         <p><a href="OpenInfrared.html">OpenInfrared</a>, <a href="CloseSensor.html">CloseSensor</a>, <a href="COM_ReadI2C.html">COM_ReadI2C</a>, </p>
49         <h2>Signature<a name="13"></a></h2>
50         <div>
51            <ul>
52               <li><b>Author:</b> Linus Atorf (see AUTHORS)
53               </li>
54               <li><b>Date:</b> 2008/09/25
55               </li>
56               <li><b>Copyright:</b> 2007-2009, RWTH Aachen University
57               </li>
58            </ul>
59         </div>
60         <p class="footer"><br>
61            Published with wg_publish; V1.0<br></p>
62      </div>
63      <!--
64##### SOURCE BEGIN #####
65%% GetInfrared
66% Reads the current value of the Hitechnic infrared sensor (infrared seeker)
67%%
68%% Syntax
69% |[direction rawData] = GetInfrared(port)|
70%%
71% |[direction rawData] = GetInfrared(port, handle)|
72%%
73%% Description
74% |[direction rawData] = GetInfrared(port)| returns the current direction an the raw data of the
75% detected infrared signal. |direction| represents the main direction (1-9) calculated based on
76% the measured raw data given in the |rawData| vector (1x5). Five sensors are provided by the
77% infrared seeker. For more information see http://www.hitechnic.com
78%%
79% The given |port| number specifies the connection port. The value |port| can be
80% addressed by the symbolic constants |SENSOR_1| , |SENSOR_2|, |SENSOR_3| and |SENSOR_4| analog to
81% the labeling on the NXT Brick.
82%%
83% The last optional argument can be a valid NXT handle. If none is
84% specified, the default handle will be used (call |COM_SetDefaultNXT| to
85% set one).
86%%
87%% Example
88   OpenInfrared(SENSOR_4);
89   [direction rawData] = GetInfrared(SENSOR_4);
90   CloseSensor(SENSOR_4);
91%%
92%% See also
93% OpenInfrared, CloseSensor, COM_ReadI2C
94%%
95%% Signature
96%%
97% * *Author:* Linus Atorf (see AUTHORS)
98% * *Date:* 2008/09/25
99% * *Copyright:* 2007-2009, RWTH Aachen University
100%
101
102##### SOURCE END #####
103-->
104   </body>
105</html>
Note: See TracBrowser for help on using the browser.