ardupilot/libraries/doc/html/_compass_8h_source.html

63 lines
5.8 KiB
HTML
Raw Normal View History

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>ArduPilot Libraries: /home/jgoppert/Projects/ap/libraries/AP_Compass/Compass.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<div class="header">
<div class="headertitle">
<h1>/home/jgoppert/Projects/ap/libraries/AP_Compass/Compass.h</h1> </div>
</div>
<div class="contents">
<a href="_compass_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef Compass_h</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define Compass_h</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;inttypes.h&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &quot;../AP_Math/AP_Math.h&quot;</span>
<a name="l00006"></a>00006
<a name="l00007"></a><a class="code" href="class_compass.html">00007</a> <span class="keyword">class </span><a class="code" href="class_compass.html">Compass</a>
<a name="l00008"></a>00008 {
<a name="l00009"></a>00009 <span class="keyword">public</span>:
<a name="l00010"></a><a class="code" href="class_compass.html#a8324bcab8618a2a2076a511dec2cc8a0">00010</a> <span class="keywordtype">int</span> <a class="code" href="class_compass.html#a8324bcab8618a2a2076a511dec2cc8a0">mag_x</a>;
<a name="l00011"></a><a class="code" href="class_compass.html#a4de5f44fab49fabf8524ea79e9d3f84a">00011</a> <span class="keywordtype">int</span> <a class="code" href="class_compass.html#a4de5f44fab49fabf8524ea79e9d3f84a">mag_y</a>;
<a name="l00012"></a><a class="code" href="class_compass.html#a6c05eabd47bd8116c4823481c3ea4549">00012</a> <span class="keywordtype">int</span> <a class="code" href="class_compass.html#a6c05eabd47bd8116c4823481c3ea4549">mag_z</a>;
<a name="l00013"></a><a class="code" href="class_compass.html#af34cf40b43e957554a48ed27b848a35f">00013</a> <span class="keywordtype">float</span> <a class="code" href="class_compass.html#af34cf40b43e957554a48ed27b848a35f">heading</a>;
<a name="l00014"></a><a class="code" href="class_compass.html#aafc7608bd711702f519d52afbc06dc7a">00014</a> <span class="keywordtype">float</span> <a class="code" href="class_compass.html#aafc7608bd711702f519d52afbc06dc7a">heading_x</a>;
<a name="l00015"></a><a class="code" href="class_compass.html#a2e1554fb76b067f36d011f59e7e8dd58">00015</a> <span class="keywordtype">float</span> <a class="code" href="class_compass.html#a2e1554fb76b067f36d011f59e7e8dd58">heading_y</a>;
<a name="l00016"></a><a class="code" href="class_compass.html#a66419d0c87ac23bc422db0279486fd31">00016</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="class_compass.html#a66419d0c87ac23bc422db0279486fd31">last_update</a>;
<a name="l00017"></a>00017
<a name="l00018"></a>00018 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_compass.html#a825f597357f66521819807d68ffc551e">init</a>(<span class="keywordtype">int</span> initialise_wire_lib = 1);
<a name="l00019"></a>00019 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_compass.html#ab17ec5cc0bb81f2c94046e4ef5150106">read</a>();
<a name="l00020"></a>00020 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_compass.html#a7503a41b6978e1f1a9edcd2f11fddd01">calculate</a>(<span class="keywordtype">float</span> roll, <span class="keywordtype">float</span> pitch);
<a name="l00021"></a>00021 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_compass.html#a57b71b1f29b91e73f84bcc6860f3cf51">set_orientation</a>(<span class="keyword">const</span> <a class="code" href="class_matrix3.html">Matrix3f</a> &amp;rotation_matrix);
<a name="l00022"></a>00022 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_compass.html#af4ae15041479ecb2631ba6c39e84c561">set_offsets</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> z);
<a name="l00023"></a>00023 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_compass.html#a3b7ea064e17a870a419c8f45a7c1fb5d">set_declination</a>(<span class="keywordtype">float</span> radians);
<a name="l00024"></a>00024 };
<a name="l00025"></a>00025 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Sun Dec 26 2010 19:58:33 for ArduPilot Libraries by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>