<trclass="memdesc:ga687beb327e20f4d0541d1ac9e29c01c3"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Overwrites the default settings taken from header file by the parameters given to this method. <ahref="#ga687beb327e20f4d0541d1ac9e29c01c3">More...</a><br/></td></tr>
<trclass="memdesc:ga1e9afe1f27dfc9796b4c9b3dba245365"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Turns sweeping of the servo from left to right and back on. <ahref="#ga1e9afe1f27dfc9796b4c9b3dba245365">More...</a><br/></td></tr>
<trclass="memdesc:gaac73bf99cf2d19f7b1987156aa842b74"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Drives the servo to the postion that is defined by #servo_right_pos. <ahref="#gaac73bf99cf2d19f7b1987156aa842b74">More...</a><br/></td></tr>
<trclass="memdesc:gaef7d1903b65a0a8ab4fafdc53080b07d"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Drives the servo to the postion that is defined by #servo_left_pos. <ahref="#gaef7d1903b65a0a8ab4fafdc53080b07d">More...</a><br/></td></tr>
<trclass="memdesc:gad1f28aa91079e88fc3093e3074edfb32"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Drives the servo to the postion that is defined by #servo_center_pos. <ahref="#gad1f28aa91079e88fc3093e3074edfb32">More...</a><br/></td></tr>
<trclass="memdesc:ga0149226288bff2290d52ed1cbd674edd"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Drive the servo to the postion given to this method. <ahref="#ga0149226288bff2290d52ed1cbd674edd">More...</a><br/></td></tr>
<trclass="memdesc:gab8831340049de6dbddeda997745725e6"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Drive the servo to the postion given to this method. <ahref="#gab8831340049de6dbddeda997745725e6">More...</a><br/></td></tr>
<p>Overwrites the default settings taken from header file by the parameters given to this method. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">pos_center</td><td>The postion at which the servo moves to straight forward. Default is 90. Allowed 10 <= pos_center <= 170. </td></tr>
<tr><tdclass="paramname">pos_left</td><td>The postion at which the servo moves to the left. Default is 170. Allowed 10 <= pos_center <= 170. </td></tr>
<tr><tdclass="paramname">pos_right</td><td>The postion at which the servo moves to the right. Default is 10. Allowed 10 <= pos_center <= 170. </td></tr>
<tr><tdclass="paramname">sweep_left_pos</td><td>If the servo is sweeping from left to the right - this defines the most left postion. Default is 140. Allowed 10 <= pos_center <= 170. </td></tr>
<tr><tdclass="paramname">sweep_right_pos</td><td>If the servo is sweeping from left to the right - this defines the most right postion. Default is 40. Allowed 10 <= pos_center <= 170. </td></tr>
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00510">510</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<p>Turns sweeping of the servo from left to right and back on. </p>
<p>The sweeping range is defind by #servo_sweep_left_pos and #servo_sweep_right_pos attributes. Both can be set by either servo_settings() or as public members. Every time servo_sweep() is called the servo is driven by 5 steps until either #servo_sweep_left_pos or #servo_sweep_right_pos is reached. Then it will turn the direction and step to the other side every time this method is called. </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#l00526">526</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#l00548">548</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<divclass="fragment"><divclass="line"><aname="l00549"></a><spanclass="lineno"> 549</span> {</div><divclass="line"><aname="l00550"></a><spanclass="lineno"> 550</span>  servo_set_position_wait(servo_right_pos);</div><divclass="line"><aname="l00551"></a><spanclass="lineno"> 551</span> }</div></div><!-- fragment -->
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00556">556</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<divclass="fragment"><divclass="line"><aname="l00557"></a><spanclass="lineno"> 557</span> {</div><divclass="line"><aname="l00558"></a><spanclass="lineno"> 558</span>  servo_set_position_wait(servo_left_pos);</div><divclass="line"><aname="l00559"></a><spanclass="lineno"> 559</span> }</div></div><!-- fragment -->
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00564">564</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<divclass="fragment"><divclass="line"><aname="l00565"></a><spanclass="lineno"> 565</span> {</div><divclass="line"><aname="l00566"></a><spanclass="lineno"> 566</span>  servo_set_position_wait(servo_center_pos);</div><divclass="line"><aname="l00567"></a><spanclass="lineno"> 567</span> }</div></div><!-- fragment -->
<p>Drive the servo to the postion given to this method. </p>
<p>The method will wait until the servo has reached its new position. </p><dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">position</td><td>Position the servo will be drived to. Allowed are values 10<=postion<=170. 10 is at the right hand side, 170 at the left hand side. </td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>The new servo position </dd></dl>
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00575">575</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>
<p>Drive the servo to the postion given to this method. </p>
<p>The method will not wait until the servo has reached its new position. </p><dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">position</td><td>Position the servo will be drived to. Allowed are values 10<=postion<=170. 10 is at the right hand side, 170 at the left hand side. </td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>The time in ms the servo will need to reach the new position </dd></dl>
<pclass="definition">Definition at line <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html#l00589">589</a> of file <aclass="el"href="../../d4/da7/_code_racer_8cpp_source.html">CodeRacer.cpp</a>.</p>