1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 9<title>PADControlMotor</title> 10</head> 11 12<body> 13 14<h1>PADControlMotor</h1> 15 16 17<h2>C Specification</h2> 18 19<dl> 20<dd><pre><code>#include <revolution/pad.h> 21 22#define PAD_CHAN0 0 23#define PAD_CHAN1 1 24#define PAD_CHAN2 2 25#define PAD_CHAN3 3</code></pre> 26 </dd> 27<dd><pre><CODE>#define PAD_MOTOR_STOP 0 28#define PAD_MOTOR_RUMBLE 1 29#define PAD_MOTOR_STOP_HARD 2</CODE></pre> 30 </dd> 31<dd><pre><CODE>void PADControlMotor(int chan, u32 command);</CODE></pre> 32 </dd> 33</dl> 34 35<h2>Arguments</h2> 36<TABLE border="1" cellpadding="3" cellspacing="0.1"> 37 <tr> 38<TD width="120" bgcolor="#ffffe8"><code><STRONG><EM><CODE>chan</CODE></EM></STRONG></code></TD> 39<TD width="520">One of the <code>PAD_CHAN<em>n</em></code> constants.</TD> 40 </tr> 41 <tr> 42<TD width="120" bgcolor="#ffffe8"><code>command</code></TD> 43<TD width="520">One of the <code>PAD_MOTOR_*</code> commands.</TD> 44 </tr> 45</TABLE> 46<h2>Return Values</h2> 47 48<p>None.</p> 49<H2>Description</H2> 50<P>This function controls the specified controller motor status.</P> 51<P>The WaveBird does not have a rumble motor.</P> 52 53 54<p></p> 55 56<h2>See Also</h2> 57 58<p><a href="toc.html" target="contents">Controller Functions</a>, <a href="PADControlAllMotors.html"><code>PADControlAllMotors</code></a>,<code> <a href="PADStartMotor.html">PADStartMotor</a></code>, <a href="PADStopMotor.html"><code>PADStopMotor</code></a>, <a href="PADStopMotorHard.html"><code>PADStopMotorHard</code></a></p> 59<H2>Revision History</H2> 60<P>03/01/2006 Initial version.</P> 61</body> 62</html>