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

<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>2008-01-21T10:41:22+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=4&amp;t=2154</id>
<entry>
<author><name><![CDATA[i-Bot]]></name></author>
<updated>2008-01-21T10:41:22+01:00</updated>
<published>2008-01-21T10:41:22+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2154&amp;p=13682#p13682</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2154&amp;p=13682#p13682"/>
<title type="html"><![CDATA[What is he doing??]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2154&amp;p=13682#p13682"><![CDATA[
As Pev described the fix for this is to make the correction to the code by adding the &quot;GOTO main&quot;, or just &quot;done: GOTO done&quot; if you don't want to repeat<br /><br />Without this you are hitting the return at the end of the standard_pose, when you never made a gosub. You are pulling an invalid return address of the stack and jumping to somewhere undefined.<br /><br />The download of a program only writes the region where the program actually resides, so old programs are not always overwritten. The clear memory, only clears the header at the bottom of memory.<br /><br />The FILL will not fix the problem, in fact it is probably part ot the reason for odd effects, since it leaves more code in high memory, with a lot of NOP in front. Don't use FILL in normal programs unless you need it, it just wastes space and make downloads longer.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=159">i-Bot</a> — Mon Jan 21, 2008 10:41 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Entrastic]]></name></author>
<updated>2008-01-21T09:37:14+01:00</updated>
<published>2008-01-21T09:37:14+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2154&amp;p=13681#p13681</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2154&amp;p=13681#p13681"/>
<title type="html"><![CDATA[What is he doing??]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2154&amp;p=13681#p13681"><![CDATA[
thanx Pev and Midas.<br /><br />But bad news guys...I tried clearing the memory and it didnt make a difference. He continued doing the same thing.<br /><br />Then I tried using the Fill command as suggest by Midas. Only difference in the performace was that he waited for few secodns before doing his crazy moves.<br /><br />This is really interesting. So it is not because of any garbage in the memory. So what can this be due to?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=763">Entrastic</a> — Mon Jan 21, 2008 9:37 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Pev]]></name></author>
<updated>2008-01-21T09:04:40+01:00</updated>
<published>2008-01-21T09:04:40+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2154&amp;p=13680#p13680</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2154&amp;p=13680#p13680"/>
<title type="html"><![CDATA[What is he doing??]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2154&amp;p=13680#p13680"><![CDATA[
Ah I see. Well it obviously has not cleared all the other memory and has dropped past your code to previous code. Try putting a goto main after the standard pose routine. It is not a fix just a test as this will make the code you have written loopand thus not drop out past it. <br /><br />Also I have a vague recollection that the roboBasic interface has a clear memory menu option (I may be mistaken it been a while since I ran it up (bloody work)).<br /><br />Pev<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=88">Pev</a> — Mon Jan 21, 2008 9:04 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Midas]]></name></author>
<updated>2008-01-21T07:35:46+01:00</updated>
<published>2008-01-21T07:35:46+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2154&amp;p=13678#p13678</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2154&amp;p=13678#p13678"/>
<title type="html"><![CDATA[What is he doing??]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2154&amp;p=13678#p13678"><![CDATA[
Try adding<br />FILL 255,10000<br />to the top of the program.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=836">Midas</a> — Mon Jan 21, 2008 7:35 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Entrastic]]></name></author>
<updated>2008-01-21T03:44:28+01:00</updated>
<published>2008-01-21T03:44:28+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2154&amp;p=13674#p13674</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2154&amp;p=13674#p13674"/>
<title type="html"><![CDATA[What is he doing??]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2154&amp;p=13674#p13674"><![CDATA[
<blockquote><div><cite>Pev wrote:</cite><br />he is just cycling through all the motions in the file.<br /></div></blockquote><br /><br />Hi Pev,<br /><br />That is exactly the weird thing. I have no other motions in the file. What I have pasted in my first post is all that is there in the file that I uploaded to the robonova. He was supposed to just standup and do nothing. Instead he started doing all that moves out of no where.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=763">Entrastic</a> — Mon Jan 21, 2008 3:44 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Pev]]></name></author>
<updated>2008-01-20T23:03:34+01:00</updated>
<published>2008-01-20T23:03:34+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2154&amp;p=13670#p13670</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2154&amp;p=13670#p13670"/>
<title type="html"><![CDATA[What is he doing??]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2154&amp;p=13670#p13670"><![CDATA[
I think you are missing a goto main in the code - so instead of waiting for a command he is just cycling through all the motions in the file. Try putting a goto main in the code here :<br /><br /><br />SPEED 5 <br /><br />'== motor power on ============================= <br />MOTOR G24 <br /><br />GOSUB standard_pose <br /><br />'================================================ <br />MAIN: <br /><br /><br /><br />' MOVE G24, ,90, , , , , , , , , , , , , , , , , , , , , , <br /><br /><span style="font-weight: bold">Goto MAIN</span><br />'================================================ <br />standard_pose: <br />MOVE G6A,100, 76, 145, 93, 100, 50 <br />MOVE G6D,100, 76, 145, 93, 100, 50 <br />MOVE G6B,100, 30, 80, 160,160, 160 <br />MOVE G6C,100, 30, 80, 100, 100, 100 <br />WAIT <br />RETURN<br /><br />Obviously in the code sample you have shown that will just get him to stand up and then do nothing. The standard templates have the code for the main loop with the IR and everything.<br /><br />Hope that helps and check the syntax as I am doing that from memory  <img src="http://forum.robosavvy.com/images/smilies/icon_smile.gif" alt=":)" title="Smile" /> <br /><br />Pev<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=88">Pev</a> — Sun Jan 20, 2008 11:03 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Entrastic]]></name></author>
<updated>2008-01-20T21:19:05+01:00</updated>
<published>2008-01-20T21:19:05+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2154&amp;p=13669#p13669</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2154&amp;p=13669#p13669"/>
<title type="html"><![CDATA[What is he doing??]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2154&amp;p=13669#p13669"><![CDATA[
oops... the video didnt get embedded here. Let me try it again. Btw, if this doesnt work, please click on the you tube link i have posted in the last video<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>&lt;embed src=&quot;http://www.youtube.com/v/JpOX29FwWlg&amp;rel=1&quot; type=&quot;application/x-shockwave-flash&quot; wmode=&quot;transparent&quot; width=&quot;425&quot; height=&quot;355&quot;&gt;&lt;/embed&gt;</code></dd></dl><br /><br />&lt;embed src="http://www.youtube.com/v/JpOX29FwWlg&amp;rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"&gt;&lt;/embed&gt;<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=763">Entrastic</a> — Sun Jan 20, 2008 9:19 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Entrastic]]></name></author>
<updated>2008-01-20T21:12:43+01:00</updated>
<published>2008-01-20T21:12:43+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2154&amp;p=13668#p13668</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2154&amp;p=13668#p13668"/>
<title type="html"><![CDATA[What is he doing??]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2154&amp;p=13668#p13668"><![CDATA[
Guys,<br /><br />I found couple of old servos in my room and wanted to test them. So I connected them to my Robonova and was messing aroudn with the values for all the servos in the 'standard pose' to figure out the servo number.<br /><br />below is the code I was using.<br /><br /><br />DIM A AS BYTE<br />DIM A16 AS BYTE<br /><br />DIM v AS BYTE<br /><br /><br />PTP SETON <br />PTP ALLON<br /><br />'== motor diretion setting ======================<br />DIR G6A,1,0,0,1,0,0<br />DIR G6B,1,1,1,1,1,1<br />DIR G6C,0,0,0,0,0,0<br />DIR G6D,0,1,1,0,1,0<br /><br />'== motor start position read ===================<br />GETMOTORSET G6A,1,1,1,1,1,0<br />GETMOTORSET G6B,1,1,1,0,0,0<br />GETMOTORSET G6C,1,1,1,0,0,0<br />GETMOTORSET G6D,1,1,1,1,1,0<br /><br />SPEED 5<br /><br />'== motor power on  =============================<br />MOTOR G24<br /><br />GOSUB standard_pose<br /><br />'================================================<br />MAIN:    <br /><br /><br /><br />'MOVE G24,  ,90, , , , , , , , , , , , , , , , , , , , , , <br /><br /><br />'================================================<br />standard_pose:<br />MOVE G6A,100,  76, 145,  93, 100, 50 <br />MOVE G6D,100,  76, 145,  93, 100, 50  <br />MOVE G6B,100,  30,  80, 160,160, 160<br />MOVE G6C,100,  30,  80, 100, 100, 100<br />WAIT<br />RETURN<br />'================================================<br />'<br /><br />As I was testign a single line in the program, I didnt include anythign in the main. Then later I uploaed the entire program to my robonova and this is what he did. Please note that my hand is there in the video just to make sure he doesnt fall off. Can some one tell me why he is doing this ritual everytime i turn him on without me programming it.  Am I doing something stupid. Is there any simple explanation??<br /><br /><!-- m --><a class="postlink" href="http://www.youtube.com/watch?v=JpOX29FwWlg">http://www.youtube.com/watch?v=JpOX29FwWlg</a><!-- m --> <br /><br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>&#91;media&#93;http://www.youtube.com/watch?v=JpOX29FwWlg&amp;rel=1&#91;/media&#93;</code></dd></dl><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=763">Entrastic</a> — Sun Jan 20, 2008 9:12 pm</p><hr />
]]></content>
</entry>
</feed>