Revision 241
Updated libdragonfly documentation.
group__bom.html | ||
---|---|---|
1 | 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
2 |
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
|
2 |
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
|
3 | 3 |
<title>libdragonfly: BOM (Bearing and Orientation Module)</title> |
4 | 4 |
<link href="doxygen.css" rel="stylesheet" type="text/css"> |
5 | 5 |
<link href="tabs.css" rel="stylesheet" type="text/css"> |
6 | 6 |
</head><body> |
7 |
<!-- Generated by Doxygen 1.4.6 -->
|
|
7 |
<!-- Generated by Doxygen 1.5.3 -->
|
|
8 | 8 |
<div class="tabs"> |
9 | 9 |
<ul> |
10 | 10 |
<li><a href="index.html"><span>Main Page</span></a></li> |
11 | 11 |
<li><a href="modules.html"><span>Modules</span></a></li> |
12 | 12 |
<li><a href="files.html"><span>Files</span></a></li> |
13 |
</ul></div> |
|
13 |
<li><a href="pages.html"><span>Related Pages</span></a></li> |
|
14 |
</ul> |
|
15 |
</div> |
|
14 | 16 |
<h1>BOM (Bearing and Orientation Module)</h1>Functions for dealing with the BOM. |
15 | 17 |
<a href="#_details">More...</a><table border="0" cellpadding="0" cellspacing="0"> |
16 | 18 |
<tr><td></td></tr> |
... | ... | |
29 | 31 |
Functions for dealing with the BOM. |
30 | 32 |
<p> |
31 | 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> |
32 |
Include <a class="el" href="bom_8h.html">bom.h</a> to access these functions. <hr><h2>Function Documentation</h2> |
|
33 |
<a class="anchor" name="g61a66e53cdee8bce139c707153143b30"></a><!-- doxytag: member="bom.c::bom_off" ref="g61a66e53cdee8bce139c707153143b30" args="(void)" --><p> |
|
34 |
<table class="mdTable" cellpadding="2" cellspacing="0"> |
|
35 |
<tr> |
|
36 |
<td class="mdRow"> |
|
37 |
<table cellpadding="0" cellspacing="0" border="0"> |
|
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"> |
|
38 | 39 |
<tr> |
39 |
<td class="md" nowrap valign="top">void bom_off </td>
|
|
40 |
<td class="md" valign="top">( </td>
|
|
41 |
<td class="md" nowrap valign="top">void </td>
|
|
42 |
<td class="mdname1" valign="top" nowrap> </td>
|
|
43 |
<td class="md" valign="top"> ) </td>
|
|
44 |
<td class="md" nowrap></td>
|
|
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>
|
|
45 | 46 |
</tr> |
46 | 47 |
</table> |
47 |
</td> |
|
48 |
</tr> |
|
49 |
</table> |
|
50 |
<table cellspacing="5" cellpadding="0" border="0"> |
|
51 |
<tr> |
|
52 |
<td> |
|
53 |
|
|
54 |
</td> |
|
55 |
<td> |
|
48 |
</div> |
|
49 |
<div class="memdoc"> |
|
56 | 50 |
|
57 | 51 |
<p> |
58 | 52 |
Turns the BOM off. |
59 | 53 |
<p> |
60 | 54 |
Stops flashing the BOM. analog_init must be called before this function can be used.<p> |
61 |
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__bom.html#g93b665ff81fc6b58503c6ba5ba01c1bf">bom_on</a>, <a class="el" href="group__analog.html#g55f66ff6f3449ef81d97b7e47f041918">analog_init</a> </dd></dl> |
|
62 |
</td> |
|
63 |
</tr> |
|
64 |
</table> |
|
65 |
<a class="anchor" name="g93b665ff81fc6b58503c6ba5ba01c1bf"></a><!-- doxytag: member="bom.c::bom_on" ref="g93b665ff81fc6b58503c6ba5ba01c1bf" args="(void)" --><p> |
|
66 |
<table class="mdTable" cellpadding="2" cellspacing="0"> |
|
67 |
<tr> |
|
68 |
<td class="mdRow"> |
|
69 |
<table cellpadding="0" cellspacing="0" border="0"> |
|
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"> |
|
70 | 63 |
<tr> |
71 |
<td class="md" nowrap valign="top">void bom_on </td>
|
|
72 |
<td class="md" valign="top">( </td>
|
|
73 |
<td class="md" nowrap valign="top">void </td>
|
|
74 |
<td class="mdname1" valign="top" nowrap> </td>
|
|
75 |
<td class="md" valign="top"> ) </td>
|
|
76 |
<td class="md" nowrap></td>
|
|
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>
|
|
77 | 70 |
</tr> |
78 | 71 |
</table> |
79 |
</td> |
|
80 |
</tr> |
|
81 |
</table> |
|
82 |
<table cellspacing="5" cellpadding="0" border="0"> |
|
83 |
<tr> |
|
84 |
<td> |
|
85 |
|
|
86 |
</td> |
|
87 |
<td> |
|
72 |
</div> |
|
73 |
<div class="memdoc"> |
|
88 | 74 |
|
89 | 75 |
<p> |
90 | 76 |
Turns the BOM on. |
91 | 77 |
<p> |
92 | 78 |
Flashes the BOM. analog_init must be called before this function can be used.<p> |
93 |
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__bom.html#g61a66e53cdee8bce139c707153143b30">bom_off</a>, <a class="el" href="group__analog.html#g55f66ff6f3449ef81d97b7e47f041918">analog_init</a> </dd></dl> |
|
94 |
</td> |
|
95 |
</tr> |
|
96 |
</table> |
|
97 |
<a class="anchor" name="g86753fe7440cd64e60c58ad31c62264a"></a><!-- doxytag: member="bom.c::get_max_bom" ref="g86753fe7440cd64e60c58ad31c62264a" args="(void)" --><p> |
|
98 |
<table class="mdTable" cellpadding="2" cellspacing="0"> |
|
99 |
<tr> |
|
100 |
<td class="mdRow"> |
|
101 |
<table cellpadding="0" cellspacing="0" border="0"> |
|
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"> |
|
102 | 87 |
<tr> |
103 |
<td class="md" nowrap valign="top">int get_max_bom </td>
|
|
104 |
<td class="md" valign="top">( </td>
|
|
105 |
<td class="md" nowrap valign="top">void </td>
|
|
106 |
<td class="mdname1" valign="top" nowrap> </td>
|
|
107 |
<td class="md" valign="top"> ) </td>
|
|
108 |
<td class="md" nowrap></td>
|
|
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>
|
|
109 | 94 |
</tr> |
110 | 95 |
</table> |
111 |
</td> |
|
112 |
</tr> |
|
113 |
</table> |
|
114 |
<table cellspacing="5" cellpadding="0" border="0"> |
|
115 |
<tr> |
|
116 |
<td> |
|
117 |
|
|
118 |
</td> |
|
119 |
<td> |
|
96 |
</div> |
|
97 |
<div class="memdoc"> |
|
120 | 98 |
|
121 | 99 |
<p> |
122 | 100 |
Returns the location of the maximum BOM reading. |
123 | 101 |
<p> |
124 | 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> |
125 |
<dl compact><dt><b>Returns:</b></dt><dd>the direction of the maximum BOM reading</dd></dl> |
|
126 |
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__analog.html#g55f66ff6f3449ef81d97b7e47f041918">analog_init</a> </dd></dl>
|
|
127 |
</td> |
|
128 |
</tr>
|
|
129 |
</table>
|
|
130 |
<hr size="1"><address style="align: right;"><small>Generated on Wed Sep 26 17:39:30 2007 for libdragonfly by
|
|
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 Thu Nov 8 23:15:40 2007 for libdragonfly by
|
|
131 | 109 |
<a href="http://www.doxygen.org/index.html"> |
132 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
|
|
110 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
|
|
133 | 111 |
</body> |
134 | 112 |
</html> |
Also available in: Unified diff