<?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=5997" />

<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-03-27T02:12:42+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=17&amp;t=5997</id>
<entry>
<author><name><![CDATA[swift]]></name></author>
<updated>2010-03-27T02:12:42+01:00</updated>
<published>2010-03-27T02:12:42+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5997&amp;p=26094#p26094</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5997&amp;p=26094#p26094"/>
<title type="html"><![CDATA[rcservo help]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5997&amp;p=26094#p26094"><![CDATA[
SUCCESS <img src="http://forum.robosavvy.com/images/smilies/icon_lol.gif" alt=":lol:" title="Laughing" /> .... winio.vxd was corrupted, re-extracted and placed in application directory<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2015">swift</a> — Sat Mar 27, 2010 2:12 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[swift]]></name></author>
<updated>2010-03-26T19:48:01+01:00</updated>
<published>2010-03-26T19:48:01+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5997&amp;p=26093#p26093</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5997&amp;p=26093#p26093"/>
<title type="html"><![CDATA[rcservo help]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5997&amp;p=26093#p26093"><![CDATA[
It's only been a day, but I still can't get a servo to move.<br /><br />Here's some new code that doesn't work.<br /><dl class="codebox"><dt>Code: </dt><dd><code>#include &lt;stdio&gt; <br />#include &lt;iostream&gt; <br />#include &lt;windows&gt; <br />#include &lt;roboard_dll&gt; <br />#include &quot;stdafx.h&quot; <br />#include &quot;rcservo.h&quot; <br /><br /><br />using namespace System; <br /><br /><br /><br /><br />int main&#40;&#41; <br />&#123; <br />rcservo_SetServo&#40;0,RCSERVO_SERVO_DEFAULT_NOFB&#41;;<br />Console::WriteLine&#40;&quot;Setting Up Servo Type \n&quot;&#41;;<br />   <br />if&#40;rcservo_Initialize&#40;RCSERVO_USECHANNEL0&#41;&#41;<br />&#123;<br />      rcservo_EnterPWMMode&#40;&#41;;<br />         Console::WriteLine&#40;&quot;Entering PWM Mode&quot;&#41;;<br />      <br />      if&#40;rcservo_SendPWMPulses&#40;0, 10000L, 1500L, 100L&#41;&#41;<br />      &#123;<br />         Console::WriteLine&#40;&quot;Something Should Be Moving \n&quot;&#41;;<br />      &#125;<br />      else<br />      &#123;<br />         Console::WriteLine&#40;&quot;Failed To Send Pulses \n&quot;&#41;;<br />      &#125;<br />&#125;<br />   else<br />   &#123;<br />   Console::WriteLine&#40;&quot;Failed To Initialize Rcservo&quot;&#41;;<br />   &#125;<br />return 0; <br />&#125; </code></dd></dl><br /><br />I have no idea what's not working, I'm using hs645mg's, I reset the bios to GPIO with the switch set to pull up, I set up VS 2005 according to the manual, code runs fine, always returns false at rcservo_Initialize, servo does not move.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2015">swift</a> — Fri Mar 26, 2010 7:48 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[swift]]></name></author>
<updated>2010-03-25T21:22:06+01:00</updated>
<published>2010-03-25T21:22:06+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5997&amp;p=26073#p26073</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5997&amp;p=26073#p26073"/>
<title type="html"><![CDATA[rcservo help]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5997&amp;p=26073#p26073"><![CDATA[
Hopefully this is obvious to someone.<br /><br />I cannot generate a PWM.<br />Here is the code I borrowed from comds<br /><dl class="codebox"><dt>Code: </dt><dd><code>#include &lt;stdio&gt;<br />#include &lt;iostream&gt;<br />#include &lt;windows&gt;<br />#include &lt;roboard&gt;<br />#include &lt;iostream&gt;<br />#include &quot;stdafx.h&quot;<br />#include &quot;rcservo.h&quot;<br /><br /><br />using namespace System;<br /><br />unsigned long PWM_period = 10000L;<br />unsigned long PWM_duty = 1500L;<br />unsigned long count = 100L;<br /><br /><br />int main&#40;&#41;<br />&#123;<br />   <br /><br />   <br />if&#40;rcservo_Initialize&#40;RCSERVO_USECHANNEL1&#41;&#41;<br />&#123;      <br /><br />   rcservo_EnterPWMMode&#40;&#41;;<br />   <br /><br />   rcservo_SendPWMPulses&#40;int&#40;1&#41;, PWM_period, PWM_duty, count&#41;;<br />   <br />   <br />   rcservo_Close&#40;&#41;;<br />   <br />&#125;<br />else<br />&#123;<br />   return 1;   <br />&#125;<br />   return 0;<br />&#125;<br /></code></dd></dl><br /><br />I am completely new to programming, I can't even get cout to work <img src="http://forum.robosavvy.com/images/smilies/icon_redface.gif" alt=":oops:" title="Embarassed" />.<br />Anyway I always get an exit code of 1, and all of the dll's that load say &quot;no symbols loaded&quot; with the exception of winio.dll that says &quot;Binary was not built with debug information.&quot; <br />I have the bias for pwm rather than gpio, I just don't know what's going on here....<br /><br />I can post the entire output log if anybody wants it, but this post is probably long enough already.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2015">swift</a> — Thu Mar 25, 2010 9:22 pm</p><hr />
]]></content>
</entry>
</feed>