<?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=17&amp;t=5841" />

<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>2010-02-07T12:23:46+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=17&amp;t=5841</id>
<entry>
<author><name><![CDATA[Sazabi]]></name></author>
<updated>2010-02-07T12:23:46+01:00</updated>
<published>2010-02-07T12:23:46+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5841&amp;p=25404#p25404</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5841&amp;p=25404#p25404"/>
<title type="html"><![CDATA[Control RC servos with one PWM pulse]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5841&amp;p=25404#p25404"><![CDATA[
Strange, because motion[] starts from 1 and motion[1] should move channel 0, etc, motion[9] moves channel 10. Maybe that is the reason of all my trounles) Should check it today. Thanks!<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=870">Sazabi</a> — Sun Feb 07, 2010 12:23 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[romayiii]]></name></author>
<updated>2010-02-06T20:30:05+01:00</updated>
<published>2010-02-06T20:30:05+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5841&amp;p=25389#p25389</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5841&amp;p=25389#p25389"/>
<title type="html"><![CDATA[Control RC servos with one PWM pulse]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5841&amp;p=25389#p25389"><![CDATA[
Hi Sazabi,<br /><br />     Yes it was a little truble at first time, but I figured out that PWM Slot 10  on the board is actually RCSERVO_USECHANNEL9 and it is moved with motion[9].<br /><br />So when I change motion[9] the rc servo that moves in the board is the 10th.<br /><br />In the board, S1 is moved in the code by CHANNEL0<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1941">romayiii</a> — Sat Feb 06, 2010 8:30 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Sazabi]]></name></author>
<updated>2010-02-06T12:16:37+01:00</updated>
<published>2010-02-06T12:16:37+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5841&amp;p=25379#p25379</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5841&amp;p=25379#p25379"/>
<title type="html"><![CDATA[Control RC servos with one PWM pulse]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5841&amp;p=25379#p25379"><![CDATA[
How is it works for you, if channel 9 is actually channel 8 (because first channel of roboard is 0)? and when you initialize channel 9, which is actually 10 and changing motion[9] should not affect it.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=870">Sazabi</a> — Sat Feb 06, 2010 12:16 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[romayiii]]></name></author>
<updated>2010-02-04T20:54:24+01:00</updated>
<published>2010-02-04T20:54:24+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5841&amp;p=25345#p25345</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5841&amp;p=25345#p25345"/>
<title type="html"><![CDATA[Control RC servos with one PWM pulse]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5841&amp;p=25345#p25345"><![CDATA[
Hi,<br /><br />        I've just tested the rcservo_MoveTo() function and inside this function it is still this while() cicle that waits until the end psotition is reached. However I've tested the rcservo_SendPWMPulses() function and it worked. it needs preconfiguration for counting mode but at least it dones'nt need any cicle to reach the end position. I will continue my test in order too get my code pretty tune.<br /><br />This is what I've tested and worked:<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>if&#40;rcservo_Initialize&#40;RCSERVO_USECHANNEL9&#41;&#41;&#123;<br />      unsigned long motion&#91;32&#93;=&#123;0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0&#125;;<br />      //set motion for playing<br />      <br />      rcservo_EnterPlayMode&#40;&#41;;<br />      rcservo_SetServo&#40;9, RCSERVO_HITEC_HSR8498&#41;;<br />      pwm_SetCountingMode&#40;9, PWM_CONTINUE_MODE&#41;;<br />      rcservo_EnterPWMMode&#40;&#41;;<br />      while&#40;true&#41;&#123;<br />         if&#40;motion&#91;9&#93;!=650&#41;<br />            motion&#91;9&#93;=650;<br />         else<br />            motion&#91;9&#93;=2400;   <br />         rcservo_SendPWMPulses&#40;9, 20000L, motion&#91;9&#93;,1&#41;;<br />         usleep&#40;100000&#41;;<br />      &#125;<br />   &#125;   <br />   rcservo_Close&#40;&#41;;<br /></code></dd></dl><br /><br />It moves servo 9 frome one postition to another without while().[/code]<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1941">romayiii</a> — Thu Feb 04, 2010 8:54 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[romayiii]]></name></author>
<updated>2010-02-04T20:11:14+01:00</updated>
<published>2010-02-04T20:11:14+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5841&amp;p=25342#p25342</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5841&amp;p=25342#p25342"/>
<title type="html"><![CDATA[Control RC servos with one PWM pulse]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5841&amp;p=25342#p25342"><![CDATA[
Thanks Sazabi,<br /><br />     I will try it right now and post my results later. Although I've recieved response directly from roboard tech support and they answer this:<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>        rcservo_SendPWMPulses&#40;9, 10000L, motion&#91;9&#93;, 1&#41;;<br />        rcservo_SendPWMPulses&#40;10, 10000L, motion&#91;10&#93;, 1&#41;; <br /></code></dd></dl><br /><br />I will try this to and post results.<br /><br />Thanks!<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1941">romayiii</a> — Thu Feb 04, 2010 8:11 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Sazabi]]></name></author>
<updated>2010-02-04T04:36:01+01:00</updated>
<published>2010-02-04T04:36:01+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5841&amp;p=25323#p25323</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5841&amp;p=25323#p25323"/>
<title type="html"><![CDATA[Control RC servos with one PWM pulse]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5841&amp;p=25323#p25323"><![CDATA[
I've been looking in rcservo.h yeasterday and found rcservo_MoveTo() command in Play Mode functions. It has two arguments - unsigned long *width and unsigned long playtime. Heven't tried it yet, but looks like that's what you're looking for.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=870">Sazabi</a> — Thu Feb 04, 2010 4:36 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[romayiii]]></name></author>
<updated>2010-02-03T20:04:04+01:00</updated>
<published>2010-02-03T20:04:04+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5841&amp;p=25312#p25312</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5841&amp;p=25312#p25312"/>
<title type="html"><![CDATA[Control RC servos with one PWM pulse]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5841&amp;p=25312#p25312"><![CDATA[
Hi!<br /><br />     I've been working with rc servo lib to control HITEC HSR8498 RC servos. However this lib controls the servos sending pulses inside a while() until the end position is reached. example code:<br /><br /><br /><dl class="codebox"><dt>Code: </dt><dd><code><br />if&#40;rcservo_Initialize&#40;RCSERVO_USECHANNEL9&#41;&#41;&#123;<br />      unsigned long motion&#91;32&#93;=&#123;0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0&#125;;<br />      //set motion for playing<br />      <br />      rcservo_EnterPlayMode&#40;&#41;;<br />      motion&#91;9&#93;=650;<br />      while&#40;true&#41;&#123;<br />         if&#40;motion&#91;9&#93;!=650&#41;<br />            motion&#91;9&#93;=650;<br />         else<br />            motion&#91;9&#93;=2400;   <br />         rcservo_SetAction&#40;motion, 50&#41;;//play motion in 500ms<br />         while &#40;rcservo_PlayAction&#40;&#41; != RCSERVO_PLAYEND&#41; &#123; //I dont want to use this line.<br />            //<br />            //can do something here when sending PWM pulses<br />            //<br />            printf&#40;&quot;Setting motion&#91;9&#93; = %ld \n&quot;,motion&#91;9&#93;&#41;;<br />         &#125;<br />         delay&#40;1&#41;;<br />      &#125;   <br />   &#125;<br />   rcservo_Close&#40;&#41;;<br /><br /></code></dd></dl><br /><br />  What I want to do is to control the HSR8498 RC servo with just one pulse, without using the while() because the program waits here until it finish and doesn't let me do anything else, and I don't want to put extra code inside the while (where it says &quot;can do something here when sending PWM pulses&quot;) . I know that HITEC HSR8498 can move with just one pulse but I don't know how to do it with the roboard.<br /><br />Thanks<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1941">romayiii</a> — Wed Feb 03, 2010 8:04 pm</p><hr />
]]></content>
</entry>
</feed>