<!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/PID/PID.cpp File Reference</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> <div class="header"> <div class="summary"> <a href="#define-members">Defines</a> </div> <div class="headertitle"> <h1>/home/jgoppert/Projects/ap/libraries/PID/PID.cpp File Reference</h1> </div> </div> <div class="contents"> <p>Generic <a class="el" href="class_p_i_d.html" title="Object managing one PID control.">PID</a> algorithm, with EEPROM-backed storage of constants. <a href="#_details">More...</a></p> <code>#include <math.h></code><br/> <code>#include <avr/eeprom.h></code><br/> <code>#include "<a class="el" href="_p_i_d_8h_source.html">PID.h</a>"</code><br/> <div class="dynheader"> Include dependency graph for PID.cpp:</div> <div class="dyncontent"> <div class="center"><img src="_p_i_d_8cpp__incl.png" border="0" usemap="#_2home_2jgoppert_2_projects_2ap_2libraries_2_p_i_d_2_p_i_d_8cpp" alt=""/></div> <map name="_2home_2jgoppert_2_projects_2ap_2libraries_2_p_i_d_2_p_i_d_8cpp" id="_2home_2jgoppert_2_projects_2ap_2libraries_2_p_i_d_2_p_i_d_8cpp"> <area shape="rect" id="node7" href="_p_i_d_8h.html" title="Generic PID algorithm, with EEPROM-backed storage of constants." alt="" coords="245,83,299,112"/><area shape="rect" id="node11" href="_a_p___e_e_p_r_o_m_b_8h.html" title="AP_EEPROMB manager." alt="" coords="271,160,391,189"/><area shape="rect" id="node13" href="_w_program_8h.html" title="WProgram.h" alt="" coords="281,237,380,267"/></map> </div> <p><a href="_p_i_d_8cpp_source.html">Go to the source code of this file.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="define-members"></a> Defines</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_p_i_d_8cpp.html#ab8f7e1a3714dd3183677d5e8e75ef24e">_kp</a> _gain_array[0]</td></tr> <tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_p_i_d_8cpp.html#a7a17058966c2812696203c4e966a6d8a">_ki</a> _gain_array[1]</td></tr> <tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_p_i_d_8cpp.html#ad48a07a4a740db474eb5f53c1c07bfff">_kd</a> _gain_array[2]</td></tr> <tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_p_i_d_8cpp.html#a07c666a25bbf45278a273090ae18b832">_imax</a> _gain_array[3]</td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Generic <a class="el" href="class_p_i_d.html" title="Object managing one PID control.">PID</a> algorithm, with EEPROM-backed storage of constants. </p> <p>Definition in file <a class="el" href="_p_i_d_8cpp_source.html">PID.cpp</a>.</p> <hr/><h2>Define Documentation</h2> <a class="anchor" id="a07c666a25bbf45278a273090ae18b832"></a><!-- doxytag: member="PID.cpp::_imax" ref="a07c666a25bbf45278a273090ae18b832" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define _imax _gain_array[3]</td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_p_i_d_8cpp_source.html#l00015">15</a> of file <a class="el" href="_p_i_d_8cpp_source.html">PID.cpp</a>.</p> </div> </div> <a class="anchor" id="ad48a07a4a740db474eb5f53c1c07bfff"></a><!-- doxytag: member="PID.cpp::_kd" ref="ad48a07a4a740db474eb5f53c1c07bfff" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define _kd _gain_array[2]</td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_p_i_d_8cpp_source.html#l00014">14</a> of file <a class="el" href="_p_i_d_8cpp_source.html">PID.cpp</a>.</p> </div> </div> <a class="anchor" id="a7a17058966c2812696203c4e966a6d8a"></a><!-- doxytag: member="PID.cpp::_ki" ref="a7a17058966c2812696203c4e966a6d8a" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define _ki _gain_array[1]</td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_p_i_d_8cpp_source.html#l00013">13</a> of file <a class="el" href="_p_i_d_8cpp_source.html">PID.cpp</a>.</p> </div> </div> <a class="anchor" id="ab8f7e1a3714dd3183677d5e8e75ef24e"></a><!-- doxytag: member="PID.cpp::_kp" ref="ab8f7e1a3714dd3183677d5e8e75ef24e" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define _kp _gain_array[0]</td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_p_i_d_8cpp_source.html#l00012">12</a> of file <a class="el" href="_p_i_d_8cpp_source.html">PID.cpp</a>.</p> </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>