https://iridia.ulb.ac.be/w/index.php?title=Wheels&feed=atom&action=historyWheels - Revision history2024-03-29T14:58:59ZRevision history for this page on the wikiMediaWiki 1.35.4https://iridia.ulb.ac.be/w/index.php?title=Wheels&diff=5683&oldid=prevManubrambi at 10:23, 19 October 20112011-10-19T10:23:00Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 10:23, 19 October 2011</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 24:</td>
<td colspan="2" class="diff-lineno">Line 24:</td>
</tr>
<tr>
<td class="diff-marker"> </td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>There might be a better way to do this, but this worked out for me.</div></td>
<td class="diff-marker"> </td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>There might be a better way to do this, but this worked out for me.</div></td>
</tr>
<tr>
<td class="diff-marker"> </td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td>
<td class="diff-marker"> </td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td>
</tr>
<tr>
<td class="diff-marker">−</td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Lots of <del class="diffchange diffchange-inline">information</del> are available here: [http://code.google.com/p/carleton-robocup/wiki/epuckInitialExperimentation#Motion_Experiments]</div></td>
<td class="diff-marker">+</td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Lots of <ins class="diffchange diffchange-inline">data and details</ins> are available here: [http://code.google.com/p/carleton-robocup/wiki/epuckInitialExperimentation#Motion_Experiments]</div></td>
</tr>
</table>Manubrambihttps://iridia.ulb.ac.be/w/index.php?title=Wheels&diff=5682&oldid=prevManubrambi: New page: Note that when you set the wheel speed the robot stops for a second. Try this: while(1){ e_set_speed_left(500); e_set_speed_left(500); } The robot won't move, because it's too...2011-10-19T10:22:25Z<p>New page: Note that when you set the wheel speed the robot stops for a second. Try this: while(1){ e_set_speed_left(500); e_set_speed_left(500); } The robot won't move, because it's too...</p>
<p><b>New page</b></p><div>Note that when you set the wheel speed the robot stops for a second. <br />
<br />
Try this:<br />
while(1){<br />
e_set_speed_left(500);<br />
e_set_speed_left(500);<br />
}<br />
<br />
The robot won't move, because it's too busy setting the wheels speed.<br />
<br />
What I do is to put this function at the top of my code and use this instead. This ensures that the wheels are set only when necessary.<br />
<br />
void SetSpeed(int left_speed, int right_speed){<br />
if (left_speed != current_left_speed){<br />
e_set_speed_left(left_speed);<br />
current_left_speed = left_speed;<br />
}<br />
if (right_speed != current_right_speed){<br />
e_set_speed_right(right_speed);<br />
current_right_speed = right_speed;<br />
}<br />
}<br />
<br />
There might be a better way to do this, but this worked out for me.<br />
<br />
Lots of information are available here: [http://code.google.com/p/carleton-robocup/wiki/epuckInitialExperimentation#Motion_Experiments]</div>Manubrambi