mirror of https://github.com/ArduPilot/ardupilot
64 lines
5.9 KiB
HTML
64 lines
5.9 KiB
HTML
<!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="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javaScript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
|
|
</head>
|
|
<body onload='searchBox.OnSelectItem(0);'>
|
|
<!-- Generated by Doxygen 1.7.1 -->
|
|
<div class="navigation" id="top">
|
|
<div class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="main.html"><span>Main 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 List</span></a></li>
|
|
<li><a href="globals.html"><span>File 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 <inttypes.h></span>
|
|
<a name="l00005"></a>00005 <span class="preprocessor">#include "../AP_Math/AP_Math.h"</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> &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 for ArduPilot Libraries by <a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.png" alt="doxygen"/></a></small></address>
|
|
</body>
|
|
</html>
|