<!-- iframe showing the search results (closed by default) -->
<divid="MSearchResultsWindow">
<iframesrc="javascript:void(0)"frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<divclass="header">
<divclass="summary">
<ahref="#func-members">Functions</a></div>
<divclass="headertitle">
<divclass="title">Setters and getters<divclass="ingroups"><aclass="el"href="../../da/daf/group__lowerlevelus.html">Lower level ultra sonic methods and getters</a></div></div></div>
<trclass="memitem:gaa7c5a6563a5736ed38d12f616de480df"><tdclass="memItemLeft"align="right"valign="top">void </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="../../db/ddd/group__lowerlevelusgetters.html#gaa7c5a6563a5736ed38d12f616de480df">CodeRacer::usonic_set_stop_distance_cm</a> (unsigned long stop_distance_cm)</td></tr>
<trclass="memdesc:gaa7c5a6563a5736ed38d12f616de480df"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the stop distance in cm. <ahref="#gaa7c5a6563a5736ed38d12f616de480df">More...</a><br/></td></tr>
<trclass="memitem:ga2f06c193ae86c5b1cba450caf5adf146"><tdclass="memItemLeft"align="right"valign="top">void </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="../../db/ddd/group__lowerlevelusgetters.html#ga2f06c193ae86c5b1cba450caf5adf146">CodeRacer::usonic_set_stop_distance_us</a> (unsigned long stop_distance_us)</td></tr>
<trclass="memdesc:ga2f06c193ae86c5b1cba450caf5adf146"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the stop distance in cm. <ahref="#ga2f06c193ae86c5b1cba450caf5adf146">More...</a><br/></td></tr>
<trclass="memdesc:ga917b90f21e731ef5f690d5198e7f4d3e"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the last measured distance in microseconds. <ahref="#ga917b90f21e731ef5f690d5198e7f4d3e">More...</a><br/></td></tr>
<trclass="memdesc:gad59842c14196598e55644b2a22621454"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the last measured distance in cm. <ahref="#gad59842c14196598e55644b2a22621454">More...</a><br/></td></tr>
<p>If start_stop_at_min_distance() is used and distance measured with one of the measurement methods - the racer will be stopped immediately. All except the singe shot methods of the ultra sonic measurements methods supports that. Internally the stop distance will be set as both - in cm and in microseconds. </p><dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">stop_distance_cm</td><td>Distance in cm the racer will be stopped if that features was enabled by start_stop_at_min_distance() before. </td></tr>
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00825">825</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<p>If start_stop_at_min_distance() is used and distance measured with one of the measurement methods - the racer will be stopped immediately. All except the singe shot methods of the ultra sonic measurements methods supports that. Internally the stop distance will be set as both - in cm and in microseconds. </p><dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">stop_distance_us</td><td>Distance in cm the racer will be stopped if that features was enabled by start_stop_at_min_distance() before. </td></tr>
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00837">837</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<divclass="fragment"><divclass="line"><aname="l00838"></a><spanclass="lineno"> 838</span> {</div><divclass="line"><aname="l00839"></a><spanclass="lineno"> 839</span>  _usonic_stop_distance_us = stop_distance_us;</div><divclass="line"><aname="l00840"></a><spanclass="lineno"> 840</span> }</div></div><!-- fragment -->
<tdclass="memname">unsigned long CodeRacer::usonic_distance_us </td>
<td>(</td>
<tdclass="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><divclass="memdoc">
<p>Returns the last measured distance in microseconds. </p>
<dlclass="section return"><dt>Returns</dt><dd>Distance in microseconds </dd></dl>
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00845">845</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<divclass="fragment"><divclass="line"><aname="l00845"></a><spanclass="lineno"> 845</span>  {</div><divclass="line"><aname="l00846"></a><spanclass="lineno"> 846</span> <spanclass="keywordflow">return</span>(_usonic_distance_us);</div><divclass="line"><aname="l00847"></a><spanclass="lineno"> 847</span> }</div></div><!-- fragment -->
<tdclass="memname">unsigned long CodeRacer::usonic_distance_cm </td>
<td>(</td>
<tdclass="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><divclass="memdoc">
<p>Returns the last measured distance in cm. </p>
<dlclass="section return"><dt>Returns</dt><dd>Distance in cm </dd></dl>
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00852">852</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<divclass="fragment"><divclass="line"><aname="l00852"></a><spanclass="lineno"> 852</span>  {</div><divclass="line"><aname="l00853"></a><spanclass="lineno"> 853</span> <spanclass="keywordflow">return</span>(_usonic_distance_cm);</div><divclass="line"><aname="l00854"></a><spanclass="lineno"> 854</span> }</div></div><!-- fragment -->
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<divid="nav-path"class="navpath"><!-- id is needed for treeview function! -->