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

Revision 725, 4.1 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>DirectMotorCommand</title>
13      <meta name="generator" content="MATLAB 7.8">
14      <meta name="date" content="2009-07-20">
15      <meta name="m-file" content="script_DirectMotorCommand">
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>DirectMotorCommand</h1>
22         <!--introduction-->
23         <p>Sends a direct command to the specified motor</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="#11">Example</a></li>
31               <li><a href="#13">See also</a></li>
32               <li><a href="#15">Signature</a></li>
33            </ul>
34         </div>
35         <h2>Syntax<a name="2"></a></h2>
36         <p><tt>DirectMotorCommand(port, power, angle, speedRegulation, syncedToMotor, turnRatio, rampMode)</tt></p>
37         <h2>Description<a name="5"></a></h2>
38         <p><tt>DirectMotorCommand(port, power, angle, speedRegulation, syncedToMotor, turnRatio, rampMode)</tt> sends the given settings like motor <tt>port</tt> (<tt>MOTOR_A</tt>, <tt>MOTOR_B</tt> or <tt>MOTOR_C</tt>), the <tt>power</tt> (<tt>-100...100</tt>, the <tt>angle</tt> limit, <tt>speedRegulation</tt> (<tt>'on'</tt>, <tt>'off'</tt>), <tt>syncedToMotor</tt> (<tt>MOTOR_A</tt>, <tt>MOTOR_B</tt>, <tt>MOTOR_C</tt>), <tt>turnRatio</tt> (<tt>-100...100</tt>) and <tt>rampMode</tt> (<tt>'off'</tt>, <tt>'up'</tt>, <tt>'down'</tt>).
39         </p>
40         <p><b>Note:</b></p>
41         <p>All settings like power, angle limit and so on, will only take effect once you send them to the motor using THIS function.
42            Note that if you have synced two motors together, this function internally sends two packets to both the motors. This is required,
43            but you can work as if this was just one command.
44         </p>
45         <h2>Example<a name="11"></a></h2>
46         <h2>See also<a name="13"></a></h2><pre>NXT_SetOutputState</pre><h2>Signature<a name="15"></a></h2>
47
48            <ul>
49               <li><b>Author:</b> Linus Atorf, Alexander Behrens (see AUTHORS)
50               </li>
51               <li><b>Date:</b> 2009/07/17
52               </li>
53               <li><b>Copyright:</b> 2007-2009, RWTH Aachen University
54               </li>
55            </ul>
56         </div>
57         <p class="footer"><br>
58            Published with wg_publish; V1.0<br></p>
59      </div>
60      <!--
61##### SOURCE BEGIN #####
62%% DirectMotorCommand
63% Sends a direct command to the specified motor
64%%
65%% Syntax
66%%
67% |DirectMotorCommand(port, power, angle, speedRegulation, syncedToMotor, turnRatio, rampMode)|
68%%
69%% Description
70%%
71% |DirectMotorCommand(port, power, angle, speedRegulation, syncedToMotor, turnRatio, rampMode)|
72% sends the given settings like motor |port| (|MOTOR_A|, |MOTOR_B| or |MOTOR_C|), the |power|
73% (|-100...100|, the |angle| limit, |speedRegulation| (|'on'|, |'off'|), |syncedToMotor|
74% (|MOTOR_A|, |MOTOR_B|, |MOTOR_C|), |turnRatio| (|-100...100|) and |rampMode| (|'off'|, |'up'|,
75% |'down'|).
76%%
77%%
78% *Note:*
79%%
80% All settings like power, angle limit and so on, will only take effect once you send them to the
81% motor using THIS function. Note that if you have synced two motors together, this function
82% internally sends two packets to both the motors. This is required, but you can work as if this
83% was just one command.
84%%
85%% Example
86%%
87%% See also
88%  NXT_SetOutputState
89%%
90%% Signature
91%%
92% * *Author:* Linus Atorf, Alexander Behrens (see AUTHORS)
93% * *Date:* 2009/07/17
94% * *Copyright:* 2007-2009, RWTH Aachen University
95%
96
97##### SOURCE END #####
98-->
99   </body>
100</html>
Note: See TracBrowser for help on using the browser.