<p>Inherited by <aclass="el"href="class_a_p___e_e_prom_var.html">AP_EEPromVar< type ></a>.</p>
<p><ahref="class_a_p___var-members.html">List of all members.</a></p>
<tableclass="memberdecls">
<tr><tdcolspan="2"><h2><aname="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><tdclass="memItemLeft"align="right"valign="top"> </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="class_a_p___var.html#a76488dc07d01ace3bf34ec4e00c3a061">AP_Var</a> (const type &data, const char *name="", const bool &sync=false)</td></tr>
<tr><tdclass="memItemLeft"align="right"valign="top">void </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="class_a_p___var.html#ac6d45de415b68d734876f3e4dd1e19f4">set</a> (const type &val)</td></tr>
<tr><tdclass="memItemLeft"align="right"valign="top">const type & </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="class_a_p___var.html#a22c498cc35d5d69d1e4840bd4d9bacab">get</a> ()</td></tr>
<p>The parameter template class. This class implements get/set/save/load etc for the abstract template type. </p>
<p>Definition at line <aclass="el"href="_a_p___common_8h_source.html#l00092">92</a> of file <aclass="el"href="_a_p___common_8h_source.html">AP_Common.h</a>.</p>
<hr/><h2>Constructor & Destructor Documentation</h2>
<p>Definition at line <aclass="el"href="_a_p___common_8h_source.html#l00098">98</a> of file <aclass="el"href="_a_p___common_8h_source.html">AP_Common.h</a>.</p>
<tdclass="memname">const type&<aclass="el"href="class_a_p___var.html">AP_Var</a>< type >::get </td>
<td>(</td>
<tdclass="paramname"></td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<divclass="memdoc">
<p>Get the variable value. </p>
<p>Definition at line <aclass="el"href="_a_p___common_8h_source.html#l00114">114</a> of file <aclass="el"href="_a_p___common_8h_source.html">AP_Common.h</a>.</p>
<tdclass="memname">const float&<aclass="el"href="class_a_p___var.html">AP_Var</a>< type >::getAsFloat </td>
<td>(</td>
<tdclass="paramname"></td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<divclass="memdoc">
<p>Get the variable as a float </p>
<p>Definition at line <aclass="el"href="_a_p___common_8h_source.html#l00129">129</a> of file <aclass="el"href="_a_p___common_8h_source.html">AP_Common.h</a>.</p>
<tdclass="memname">const char* <aclass="el"href="class_a_p___var.html">AP_Var</a>< type >::getName </td>
<td>(</td>
<tdclass="paramname"></td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<divclass="memdoc">
<p>Get the name. This is useful for ground stations. </p>
<p>Definition at line <aclass="el"href="_a_p___common_8h_source.html#l00151">151</a> of file <aclass="el"href="_a_p___common_8h_source.html">AP_Common.h</a>.</p>
<tdclass="memname">const bool&<aclass="el"href="class_a_p___var.html">AP_Var</a>< type >::getSync </td>
<td>(</td>
<tdclass="paramname"></td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<divclass="memdoc">
<p>If sync is true the a load will always occure before a get and a save will always occure before a set. </p>
<p>Definition at line <aclass="el"href="_a_p___common_8h_source.html#l00157">157</a> of file <aclass="el"href="_a_p___common_8h_source.html">AP_Common.h</a>.</p>
<tdclass="memname">virtual void <aclass="el"href="class_a_p___var.html">AP_Var</a>< type >::load </td>
<td>(</td>
<tdclass="paramname"></td>
<td> ) </td>
<td><code> [inline, virtual]</code></td>
</tr>
</table>
</div>
<divclass="memdoc">
<p>Load a variable from eeprom </p>
<p>Definition at line <aclass="el"href="_a_p___common_8h_source.html#l00144">144</a> of file <aclass="el"href="_a_p___common_8h_source.html">AP_Common.h</a>.</p>
<tdclass="memname">virtual void <aclass="el"href="class_a_p___var.html">AP_Var</a>< type >::save </td>
<td>(</td>
<tdclass="paramname"></td>
<td> ) </td>
<td><code> [inline, virtual]</code></td>
</tr>
</table>
</div>
<divclass="memdoc">
<p>Save a variable to eeprom </p>
<p>Definition at line <aclass="el"href="_a_p___common_8h_source.html#l00137">137</a> of file <aclass="el"href="_a_p___common_8h_source.html">AP_Common.h</a>.</p>
</div>
</div>
<aclass="anchor"id="ac6d45de415b68d734876f3e4dd1e19f4"></a><!-- doxytag: member="AP_Var::set" ref="ac6d45de415b68d734876f3e4dd1e19f4" args="(const type &val)" -->
<divclass="memitem">
<divclass="memproto">
<divclass="memtemplate">
template<class type ></div>
<tableclass="memname">
<tr>
<tdclass="memname">void <aclass="el"href="class_a_p___var.html">AP_Var</a>< type >::set </td>
<td>(</td>
<tdclass="paramtype">const type & </td>
<tdclass="paramname"><em>val</em></td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<divclass="memdoc">
<p>Set the variable value </p>
<p>Definition at line <aclass="el"href="_a_p___common_8h_source.html#l00106">106</a> of file <aclass="el"href="_a_p___common_8h_source.html">AP_Common.h</a>.</p>
<tdclass="memname">void <aclass="el"href="class_a_p___var.html">AP_Var</a>< type >::setAsFloat </td>
<td>(</td>
<tdclass="paramtype">const float & </td>
<tdclass="paramname"><em>val</em></td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<divclass="memdoc">
<p>Set the variable value as a float </p>
<p>Definition at line <aclass="el"href="_a_p___common_8h_source.html#l00122">122</a> of file <aclass="el"href="_a_p___common_8h_source.html">AP_Common.h</a>.</p>
<tdclass="memname">void <aclass="el"href="class_a_p___var.html">AP_Var</a>< type >::setSync </td>
<td>(</td>
<tdclass="paramtype">bool </td>
<tdclass="paramname"><em>sync</em></td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<divclass="memdoc">
<p>Definition at line <aclass="el"href="_a_p___common_8h_source.html#l00158">158</a> of file <aclass="el"href="_a_p___common_8h_source.html">AP_Common.h</a>.</p>
<tdclass="memname">type <aclass="el"href="class_a_p___var.html">AP_Var</a>< type >::<aclass="el"href="class_a_p___var.html#a03988b519ae71a3d59a74dede0b015f3">_data</a><code> [protected]</code></td>
</tr>
</table>
</div>
<divclass="memdoc">
<p>Definition at line <aclass="el"href="_a_p___common_8h_source.html#l00161">161</a> of file <aclass="el"href="_a_p___common_8h_source.html">AP_Common.h</a>.</p>
<tdclass="memname">const char* <aclass="el"href="class_a_p___var.html">AP_Var</a>< type >::<aclass="el"href="class_a_p___var.html#a0df623830e9c63d95c840f9b8c1d65d6">_name</a><code> [protected]</code></td>
</tr>
</table>
</div>
<divclass="memdoc">
<p>The data that is stored on the heap </p>
<p>Definition at line <aclass="el"href="_a_p___common_8h_source.html#l00162">162</a> of file <aclass="el"href="_a_p___common_8h_source.html">AP_Common.h</a>.</p>
<tdclass="memname">bool <aclass="el"href="class_a_p___var.html">AP_Var</a>< type >::<aclass="el"href="class_a_p___var.html#a45e789309835299b71050fda446b019a">_sync</a><code> [protected]</code></td>
</tr>
</table>
</div>
<divclass="memdoc">
<p>The variable name, useful for gcs and terminal output </p>
<p>Definition at line <aclass="el"href="_a_p___common_8h_source.html#l00163">163</a> of file <aclass="el"href="_a_p___common_8h_source.html">AP_Common.h</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
Generated for ArduPilot Libraries by <ahref="http://www.doxygen.org/index.html"><imgclass="footer"src="doxygen.png"alt="doxygen"/></a></small></address>