<trclass="memitem:ga5812df751da5b480240ccd633c515b83"><tdclass="memItemLeft"align="right"valign="top">void </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="../../d1/d8a/group__lowerleveldrivesmeths.html#ga5812df751da5b480240ccd633c515b83">CodeRacer::drives_settings</a> (uint8_t drive_left_speed, uint8_t drive_right_speed, unsigned long turn_left_ms, unsigned long turn_right_ms)</td></tr>
<trclass="memdesc:ga5812df751da5b480240ccd633c515b83"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Overwrites some drive settings. This will replace the defaults set by the values in the header file. <ahref="#ga5812df751da5b480240ccd633c515b83">More...</a><br/></td></tr>
<trclass="memdesc:ga61ed9e0415a62a290cc5c59a0f740304"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Stopps both drives. <ahref="#ga61ed9e0415a62a290cc5c59a0f740304">More...</a><br/></td></tr>
<trclass="memdesc:ga802d2646d9cc0d766e1ac799c7917fa8"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets both of the drives to a specified drivestate (DRIVESTOP, DRIVEFRWD, DRIVEBACK) <ahref="#ga802d2646d9cc0d766e1ac799c7917fa8">More...</a><br/></td></tr>
<trclass="memdesc:ga1eeb3cb47503c3011562f9c42828fab9"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the left side drive to the specified drivestate (DRIVESTOP, DRIVEFRWD, DRIVEBACK) <ahref="#ga1eeb3cb47503c3011562f9c42828fab9">More...</a><br/></td></tr>
<trclass="memdesc:ga1b34ec9cee1f21cd15db310167a2faa5"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the right side drive to the specified drivestate (DRIVESTOP, DRIVEFRWD, DRIVEBACK) <ahref="#ga1b34ec9cee1f21cd15db310167a2faa5">More...</a><br/></td></tr>
<trclass="memdesc:ga3b69cf4a718c842fbe758d3f4267214e"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the specified drivestate for the drive connected to the sepecified pins (DRIVESTOP, DRIVEFRWD, DRIVEBACK) <ahref="#ga3b69cf4a718c842fbe758d3f4267214e">More...</a><br/></td></tr>
<trclass="memdesc:ga3d3ffb41783d34589e33cf61fed46c70"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the speed for both of the drives. <ahref="#ga3d3ffb41783d34589e33cf61fed46c70">More...</a><br/></td></tr>
<trclass="memdesc:ga1ee3da20ec98a821ab97ced070974861"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the speed for the left side drive. <ahref="#ga1ee3da20ec98a821ab97ced070974861">More...</a><br/></td></tr>
<trclass="memdesc:gaf8805d0d620a2fb78c576f36a2c81073"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the speed for the right side drive. <ahref="#gaf8805d0d620a2fb78c576f36a2c81073">More...</a><br/></td></tr>
<trclass="memdesc:ga5d67c84606d5b39996a99fcd6e7eb314"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the speed for the drive of the enable pin connected to the specified pin. <ahref="#ga5d67c84606d5b39996a99fcd6e7eb314">More...</a><br/></td></tr>
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00878">878</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#l00889">889</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<divclass="fragment"><divclass="line"><aname="l00889"></a><spanclass="lineno"> 889</span>  {</div><divclass="line"><aname="l00890"></a><spanclass="lineno"> 890</span>  set_drive_left_state(DRIVESTOP);</div><divclass="line"><aname="l00891"></a><spanclass="lineno"> 891</span>  set_drive_right_state(DRIVESTOP);</div><divclass="line"><aname="l00892"></a><spanclass="lineno"> 892</span> }</div></div><!-- fragment -->
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00899">899</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<divclass="fragment"><divclass="line"><aname="l00899"></a><spanclass="lineno"> 899</span>  {</div><divclass="line"><aname="l00900"></a><spanclass="lineno"> 900</span>  set_drive_left_state(stateleft);</div><divclass="line"><aname="l00901"></a><spanclass="lineno"> 901</span>  set_drive_right_state(stateright);</div><divclass="line"><aname="l00902"></a><spanclass="lineno"> 902</span> }</div></div><!-- fragment -->
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00908">908</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<divclass="fragment"><divclass="line"><aname="l00908"></a><spanclass="lineno"> 908</span>  {</div><divclass="line"><aname="l00909"></a><spanclass="lineno"> 909</span>  set_drive_state(state, _drive_left_frwd_pin, _drive_left_back_pin);</div><divclass="line"><aname="l00910"></a><spanclass="lineno"> 910</span> }</div></div><!-- fragment -->
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00916">916</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<divclass="fragment"><divclass="line"><aname="l00916"></a><spanclass="lineno"> 916</span>  {</div><divclass="line"><aname="l00917"></a><spanclass="lineno"> 917</span>  set_drive_state(state, _drive_right_frwd_pin, _drive_right_back_pin);</div><divclass="line"><aname="l00918"></a><spanclass="lineno"> 918</span> }</div></div><!-- fragment -->
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00926">926</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<p>The drive will run with that speed afterwards. The direction of the drive has to be specfied with one of the set_drive_state methods before </p><dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">speedleft</td><td>speed of the left side drive. 0<=speed<=255 </td></tr>
<tr><tdclass="paramname">speedright</td><td>speed of the right side drive. 0<=speed<=255 </td></tr>
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00950">950</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<divclass="fragment"><divclass="line"><aname="l00950"></a><spanclass="lineno"> 950</span>  {</div><divclass="line"><aname="l00951"></a><spanclass="lineno"> 951</span>  set_drive_left_speed(speedleft);</div><divclass="line"><aname="l00952"></a><spanclass="lineno"> 952</span>  set_drive_right_speed(speedright);</div><divclass="line"><aname="l00953"></a><spanclass="lineno"> 953</span> }</div></div><!-- fragment -->
<p>The drive will run with that speed afterwards. The direction of the drive has to be specfied with one of the set_drive_state methods before </p><dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">speed</td><td>speed of the left side drive. 0<=speed<=255 </td></tr>
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00961">961</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<divclass="fragment"><divclass="line"><aname="l00961"></a><spanclass="lineno"> 961</span>  {</div><divclass="line"><aname="l00962"></a><spanclass="lineno"> 962</span>  set_drive_speed(speed, _drive_left_enable_pin);</div><divclass="line"><aname="l00963"></a><spanclass="lineno"> 963</span> }</div></div><!-- fragment -->
<p>The drive will run with that speed afterwards. The direction of the drive has to be specfied with one of the set_drive_state methods before </p><dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">speed</td><td>speed of the right side drive. 0<=speed<=255 </td></tr>
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00971">971</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<divclass="fragment"><divclass="line"><aname="l00971"></a><spanclass="lineno"> 971</span>  {</div><divclass="line"><aname="l00972"></a><spanclass="lineno"> 972</span>  set_drive_speed(speed, _drive_right_enable_pin);</div><divclass="line"><aname="l00973"></a><spanclass="lineno"> 973</span> }</div></div><!-- fragment -->
<p>Sets the speed for the drive of the enable pin connected to the specified pin. </p>
<p>The drive will run with that speed afterwards. The direction of the drive has to be specfied with one of the set_drive_state methods before </p><dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">speed</td><td>speed of the drive. 0<=speed<=255 </td></tr>
<tr><tdclass="paramname">enablepin</td><td>Pin the drives device driver enable pin is connected at </td></tr>
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00982">982</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<divclass="fragment"><divclass="line"><aname="l00982"></a><spanclass="lineno"> 982</span>  {</div><divclass="line"><aname="l00983"></a><spanclass="lineno"> 983</span>  _analog_write(enablepin, (<spanclass="keywordtype">int</span>)speed);</div><divclass="line"><aname="l00984"></a><spanclass="lineno"> 984</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! -->