<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="http://forum.robosavvy.com/feed.php?f=15&amp;t=9372" />

<title>RoboSavvy Forum</title>
<subtitle>Robosavvy Forum: The largest online community of Humanoid Robot Builders</subtitle>
<link href="http://forum.robosavvy.com/index.php" />
<updated>2013-05-22T04:03:19+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=15&amp;t=9372</id>
<entry>
<author><name><![CDATA[chickenkai]]></name></author>
<updated>2013-05-22T04:03:19+01:00</updated>
<published>2013-05-22T04:03:19+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=9372&amp;p=37877#p37877</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=9372&amp;p=37877#p37877"/>
<title type="html"><![CDATA[wckReadPos]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=9372&amp;p=37877#p37877"><![CDATA[
I tried this:<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>if &#40;rbWCK.wckReadPos&#40;11&#41;&#41;<br />&#123;<br />   if &#40;rbWCK.respnse&#91;0&#93; == 0&#41;<br />  &#123;<br />       rbWCK.wckMovePos&#40;11, Convert.ToByte&#40;trackBar1.Value&#41;, 2&#41;;<br />       textBox_pos.Text = Convert.ToString&#40;trackBar1.Value&#41;;<br />       rbWCK.delay_ms&#40;50&#41;;<br />        if &#40;rbWCK.wckReadPos&#40;11&#41;&#41;<br />            &#123;<br />               richTextBox1.Text = &quot;Servo 11 end posture:&quot; + Convert.ToString&#40;rbWCK.respnse&#91;1&#93;&#41;;<br />             &#125;<br />   &#125;                       <br />&#125;<br />else<br />&#123;<br />   textBox_pos.Text = &quot;Servo 11 NOT CONNECTED&quot;;<br />&#125;<br /> </code></dd></dl><br /><br />And I found that as same condition as I mentioned.<br /><br />If I suddenly pull the trackBar fast and use wckReadPos the value is <br /><br />inaccuracy would increase a lot, bigger than 10 degrees.<br /><br />If I increase the delay time, the motor would not move smoothly.<br /><br />It's so strange.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=3490">chickenkai</a> — Wed May 22, 2013 4:03 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[l3v3rz]]></name></author>
<updated>2013-05-21T15:49:26+01:00</updated>
<published>2013-05-21T15:49:26+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=9372&amp;p=37865#p37865</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=9372&amp;p=37865#p37865"/>
<title type="html"><![CDATA[wckReadPos]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=9372&amp;p=37865#p37865"><![CDATA[
hope this isn't a trick question - but yes - exactly. you may find you can reduce the value from 200ms down to may be 50-100ms. It partially depends on how big the move is, the servos have a velocity, so the bigger the move the longer it takes before it settles.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1101">l3v3rz</a> — Tue May 21, 2013 3:49 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[chickenkai]]></name></author>
<updated>2013-05-21T13:28:52+01:00</updated>
<published>2013-05-21T13:28:52+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=9372&amp;p=37864#p37864</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=9372&amp;p=37864#p37864"/>
<title type="html"><![CDATA[wckReadPos]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=9372&amp;p=37864#p37864"><![CDATA[
how can I do?<br /><br />Like this?<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>if &#40;i == 11&#41;<br />&#123;<br />     rbWCK.wckMovePos&#40;11, Convert.ToByte&#40;trackBar1.Value&#41;, 2&#41;;<br />     textBox_pos.Text = Convert.ToString&#40;trackBar1.Value&#41;;<br />     rbWCK.delay_ms&#40;200&#41;;<br />     if &#40;rbWCK.wckReadPos&#40;11&#41;&#41;<br />     &#123;                    <br />            richTextBox1.Text = &quot;Servo 11 end:&quot; + Convert.ToString&#40;rbWCK.respnse&#91;1&#93;&#41;;       <br />      &#125;<br />      else<br />     &#123;<br />      textBox_pos.Text = &quot;Servo 11 NOT CONNECTED&quot;;<br />      &#125; <br />&#125;<br /></code></dd></dl><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=3490">chickenkai</a> — Tue May 21, 2013 1:28 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[l3v3rz]]></name></author>
<updated>2013-05-21T13:02:52+01:00</updated>
<published>2013-05-21T13:02:52+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=9372&amp;p=37861#p37861</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=9372&amp;p=37861#p37861"/>
<title type="html"><![CDATA[wckReadPos]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=9372&amp;p=37861#p37861"><![CDATA[
Its probably a timing issue - if you read servo too quickly it won't have settled , try a delay before reading or multiple wckReadPos until it settles.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1101">l3v3rz</a> — Tue May 21, 2013 1:02 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[chickenkai]]></name></author>
<updated>2013-05-21T11:26:51+01:00</updated>
<published>2013-05-21T11:26:51+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=9372&amp;p=37855#p37855</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=9372&amp;p=37855#p37855"/>
<title type="html"><![CDATA[wckReadPos]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=9372&amp;p=37855#p37855"><![CDATA[
Hi<br /><br />I programming a code in C# with RobobuilderLib.dll<br /><br />Now I use a trackBar to control the servo motor to move<br /><br />But I Found a problem:<br /><br />when  I pull the  trackBar slowly and use the function wckReadPos to <br /><br />read the wck posture, the value is inaccuracy within 5 degrees,<br /><br />but if I pull the  trackBar fast and use  wckReadPos  the value is <br /><br />inaccuracy would increase a lot, bigger than 10 degrees,<br /><br />how can I solve this problem?<br /><br />thanks!<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=3490">chickenkai</a> — Tue May 21, 2013 11:26 am</p><hr />
]]></content>
</entry>
</feed>