2010-12-26 20:59:17 -04:00
<!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" / >
2010-12-30 03:51:53 -04:00
< title > ArduPilot Libraries: Compass.h Source File< / title >
2010-12-26 20:59:17 -04:00
< link href = "tabs.css" rel = "stylesheet" type = "text/css" / >
2010-12-26 23:23:35 -04:00
< link href = "search/search.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javaScript" src = "search/search.js" > < / script >
2010-12-26 20:59:17 -04:00
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
< / head >
2010-12-26 23:23:35 -04:00
< body onload = 'searchBox.OnSelectItem(0);' >
2010-12-26 20:59:17 -04:00
<!-- 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 >
2010-12-30 03:51:53 -04:00
< li > < a href = "pages.html" > < span > Related Pages< / span > < / a > < / li >
2010-12-26 20:59:17 -04:00
< 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" >
2010-12-30 03:51:53 -04:00
< h1 > Compass.h< / h1 > < / div >
2010-12-26 20:59:17 -04:00
< / 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
2010-12-30 03:51:53 -04:00
< a name = "l00018" > < / a > 00018 < span class = "keyword" > virtual< / span > < span class = "keywordtype" > bool< / span > < a class = "code" href = "class_compass.html#a6de4eb3c975bd7757885a6661cf1a79e" > init< / a > (< span class = "keywordtype" > int< / span > initialise_wire_lib = 1) = 0;
< a name = "l00019" > < / a > 00019 < span class = "keyword" > virtual< / span > < span class = "keywordtype" > void< / span > < a class = "code" href = "class_compass.html#a270aff91583d79826f27f09d64072be8" > read< / a > () = 0;
< a name = "l00020" > < / a > 00020 < span class = "keyword" > virtual< / span > < span class = "keywordtype" > void< / span > < a class = "code" href = "class_compass.html#a922be89b146a3712699f8506a298d8f2" > calculate< / a > (< span class = "keywordtype" > float< / span > roll, < span class = "keywordtype" > float< / span > pitch) = 0;
< a name = "l00021" > < / a > 00021 < span class = "keyword" > virtual< / span > < span class = "keywordtype" > void< / span > < a class = "code" href = "class_compass.html#a9c7556a20a579b2f47a67d1b3d67331c" > set_orientation< / a > (< span class = "keyword" > const< / span > < a class = "code" href = "class_matrix3.html" > Matrix3f< / a > & rotation_matrix) = 0;
< a name = "l00022" > < / a > 00022 < span class = "keyword" > virtual< / span > < span class = "keywordtype" > void< / span > < a class = "code" href = "class_compass.html#ad806fb3a6cfe66ab41098705252f8989" > set_offsets< / a > (< span class = "keywordtype" > int< / span > x, < span class = "keywordtype" > int< / span > y, < span class = "keywordtype" > int< / span > z) = 0;
< a name = "l00023" > < / a > 00023 < span class = "keyword" > virtual< / span > < span class = "keywordtype" > void< / span > < a class = "code" href = "class_compass.html#a7fb27fec44c834a4073dc84da445827d" > set_declination< / a > (< span class = "keywordtype" > float< / span > radians) = 0;
2010-12-26 20:59:17 -04:00
< a name = "l00024" > < / a > 00024 };
< a name = "l00025" > < / a > 00025 < span class = "preprocessor" > #endif< / span >
< / pre > < / div > < / div >
< / div >
2010-12-26 23:23:35 -04:00
< 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 >
2010-12-26 20:59:17 -04:00
< / body >
< / html >