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

<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>2007-10-16T22:19:49+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=4&amp;t=1830</id>
<entry>
<author><name><![CDATA[Voelker]]></name></author>
<updated>2007-10-16T22:19:49+01:00</updated>
<published>2007-10-16T22:19:49+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1830&amp;p=11745#p11745</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1830&amp;p=11745#p11745"/>
<title type="html"><![CDATA[Using remocon]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1830&amp;p=11745#p11745"><![CDATA[
I finally got it working.<br /><br /><br /><br />'================================================<br />' templet program <br />'<br />' RR : internal parameter variable / ROBOREMOCON / Action command<br />' A  : temporary variable          / REMOCON<br />' A16,A26 : temporary variable <br />'<br />'== auto_main ===================================<br />GOTO AUTO<br />FILL 255,10000<br /><br />DIM RR AS BYTE<br />DIM A AS BYTE<br />DIM A16 AS BYTE<br />DIM A26 AS BYTE<br />DIM limit AS BYTE<br />DIM flag0 AS BYTE<br />DIM steps AS BYTE<br /><br />CONST ID = 0     ' 1:0, 2:32, 3:64, 4:96,<br /><br />'== Action command check (50 - 82)<br />IF RR &gt; 50 AND RR &lt; 83 THEN GOTO action_proc <br /><br />RR = 0<br />flag0 = 0<br /><br />PTP SETON <br />PTP ALLON<br /><br />'== motor direction 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 /><br />'== motor start position read ===================<br />TEMPO 230<br />MUSIC &quot;CDE&quot;<br />GETMOTORSET G24,1,1,1,1,1,0,1,1,1,0,0,0,1,1,1,0,0,0,1,1,1,1,1,0<br />'== motor power on  =============================<br />SPEED 5<br />MOTOR G24<br />GOSUB standard_pose<br /><br />'================================================<br />MAIN:<br />GOSUB robot_voltage<br />'GOSUB robot_tilt<br /><br />'-----------------------------<br />IF RR = 0 THEN GOTO MAIN1<br /><br />ON RR GOTO MAIN,K1,K2,K3,K4,K5,K6,K7,K8,K9,K10,K11,K12,K13,K14,K15,K16,K17,K18,K19,K20,K21,K22,K23,K24,K25,K26,K27,K28,K29,K30,K31,K32<br />GOTO main_exit<br />'-----------------------------<br />MAIN1:<br /> get_input:<br />IF flag0 = 0 THEN<br />A = REMOCON(1)<br />A = A - ID<br />flag0 = 1<br />GOSUB get_input<br />ELSE<br />limit = 0<br />limit = REMOCON(1)<br />limit = limit - ID<br />IF limit = 0  AND A = 18 THEN GOSUB get_input<br />flag0 = 0<br /><br />ON A GOTO MAIN,K1,K2,K3,K4,K5,K6,K7,K8,K9,K10,K11,K12,K13,K14,K15,K16,K17,K18,K19,K20,K21,K22,K23,K24,K25,K26,K27,K28,K29,K30,K31,K32<br />GOTO MAIN<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=728">Voelker</a> — Tue Oct 16, 2007 10:19 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[quickster47]]></name></author>
<updated>2007-10-16T12:50:05+01:00</updated>
<published>2007-10-16T12:50:05+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1830&amp;p=11738#p11738</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1830&amp;p=11738#p11738"/>
<title type="html"><![CDATA[Try This]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1830&amp;p=11738#p11738"><![CDATA[
Voelker,<br /><br />I would try something like the code below this text.  What you are doing is using a flag to get the first and second commands from the RemCon.  You start with the flag set false, get the frist command into RRCmd, set the flag true and then return to get the next command.  On the second pass you get the value and put it into the limit count for the for-next loop.<br /><br />I did not get to try this cause I am at work but it should do what you are wanting.  And I know the do_move routine is not correct but is should demonstrate the principle.<br /><br />DIM RR    AS BYTE<br />DIM A     AS BYTE<br />DIM A16   AS BYTE<br />DIM A26   AS BYTE<br />DIM I     AS BYTE<br /><br />DIM rrcmd AS BYTE<br />DIM steps AS BYTE<br />DIM limit AS BYTE<br />DIM flag0 AS BYTE<br /><br /><br />CONST ID = 0                    ' 1:0, 2:32, 3:64, 4:96<br /><br />RR = 0<br /><br />rrcmd = 0<br />flag0 = 0<br /><br />PTP SETON<br />PTP ALLON<br /><br />'=={ set motor diretions }======================================================<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 />'===============================================================================<br /><br />MAIN:<br /><br />'GOSUB robot_voltage<br />'GOSUB robot_tilt<br /><br />'-------------------------------------------------------------------------------<br /><br />IF RR = 0 THEN GOTO MAIN1<br /><br />ON RR GOTO MAIN,K1,K2,K3, ...  ,K30,K31,K32<br />GOTO main_exit<br /><br />'-------------------------------------------------------------------------------<br /><br />MAIN1:<br /><br />  get_input:<br />    IF flag0 = 0 THEN<br />      flag0 = 1<br />      rrcmd = REMOCON(1)<br />      rrcmd = rrcmd - ID<br />      GOTO get_input<br />    ELSE<br />      limit = REMOCON(1)<br />      limit = limit - ID<br />      flag0 = 0<br /><br />  ON rrcmd GOTO MAIN,K1,K2,K3, ... ,K30,K31,K32<br />  <br />  GOTO MAIN<br /><br />'-------------------------------------------------------------------------------<br /><br />main_exit:<br />  IF RR &gt; 50 THEN RETURN<br />  RR = 0<br />  GOTO MAIN<br /><br />'===============================================================================<br /><br />K1:<br />GOSUB do_move<br />GOSUB standard_pose<br />GOTO main_exit<br />K2:<br />GOSUB standard_pose<br />GOTO main_exit<br />K3:<br />GOSUB standard_pose<br />GOTO main_exit<br />K4:<br />GOSUB standard_pose<br />GOTO main_exit<br />K5:<br />GOSUB standard_pose<br />GOTO main_exit<br />K6:<br />GOSUB standard_pose<br />GOTO main_exit<br />K7:<br />GOSUB standard_pose<br />GOTO main_exit<br />K8:<br />GOSUB standard_pose<br />GOTO main_exit<br />K9:<br />GOSUB standard_pose<br />GOTO main_exit<br />K10:<br />GOSUB standard_pose<br />GOTO main_exit<br />K11:             ' ^ 1<br />GOSUB standard_pose<br />GOTO main_exit<br />K12:             ' _ 1<br />GOSUB standard_pose<br />GOTO main_exit<br />K13:             ' &gt; 1<br />GOSUB standard_pose<br />GOTO main_exit<br />K14:             ' &lt; 1<br />GOSUB standard_pose<br />GOTO main_exit<br />K15:             ' A<br />GOSUB standard_pose<br />GOTO main_exit<br />K16:<br />GOSUB standard_pose<br />GOTO main_exit <br />K17:             ' C<br />GOSUB standard_pose<br />GOTO main_exit<br />K18:             ' E<br />GOSUB standard_pose<br />GOTO main_exit<br />K19:             ' P2<br />GOSUB standard_pose<br />GOTO main_exit<br />K20:             ' B<br />GOSUB standard_pose<br />GOTO main_exit<br />K21:             ' ^ 2<br />GOSUB standard_pose<br />GOTO main_exit<br />K22:             ' *<br />GOSUB standard_pose<br />GOTO main_exit<br />K23:             ' F<br />GOSUB standard_pose<br />GOTO main_exit<br />K24:             ' #<br />GOSUB standard_pose<br />GOTO main_exit<br />K25:             ' P1<br />GOSUB standard_pose<br />GOTO main_exit<br />K26:             ' [] 1<br />GOSUB standard_pose<br />GOTO main_exit<br />K27:             ' D<br />GOSUB standard_pose<br />GOTO main_exit<br />K28:             ' &lt;2&gt; 2<br />GOSUB standard_pose<br />GOTO main_exit<br />K31:             ' _ 2<br />GOSUB standard_pose<br />GOTO main_exit<br />K32:             ' G<br />GOSUB standard_pose<br />GOTO main_exit<br /><br />'===============================================================================<br /><br />do_move:<br /><br />  SPEED 5<br /><br />  FOR steps = 0 TO limit<br /><br />    MOVE G6A, 100,  58, 135, 160, 100, 100<br />    MOVE G6B, 100,  30,  80, 100, 100, 100<br />    MOVE G6C, 100,  30,  80, 100, 100, 100<br />    MOVE G6D, 100,  58, 135, 160, 100, 100<br />    WAIT<br /><br />    DELAY 1000<br /><br />  NEXT steps <br /><br />RETURN<br /><br />'===============================================================================<br /><br />standard_pose:<br /><br />  MOVE G6D, 100,  76, 145,  93, 100, 100 <br />  MOVE G6A, 100,  76, 145,  93, 100, 100<br />  MOVE G6B, 100,  30,  80, 100, 100, 100<br />  MOVE G6C, 100,  30,  80, 100, 100, 100<br />  WAIT<br /><br />RETURN<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=747">quickster47</a> — Tue Oct 16, 2007 12:50 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[DirtyRoboto]]></name></author>
<updated>2007-10-16T12:22:15+01:00</updated>
<published>2007-10-16T12:22:15+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1830&amp;p=11735#p11735</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1830&amp;p=11735#p11735"/>
<title type="html"><![CDATA[Using remocon]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1830&amp;p=11735#p11735"><![CDATA[
<!-- m --><a class="postlink" href="http://robosavvy.com/forum/viewtopic.php?t=736&amp;highlight=loop">http://robosavvy.com/forum/viewtopic.ph ... light=loop</a><!-- m --><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=312">DirtyRoboto</a> — Tue Oct 16, 2007 12:22 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Voelker]]></name></author>
<updated>2007-10-16T06:33:02+01:00</updated>
<published>2007-10-16T06:33:02+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1830&amp;p=11729#p11729</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1830&amp;p=11729#p11729"/>
<title type="html"><![CDATA[Using remocon]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1830&amp;p=11729#p11729"><![CDATA[
I would like to capture the remocon value. In fact i would like t be able to tell the robot to perform N (0,1,2,3,4,5,6,7,8,9,10) steps. So when i press the 'E' button of the recomcon, the controller goes to my subroutine, and i would like to capture another remocon value to know how many steps i have to perform. <br />Since the remocon doesn't seem to be a buffered device i tried to include a waiting loop in my sequence, with no success.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=728">Voelker</a> — Tue Oct 16, 2007 6:33 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Humanoido]]></name></author>
<updated>2007-10-16T04:04:32+01:00</updated>
<published>2007-10-16T04:04:32+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1830&amp;p=11723#p11723</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1830&amp;p=11723#p11723"/>
<title type="html"><![CDATA[Using remocon]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1830&amp;p=11723#p11723"><![CDATA[
The remocon sends an IR pulse to initiate a step sequence. What are you trying to capture? Can you be more specific? The software will capture motion positions as detailed in the manual. Is this what you want?<br /><br />humanoido<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=416">Humanoido</a> — Tue Oct 16, 2007 4:04 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Voelker]]></name></author>
<updated>2007-10-15T21:17:27+01:00</updated>
<published>2007-10-15T21:17:27+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1830&amp;p=11717#p11717</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1830&amp;p=11717#p11717"/>
<title type="html"><![CDATA[Using remocon]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1830&amp;p=11717#p11717"><![CDATA[
Hi,<br /><br />I am trying to use the remocon to capture the number of steps my robonova has to perform, but i can't capture the value. Does anyone ever tried to do the same ?<br /><br /><br />continuous_walk:<br />DIM steps AS BYTE<br />DIM limit AS BYTE<br /><br />limit = REMOCON(1)<br />limit = limit - ID<br /><br />FOR steps = 0 TO limit<br />OUT 52,1<br />DELAY 500<br />OUT 52, 0<br />NEXT steps<br /><br />SPEED 5<br />MOVE24  85,  71, 152,  91, 112,  60, 100,  40,  80,    ,    ,    , 100,  40,  80,    ,    ,    , 112,  76, 145,  93,  92,  60,<br /><br />FOR steps = 0 TO limit<br />OUT 52, 1<br />SPEED 14 <br />'left up<br />MOVE24  90, 107, 105, 105, 114,  60,  90,  40,  80,    ,    ,    , 100,  40,  80,    ,    ,    , 114,  76, 145,  93,  90,  60,<br />'---------------------------------------<br />'left down<br />MOVE24  90,  56, 143, 122, 114,  60,  80,  40,  80,    ,    ,    , 105,  40,  80,    ,    ,    , 113,  80, 145,  90,  90,  60,<br />MOVE24  90,  46, 163, 112, 114,  60,  80,  40,  80,    ,    ,    , 105,  40,  80,    ,    ,    , 112,  80, 145,  90,  90,  60,<br /><br />SPEED 10<br />'left center<br />MOVE24 100,  66, 141, 113, 100, 100,  90,  40,  80,    ,    ,    , 100,  40,  80,    ,    ,    , 100,  83, 156,  80, 100, 100,<br />MOVE24 113,  78, 142, 105,  90,  60, 100,  40,  80,    ,    ,    , 100,  40,  80,    ,    ,    ,  90, 102, 136,  85, 114,  60,<br />OUT 52, 0<br />SPEED 14<br />'right up<br />MOVE24 113,  76, 145,  93,  90,  60, 100,  40,  80,    ,    ,    ,  90,  40,  80,    ,    ,    ,  90, 107, 105, 105, 114,  60,<br /><br />'right down<br />MOVE24 113,  80, 145,  90,  90,  60, 105,  40,  80,    ,    ,    ,  80,  40,  80,    ,    ,    ,  90,  56, 143, 122, 114,  60,<br />MOVE24 112,  80, 145,  90,  90,  60, 105,  40,  80,    ,    ,    ,  80,  40,  80,    ,    ,    ,  90,  46, 163, 112, 114,  60,<br /><br />SPEED 10<br />'right center<br />MOVE24 100,  83, 156,  80, 100, 100, 100,  40,  80,    ,    ,    ,  90,  40,  80,    ,    ,    , 100,  66, 141, 113, 100, 100,<br />MOVE24  90, 102, 136,  85, 114,  60, 100,  40,  80,    ,    ,    , 100,  40,  80,    ,    ,    , 113,  78, 142, 105,  90,  60,<br />'---------------------------------------<br />NEXT steps<br /><br />RETURN<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=728">Voelker</a> — Mon Oct 15, 2007 9:17 pm</p><hr />
]]></content>
</entry>
</feed>