<p>Simple commandline menu subsystem. The <aclass="el"href="class_menu.html"title="Class defining and handling one menu tree.">Menu</a> class implements a simple CLI that accepts commands typed by the user, and passes the arguments to those commands to a function defined as handing the command.
<ahref="#_details">More...</a></p>
<divclass="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<areashape="rect"id="node3"href="_a_p___common_8h.html"title="Common definitions and utility routines for the ArduPilot libraries."alt=""coords="440,83,875,112"/><areashape="rect"id="node7"href="menu_8cpp.html"title="/home/jgoppert/Projects/ap/libraries/AP_Common/menu.cpp"alt=""coords="5,160,408,189"/><areashape="rect"id="node5"href="_a_p___common_8cpp.html"title="Common utility routines for the ArduPilot libraries."alt=""coords="432,160,883,189"/><areashape="rect"id="node9"href="_a_p___e_e_prom_8h.html"title="/home/jgoppert/Projects/ap/libraries/AP_EEProm/AP_EEProm.h"alt=""coords="907,160,1323,189"/><areashape="rect"id="node13"href="_a_p___rc_channel_8cpp.html"title="/home/jgoppert/Projects/ap/libraries/AP_RcChannel/AP_RcChannel.cpp"alt=""coords="1347,160,1813,189"/><areashape="rect"id="node11"href="_a_p___e_e_prom_8cpp.html"title="/home/jgoppert/Projects/ap/libraries/AP_EEProm/AP_EEProm.cpp"alt=""coords="899,237,1331,267"/></map>
</div>
<p><ahref="menu_8h_source.html">Go to the source code of this file.</a></p>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Class defining and handling one menu tree. <ahref="class_menu.html#_details">More...</a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">maximum size of a command name <ahref="#acad44891e2415450762891bd2ca7027d"></a><br/></td></tr>
<p>Simple commandline menu subsystem. The <aclass="el"href="class_menu.html"title="Class defining and handling one menu tree.">Menu</a> class implements a simple CLI that accepts commands typed by the user, and passes the arguments to those commands to a function defined as handing the command. </p>
<p>Commands are defined in an array of <aclass="el"href="struct_menu_1_1command.html">Menu::command</a> structures passed to the constructor. Each entry in the array defines one command.</p>
<p>Arguments passed to the handler function are pre-converted to both long and float for convenience. </p>
<p>Definition in file <aclass="el"href="menu_8h_source.html">menu.h</a>.</p>
<spanclass="keyword">static</span><aclass="code"href="class_menu.html"title="Class defining and handling one menu tree.">Menu</a> name(__menu_name__ ##name, commands, <spanclass="keyword">sizeof</span>(commands) / <spanclass="keyword">sizeof</span>(commands[0]))
</pre></div><p>Macros used to define a menu.</p>
<p>The commands argument should be an arary of <aclass="el"href="struct_menu_1_1command.html">Menu::command</a> structures, one per command name. The array does not need to be terminated with any special record.</p>
<p>Use name.run() to run the menu.</p>
<p>The MENU2 macro supports the optional pre-prompt printing function. </p>
<p>Definition at line <aclass="el"href="menu_8h_source.html#l00133">133</a> of file <aclass="el"href="menu_8h_source.html">menu.h</a>.</p>
<spanclass="keyword">static</span><aclass="code"href="class_menu.html"title="Class defining and handling one menu tree.">Menu</a> name(__menu_name__ ##name, commands, <spanclass="keyword">sizeof</span>(commands) / <spanclass="keyword">sizeof</span>(commands[0]), preprompt)
</pre></div>
<p>Definition at line <aclass="el"href="menu_8h_source.html#l00137">137</a> of file <aclass="el"href="menu_8h_source.html">menu.h</a>.</p>