root/branches/atorf/RWTHMindstormsNXT/doc/functions/help/ResetMotorAngle.html @ 254

Revision 254, 4.4 KB (checked in by atorf, 5 years ago)

updated toolbox doc in personal branch…

Line 
1
2<!DOCTYPE html
3  PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN">
4<html xmlns:mwsh="http://www.mathworks.com/namespace/mcode/v1/syntaxhighlight.dtd">
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>ResetMotorAngle</title>
13      <meta name="generator" content="MATLAB 7.5">
14      <meta name="date" content="2008-07-19">
15      <meta name="m-file" content="script_ResetMotorAngle">
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>ResetMotorAngle</h1>
22         <introduction>
23            <p>Resets the relative angle counter for the given motor</p>
24         </introduction>
25         <h2>Contents</h2>
26         <div>
27            <ul>
28               <li><a href="#1">Syntax</a></li>
29               <li><a href="#3">Description</a></li>
30               <li><a href="#6">Examples</a></li>
31               <li><a href="#8">See also</a></li>
32               <li><a href="#9">Signature</a></li>
33            </ul>
34         </div>
35         <h2>Syntax<a name="1"></a></h2>
36         <p><tt>ResetMotorAngle(port)</tt></p>
37         <p><tt>ResetMotorAngle(port, handle)</tt></p>
38         <h2>Description<a name="3"></a></h2>
39         <p><tt>ResetMotorAngle(port)</tt> resets the relative angle counter for the motor connected to the given <tt>port</tt>. The value <tt>port</tt> can be addressed by the symbolic constants <tt>MOTOR_A</tt>, <tt>MOTOR_B</tt> and <tt>MOTOR_C</tt> analog to the labeling on the NXT Brick. The relative counter can be read by the function <tt>GetMotorSettings</tt>.
40         </p>
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         </p>
43         <p>If no NXT handle is specified the default one (<tt>COM_GetDefaultNXT</tt>) is used.
44         </p>
45         <h2>Examples<a name="6"></a></h2><pre class="codeinput">   ResetMotorAngle(MOTOR_A);
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</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="COM_GetDefaultNXT.html">COM_GetDefaultNXT</a></p>
50         <h2>Signature<a name="9"></a></h2>
51         <div>
52            <ul>
53               <li><b>Author:</b> Linus Atorf, Alexander Behrens (see AUTHORS)
54               </li>
55               <li><b>Date:</b> 2007/10/15
56               </li>
57               <li><b>Copyright:</b> 2007-2008, RWTH Aachen University
58               </li>
59            </ul>
60         </div>
61         <p class="footer"><br>
62            Published with wg_publish; V1.0<br></p>
63      </div>
64      <!--
65##### SOURCE BEGIN #####
66%% ResetMotorAngle
67% Resets the relative angle counter for the given motor
68%%
69%% Syntax
70% |ResetMotorAngle(port)|
71%%
72% |ResetMotorAngle(port, handle)|
73%%
74%% Description
75% |ResetMotorAngle(port)| resets the relative angle counter for the motor connected to the given
76% |port|. The value |port| can be addressed by the symbolic constants |MOTOR_A|, |MOTOR_B| and
77% |MOTOR_C| analog to the labeling on the NXT Brick. The relative counter can be read by the
78% function |GetMotorSettings|.
79%%
80% |ResetMotorAngle(port, handle)| uses the given Bluetooth connection |handle|. This should be a
81% serial handle on a PC system and a file handle on a Linux system.
82%%
83% If no NXT handle is specified the default one (|COM_GetDefaultNXT|) is used.
84%%
85%% Examples
86   ResetMotorAngle(MOTOR_A);
87%%
88   handle = COM_OpenNXT('bluetooth.ini','check');
89   ResetMotorAngle(MOTOR_C, handle);
90%%
91%% See also
92% NXT_ResetMotorPosition, GetMotorSettings, MOTOR_A, MOTOR_B, MOTOR_C, COM_GetDefaultNXT
93%%
94%% Signature
95%%
96% * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS)
97% * *Date:* 2007/10/15
98% * *Copyright:* 2007-2008, RWTH Aachen University
99%
100
101##### SOURCE END #####
102-->
103   </body>
104</html>
Note: See TracBrowser for help on using the browser.