<trclass="memdesc:ga71df7ac5e41ae776a6c786d3dc36f35a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Stops the racer and sets status LEDs. <ahref="#ga71df7ac5e41ae776a6c786d3dc36f35a">More...</a><br/></td></tr>
<trclass="memdesc:ga8be6a850099812153dcf5768d7fc8b8c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the speed and the directions of both drives so that it will move forward. <ahref="#ga8be6a850099812153dcf5768d7fc8b8c">More...</a><br/></td></tr>
<trclass="memdesc:gaae6fc379ec43cbe2cb2f63fbd12dbe0d"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the speed as specified for both drives and the directions of both drives so that it will move forward. <ahref="#gaae6fc379ec43cbe2cb2f63fbd12dbe0d">More...</a><br/></td></tr>
<trclass="memdesc:ga98aa8a5a46f769d59e6c1067c8418cfb"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the speed and the directions of both drives so that it will move backward. <ahref="#ga98aa8a5a46f769d59e6c1067c8418cfb">More...</a><br/></td></tr>
<trclass="memdesc:ga6cd8356ac76360b014db6170276b6b30"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the speed as specified for both drives and the directions of both drives so that it will move backward. <ahref="#ga6cd8356ac76360b014db6170276b6b30">More...</a><br/></td></tr>
<trclass="memdesc:ga86b7caf6ff46e9d1ad90ed507864b175"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Will turn the racer to the left for the internally stroe time in ms and with the internally stored speed. <ahref="#ga86b7caf6ff46e9d1ad90ed507864b175">More...</a><br/></td></tr>
<trclass="memitem:ga30e1ec3fbbc206f93ea66dbf91b5fd95"><tdclass="memItemLeft"align="right"valign="top">void </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="../../d2/d40/group__higherlevelmeths.html#ga30e1ec3fbbc206f93ea66dbf91b5fd95">CodeRacer::turn_left</a> (unsigned long turn_for_ms)</td></tr>
<trclass="memdesc:ga30e1ec3fbbc206f93ea66dbf91b5fd95"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Will turn the racer to the left for the specified time in ms and with the internally stored speed. <ahref="#ga30e1ec3fbbc206f93ea66dbf91b5fd95">More...</a><br/></td></tr>
<trclass="memitem:gae6daa587199e5bf95b1aac675de53b0e"><tdclass="memItemLeft"align="right"valign="top">void </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="../../d2/d40/group__higherlevelmeths.html#gae6daa587199e5bf95b1aac675de53b0e">CodeRacer::turn_left</a> (unsigned long turn_for_ms, uint8_t left_speed, uint8_t right_speed)</td></tr>
<trclass="memdesc:gae6daa587199e5bf95b1aac675de53b0e"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Will turn the racer to the left for the specified time in ms and with the specified speed. <ahref="#gae6daa587199e5bf95b1aac675de53b0e">More...</a><br/></td></tr>
<trclass="memdesc:ga8969fb2d6e2b5ac44a99197931e6b8da"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Will turn the racer to the right for the internally stroe time in ms and with the internally stored speed. <ahref="#ga8969fb2d6e2b5ac44a99197931e6b8da">More...</a><br/></td></tr>
<trclass="memitem:gae1f175aad98d773b0206f483ae0bb4ea"><tdclass="memItemLeft"align="right"valign="top">void </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="../../d2/d40/group__higherlevelmeths.html#gae1f175aad98d773b0206f483ae0bb4ea">CodeRacer::turn_right</a> (unsigned long turn_for_ms)</td></tr>
<trclass="memdesc:gae1f175aad98d773b0206f483ae0bb4ea"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Will turn the racer to the right for the specified time in ms and with the internally stored speed. <ahref="#gae1f175aad98d773b0206f483ae0bb4ea">More...</a><br/></td></tr>
<trclass="memitem:gad10b3457489cc7e25ffb4d64c539528a"><tdclass="memItemLeft"align="right"valign="top">void </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="../../d2/d40/group__higherlevelmeths.html#gad10b3457489cc7e25ffb4d64c539528a">CodeRacer::turn_right</a> (unsigned long turn_for_ms, uint8_t left_speed, uint8_t right_speed)</td></tr>
<trclass="memdesc:gad10b3457489cc7e25ffb4d64c539528a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Will turn the racer to the right for the specified time in ms and with the specified speed. <ahref="#gad10b3457489cc7e25ffb4d64c539528a">More...</a><br/></td></tr>
<trclass="memdesc:ga128683caea019a89bce06f722ba92556"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Enables to stopp the racer if during a distance measurement the measured distance is smaller then the internally stored minimal distance. <ahref="#ga128683caea019a89bce06f722ba92556">More...</a><br/></td></tr>
<trclass="memitem:ga64bc1b2a8ed5bc3ec5e706fa70a1385d"><tdclass="memItemLeft"align="right"valign="top">void </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="../../d2/d40/group__higherlevelmeths.html#ga64bc1b2a8ed5bc3ec5e706fa70a1385d">CodeRacer::start_stop_at_min_distance</a> (unsigned long min_distance_cm)</td></tr>
<trclass="memdesc:ga64bc1b2a8ed5bc3ec5e706fa70a1385d"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Enables to stopp the racer if during a distance measurement the measured distance is smaller then the specified minimal distance. <ahref="#ga64bc1b2a8ed5bc3ec5e706fa70a1385d">More...</a><br/></td></tr>
<trclass="memdesc:gac664109241d08b8dc52db5721f394b22"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Disables to stopp the racer if during a distance measurement the measured distance is smaller then the specified minimal distance. <ahref="#gac664109241d08b8dc52db5721f394b22">More...</a><br/></td></tr>
<trclass="memdesc:ga34e2fe2123e76fd844482dfef6c5a9c8"><tdclass="mdescLeft"> </td><tdclass="mdescRight">This will return if the codracer is in active mode or not. <ahref="#ga34e2fe2123e76fd844482dfef6c5a9c8">More...</a><br/></td></tr>
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00161">161</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<p>Sets the speed and the directions of both drives so that it will move forward. </p>
<p>The speed is taken from the header file or set by one of the methods defined in the lower level drive methods section </p><dlclass="section return"><dt>Returns</dt><dd>nothing </dd></dl>
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00173">173</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<p>Sets the speed as specified for both drives and the directions of both drives so that it will move forward. </p>
<p>The specified speed values for both drives will be stored internaly so next time if you use e.g. drive_forward() exactly the here specified values will be taken. </p><dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">left_speed</td><td>speed for the left side drive. 0<=speed<=255 </td></tr>
<tr><tdclass="paramname">right_speed</td><td>speed for the right side drive. 0<=speed<=255 </td></tr>
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00185">185</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<p>Sets the speed and the directions of both drives so that it will move backward. </p>
<p>The speed is taken from the header file or set by one of the methods defined in the lower level drive methods section </p><dlclass="section return"><dt>Returns</dt><dd>nothing </dd></dl>
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00199">199</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<divclass="fragment"><divclass="line"><aname="l00200"></a><spanclass="lineno"> 200</span> {</div><divclass="line"><aname="l00201"></a><spanclass="lineno"> 201</span>  drive_backward(_drive_left_speed, _drive_right_speed);</div><divclass="line"><aname="l00202"></a><spanclass="lineno"> 202</span> }</div></div><!-- fragment -->
<p>Sets the speed as specified for both drives and the directions of both drives so that it will move backward. </p>
<p>The specified speed values for both drives will be stored internaly so next time if you use e.g. drive_backward() exactly the here specified values will be taken. </p><dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">left_speed</td><td>speed for the left side drive. 0<=speed<=255 </td></tr>
<tr><tdclass="paramname">right_speed</td><td>speed for the right side drive. 0<=speed<=255 </td></tr>
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00211">211</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<p>Will turn the racer to the left for the internally stroe time in ms and with the internally stored speed. </p>
<p>The speed for both the left side and right side drive can be set by the methods described in the lower level drive section. The turn to left time can be set by thoose methods as well. The method is delayed until the racer has turned. </p><dlclass="section return"><dt>Returns</dt><dd>nothing </dd></dl>
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00226">226</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<divclass="fragment"><divclass="line"><aname="l00227"></a><spanclass="lineno"> 227</span> {</div><divclass="line"><aname="l00228"></a><spanclass="lineno"> 228</span>  turn_left(_turn_left_for_ms, _drive_left_speed, _drive_right_speed);</div><divclass="line"><aname="l00229"></a><spanclass="lineno"> 229</span> }</div></div><!-- fragment -->
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00237">237</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<divclass="fragment"><divclass="line"><aname="l00238"></a><spanclass="lineno"> 238</span> {</div><divclass="line"><aname="l00239"></a><spanclass="lineno"> 239</span>  turn_left(turn_for_ms, _drive_left_speed, _drive_right_speed);</div><divclass="line"><aname="l00240"></a><spanclass="lineno"> 240</span> }</div></div><!-- fragment -->
<p>Will turn the racer to the left for the specified time in ms and with the specified speed. </p>
<p>The specified duration of time and the specified speeds are stored internally and will be used next time by e.g. turn_left() </p><dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">turn_for_ms</td><td>duration of time in ms to turn the racer </td></tr>
<tr><tdclass="paramname">left_speed</td><td>speed for the left side drive </td></tr>
<tr><tdclass="paramname">right_speed</td><td>speed for the right side drive </td></tr>
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00250">250</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<p>Will turn the racer to the right for the internally stroe time in ms and with the internally stored speed. </p>
<p>The speed for both the left side and right side drive can be set by the methods described in the lower level drive section. The turn to right time can be set by thoose methods as well. The method is delayed until the racer has turned. </p><dlclass="section return"><dt>Returns</dt><dd>nothing </dd></dl>
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00269">269</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<divclass="fragment"><divclass="line"><aname="l00270"></a><spanclass="lineno"> 270</span> {</div><divclass="line"><aname="l00271"></a><spanclass="lineno"> 271</span>  turn_right(_turn_right_for_ms, _drive_left_speed, _drive_right_speed);</div><divclass="line"><aname="l00272"></a><spanclass="lineno"> 272</span> }</div></div><!-- fragment -->
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00280">280</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<divclass="fragment"><divclass="line"><aname="l00281"></a><spanclass="lineno"> 281</span> {</div><divclass="line"><aname="l00282"></a><spanclass="lineno"> 282</span>  turn_right(turn_for_ms, _drive_left_speed, _drive_right_speed);</div><divclass="line"><aname="l00283"></a><spanclass="lineno"> 283</span> }</div></div><!-- fragment -->
<p>Will turn the racer to the right for the specified time in ms and with the specified speed. </p>
<p>The specified duration of time and the specified speeds are stored internally and will be used next time by e.g. turn_right() </p><dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">turn_for_ms</td><td>duration of time in ms to turn the racer </td></tr>
<tr><tdclass="paramname">left_speed</td><td>speed for the left side drive </td></tr>
<tr><tdclass="paramname">right_speed</td><td>speed for the right side drive </td></tr>
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00293">293</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<p>Enables to stopp the racer if during a distance measurement the measured distance is smaller then the internally stored minimal distance. </p>
<p>This allow all of the none-single shot ultra sonic measurement methods to stopp the racer in the case the measured distance is smaller than minimal distance. This is just the enablement - you have to call one of the none-single-shot ultra sonic measurement methods continously while driving and maybe sweeping the servo. If the racer was stopped can be checked with stopped_at_min_distance() - it will return true in that case. The minimal distance can be set by the ultrasonic sensor setter methods. There is an example coming with the coderacer libary that you can load and get an idea how that works. </p><dlclass="section return"><dt>Returns</dt><dd>nothing </dd></dl>
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00314">314</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<divclass="fragment"><divclass="line"><aname="l00314"></a><spanclass="lineno"> 314</span>  {</div><divclass="line"><aname="l00315"></a><spanclass="lineno"> 315</span>  start_stop_at_min_distance(_usonic_stop_distance_cm);</div><divclass="line"><aname="l00316"></a><spanclass="lineno"> 316</span> }</div></div><!-- fragment -->
<p>Enables to stopp the racer if during a distance measurement the measured distance is smaller then the specified minimal distance. </p>
<p>This is almos the same as described for start_stop_at_min_distance(). You can specify the distance in cm here - this value will be stored internally and used by start_stop_at_min_distance() next time. </p><dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">min_distance_cm</td><td>the minimal disctance in cm </td></tr>
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00324">324</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00335">335</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<divclass="fragment"><divclass="line"><aname="l00335"></a><spanclass="lineno"> 335</span>  {</div><divclass="line"><aname="l00336"></a><spanclass="lineno"> 336</span>  _coderacer_stop_at_distance_enabled = <spanclass="keyword">false</span>;</div><divclass="line"><aname="l00337"></a><spanclass="lineno"> 337</span> }</div></div><!-- fragment -->
<p>This will return if the codracer is in active mode or not. </p>
<p>There is a button used to toogle between active and inactive each time it is pressed This may help you to start driving and scanning the distance by pressing the button - and as well to stop the racer by pressing the button. This method will set the LEDs depending on the mode and sets the servo back to center and stopps the racer when leaving the active mode. You can leave or enter the active mode as well by setting using set_active() and set_inactive(). The button itself triggers and internall interrupt event and sets the active state - but you have to continously call that method to switch between inactive and active mode depending on the active state. If in inactive mode and fun is enabeld by just setting the coderacer_fun_enabled = true ... some fun will happen :-)</p>
<dlclass="section return"><dt>Returns</dt><dd>True if the coderacer is in active mode. False if in inactive mode. </dd></dl>
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00348">348</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>