Project

General

Profile

Statistics
| Revision:

root / trunk / docs / libdragonfly / motor_8h.html @ 1371

History | View | Annotate | Download (5.4 KB)

1 41 bcoltin
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 241 bcoltin
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3 41 bcoltin
<title>libdragonfly: motor.h File Reference</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
<link href="tabs.css" rel="stylesheet" type="text/css">
6
</head><body>
7 1145 deffi
<!-- Generated by Doxygen 1.5.5 -->
8
<div class="navigation" id="top">
9
  <div class="tabs">
10
    <ul>
11
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
12
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
13
      <li><a href="modules.html"><span>Modules</span></a></li>
14
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
15
      <li class="current"><a href="files.html"><span>Files</span></a></li>
16
    </ul>
17
  </div>
18 241 bcoltin
</div>
19 1145 deffi
<div class="contents">
20 41 bcoltin
<h1>motor.h File Reference</h1>Contains definitions for controlling the motors. <a href="#_details">More...</a>
21
<p>
22
<code>#include &lt;avr/io.h&gt;</code><br>
23
24
<p>
25
<a href="motor_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
26
<tr><td></td></tr>
27
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
28
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g6ddfdda7a062d10cff4a72b76b44aeb8"></a><!-- doxytag: member="motor.h::FORWARD" ref="g6ddfdda7a062d10cff4a72b76b44aeb8" args="" -->
29
#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__motors.html#g6ddfdda7a062d10cff4a72b76b44aeb8">FORWARD</a>&nbsp;&nbsp;&nbsp;1</td></tr>
30
31
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">make the motors go forwards <br></td></tr>
32
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gdf445abfe1b77fa63f89e315ccc2f7f2"></a><!-- doxytag: member="motor.h::BACKWARD" ref="gdf445abfe1b77fa63f89e315ccc2f7f2" args="" -->
33
#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__motors.html#gdf445abfe1b77fa63f89e315ccc2f7f2">BACKWARD</a>&nbsp;&nbsp;&nbsp;0</td></tr>
34
35
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">make the motors go backwards <br></td></tr>
36
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
37
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__motors.html#gbad32bfc46c9f31ba81955775611bd21">motors_init</a> (void)</td></tr>
38
39
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Initialize the motors.  <a href="group__motors.html#gbad32bfc46c9f31ba81955775611bd21"></a><br></td></tr>
40
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__motors.html#g751a431c19cdb52bbbc8127455bd41ee">motor1_set</a> (int direction, int speed)</td></tr>
41
42
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set speed and direction of motor1.  <a href="group__motors.html#g751a431c19cdb52bbbc8127455bd41ee"></a><br></td></tr>
43
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__motors.html#g23940fd8408c23fcf312b1d5937f0ab0">motor2_set</a> (int direction, int speed)</td></tr>
44
45
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set speed and direction of motor2.  <a href="group__motors.html#g23940fd8408c23fcf312b1d5937f0ab0"></a><br></td></tr>
46
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__motors.html#g3c7ada13bc7d8ed5e819910da74bf9cd">motors_off</a> (void)</td></tr>
47
48
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Turn the motors off.  <a href="group__motors.html#g3c7ada13bc7d8ed5e819910da74bf9cd"></a><br></td></tr>
49
</table>
50
<hr><a name="_details"></a><h2>Detailed Description</h2>
51
Contains definitions for controlling the motors.
52
<p>
53 241 bcoltin
Copyright (c) 2007 Colony Project<p>
54
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:<p>
55
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.<p>
56
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.<p>
57 41 bcoltin
Contains definitions and functions for controlling the motors.<p>
58 241 bcoltin
<dl class="author" compact><dt><b>Author:</b></dt><dd>Colony Project, CMU Robotics Club Based on Tom Lauwer's Firefly Library </dd></dl>
59 1145 deffi
</div>
60 1371 chihsiuh
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Sep 2 23:20:08 2009 for libdragonfly by&nbsp;
61 41 bcoltin
<a href="http://www.doxygen.org/index.html">
62 1145 deffi
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
63 41 bcoltin
</body>
64
</html>