root / branches / encoders / docs / libdragonfly / group__bom.html @ 856
History | View | Annotate | Download (5.96 KB)
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
---|---|
2 |
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> |
3 |
<title>libdragonfly: BOM (Bearing and Orientation Module)</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 |
<!-- Generated by Doxygen 1.5.4 -->
|
8 |
<div class="tabs"> |
9 |
<ul>
|
10 |
<li><a href="index.html"><span>Main Page</span></a></li> |
11 |
<li><a href="modules.html"><span>Modules</span></a></li> |
12 |
<li><a href="files.html"><span>Files</span></a></li> |
13 |
<li><a href="pages.html"><span>Related Pages</span></a></li> |
14 |
</ul>
|
15 |
</div>
|
16 |
<h1>BOM (Bearing and Orientation Module)</h1>Functions for dealing with the BOM. |
17 |
<a href="#_details">More...</a><table border="0" cellpadding="0" cellspacing="0"> |
18 |
<tr><td></td></tr> |
19 |
<tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
20 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__bom.html#g86753fe7440cd64e60c58ad31c62264a">get_max_bom</a> (void)</td></tr> |
21 |
|
22 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the location of the maximum BOM reading. <a href="#g86753fe7440cd64e60c58ad31c62264a"></a><br></td></tr> |
23 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__bom.html#g93b665ff81fc6b58503c6ba5ba01c1bf">bom_on</a> (void)</td></tr> |
24 |
|
25 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Turns the BOM on. <a href="#g93b665ff81fc6b58503c6ba5ba01c1bf"></a><br></td></tr> |
26 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__bom.html#g61a66e53cdee8bce139c707153143b30">bom_off</a> (void)</td></tr> |
27 |
|
28 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Turns the BOM off. <a href="#g61a66e53cdee8bce139c707153143b30"></a><br></td></tr> |
29 |
</table>
|
30 |
<hr><a name="_details"></a><h2>Detailed Description</h2> |
31 |
Functions for dealing with the BOM. |
32 |
<p>
|
33 |
The Bearing and Orientation Module / Barrel of Monkeys / BOM is a custom sensor designed and built by the Colony Project. It consists of a ring of 16 IR emitters and 16 IR detectors. The BOM is most often use to determine the direction of other robots. This module contains functions for controlling the BOM.<p>
|
34 |
Include <a class="el" href="bom_8h.html" title="Definitions for using the BOM.">bom.h</a> to access these functions. <hr><h2>Function Documentation</h2> |
35 |
<a class="anchor" name="g61a66e53cdee8bce139c707153143b30"></a><!-- doxytag: member="bom.c::bom_off" ref="g61a66e53cdee8bce139c707153143b30" args="(void)" --> |
36 |
<div class="memitem"> |
37 |
<div class="memproto"> |
38 |
<table class="memname"> |
39 |
<tr>
|
40 |
<td class="memname">void bom_off </td> |
41 |
<td>(</td> |
42 |
<td class="paramtype">void </td> |
43 |
<td class="paramname"> </td> |
44 |
<td> ) </td> |
45 |
<td width="100%"></td> |
46 |
</tr>
|
47 |
</table>
|
48 |
</div>
|
49 |
<div class="memdoc"> |
50 |
|
51 |
<p>
|
52 |
Turns the BOM off. |
53 |
<p>
|
54 |
Stops flashing the BOM. analog_init must be called before this function can be used.<p>
|
55 |
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__bom.html#g93b665ff81fc6b58503c6ba5ba01c1bf" title="Turns the BOM on.">bom_on</a>, <a class="el" href="group__analog.html#g55f66ff6f3449ef81d97b7e47f041918" title="Initialize analog ports.">analog_init</a> </dd></dl> |
56 |
|
57 |
</div>
|
58 |
</div><p> |
59 |
<a class="anchor" name="g93b665ff81fc6b58503c6ba5ba01c1bf"></a><!-- doxytag: member="bom.c::bom_on" ref="g93b665ff81fc6b58503c6ba5ba01c1bf" args="(void)" --> |
60 |
<div class="memitem"> |
61 |
<div class="memproto"> |
62 |
<table class="memname"> |
63 |
<tr>
|
64 |
<td class="memname">void bom_on </td> |
65 |
<td>(</td> |
66 |
<td class="paramtype">void </td> |
67 |
<td class="paramname"> </td> |
68 |
<td> ) </td> |
69 |
<td width="100%"></td> |
70 |
</tr>
|
71 |
</table>
|
72 |
</div>
|
73 |
<div class="memdoc"> |
74 |
|
75 |
<p>
|
76 |
Turns the BOM on. |
77 |
<p>
|
78 |
Flashes the BOM. analog_init must be called before this function can be used.<p>
|
79 |
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__bom.html#g61a66e53cdee8bce139c707153143b30" title="Turns the BOM off.">bom_off</a>, <a class="el" href="group__analog.html#g55f66ff6f3449ef81d97b7e47f041918" title="Initialize analog ports.">analog_init</a> </dd></dl> |
80 |
|
81 |
</div>
|
82 |
</div><p> |
83 |
<a class="anchor" name="g86753fe7440cd64e60c58ad31c62264a"></a><!-- doxytag: member="bom.c::get_max_bom" ref="g86753fe7440cd64e60c58ad31c62264a" args="(void)" --> |
84 |
<div class="memitem"> |
85 |
<div class="memproto"> |
86 |
<table class="memname"> |
87 |
<tr>
|
88 |
<td class="memname">int get_max_bom </td> |
89 |
<td>(</td> |
90 |
<td class="paramtype">void </td> |
91 |
<td class="paramname"> </td> |
92 |
<td> ) </td> |
93 |
<td width="100%"></td> |
94 |
</tr>
|
95 |
</table>
|
96 |
</div>
|
97 |
<div class="memdoc"> |
98 |
|
99 |
<p>
|
100 |
Returns the location of the maximum BOM reading. |
101 |
<p>
|
102 |
Returns the direction of the maximum BOM reading, as an integer in the range 0-15. 0 indicates to the robot's right, while the rest of the sensors are numbered counterclockwise. This is useful for determining the direction of a robot flashing its BOM, of only one robot is currently doing so. analog_init must be called before this function can be used.<p>
|
103 |
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the direction of the maximum BOM reading</dd></dl> |
104 |
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__analog.html#g55f66ff6f3449ef81d97b7e47f041918" title="Initialize analog ports.">analog_init</a> </dd></dl> |
105 |
|
106 |
</div>
|
107 |
</div><p> |
108 |
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Sep 22 22:30:16 2008 for libdragonfly by |
109 |
<a href="http://www.doxygen.org/index.html"> |
110 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.4 </small></address> |
111 |
</body>
|
112 |
</html>
|