<?xml version="1.0" encoding="ISO-8859-1" ?><rss version="2.0">
<channel>
    <title>RoboRealm Forum</title>
    <link>http://www.RoboRealm.com/</link>
    <description>The newest forum threads.</description>
    <lastBuildDate>Tue, 30 Nov 1999 00:11:00 EST</lastBuildDate>
    <language>en-us</language>
    <copyright>Copyright: (C) RoboRealm, http://www.RoboRealm.com/</copyright>
    <docs>http://www.RoboRealm.com/</docs>

    <item>
        <title>No Title</title>
        <description>
        Riley,&lt;br&gt;&lt;br&gt;Ok, that makes better sense. Then it would be more like&lt;br&gt;&lt;br&gt;if GetVariable (&quot;LIGHTS_ON&quot;)=1 then &lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;picoswitch_value&quot;, 1 &lt;br&gt;end if &lt;br&gt;&lt;br&gt;if GetVariable (&quot;LIGHTS_OFF&quot;)=1 then &lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;picoswitch_value&quot;, -1 &lt;br&gt;end if &lt;br&gt;&lt;br&gt;Note that as long as you don&apos;t change the value of a variable it will not change its value ... so you use the two buttons to change the state of the variable as appropriate ... or you could use one button to toggle the value as another alternative.&lt;br&gt;&lt;br&gt;If -1 does not appear to switch off the lights try a zero instead as sometimes negative values are not well transmitted to various devices.&lt;br&gt;&lt;br&gt;STeven.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=3720</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=3720</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        I can see where this does look a bit confused. I am not actually controling a servo at all. I used servo1value as a default since it corresponds to my other scripts. I am actually controling a Dimensions Engineering Pico Switch (relay) that triggers when it receives a positive value from the controller (I assumed +500 was as good as any).&lt;br&gt;&lt;br&gt;Instead of servo_1_value I probably should have named it picoswitch_value.&lt;br&gt;&lt;br&gt;So basically I am trying to deliver a +500 value when LIGHTS_ON (button 9 is pressed and have the value terminate when LIGHTS_OFF(button 8) is depressed.&lt;br&gt;&lt;br&gt;hope this makes sense??&lt;br&gt;&lt;br&gt;Thank you (again)&lt;br&gt;&lt;br&gt;-Riley        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=3720</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=3720</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Riley,&lt;br&gt;&lt;br&gt;The code looks a little confused ... what are you trying to do when the button is pressed?&lt;br&gt;&lt;br&gt;Since you are checking the lights_on variable in &lt;br&gt;&lt;br&gt;if GetVariable (&quot;LIGHTS_ON&quot;)=1 then servo1value=lightsOn+500 end if &lt;br&gt;&lt;br&gt;this will never trigger since in the previous line you are setting the LIGHTS_ON variable to some value +1500 so it is unlikely that the value will ever be 1. I think you mean something more like&lt;br&gt;&lt;br&gt;&lt;br&gt;SetVariable &quot;servo_1_value&quot;, servo1value + 1500 &lt;br&gt;if GetVariable (&quot;LIGHTS_ON&quot;)=1 then &lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;servo_2_value&quot;, 2500 &lt;br&gt;else&lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;servo_2_value&quot;, 500 &lt;br&gt;end if&lt;br&gt;&lt;br&gt;where servo1 is used for whatever, and servo2 will switch the light switch ... assuming that one end of the servo rotation is on and the other is off.&lt;br&gt;&lt;br&gt;Or are servo1 and servo2 connected in some way?&lt;br&gt;&lt;br&gt;STeven.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=3720</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=3720</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>scripting issue</title>
        <description>
        OK I&apos;ve Really tried to work this out.&lt;br&gt;&lt;br&gt;I am attempting to control a slider in pololu mini maestro 12 with a logitech attack 3 joystick.&lt;br&gt;I have named button 9 on the joystick &quot;LIGHTS_ON&quot; and have mapped it to the VBScript Source Program with no problem.&lt;br&gt;&lt;br&gt;I wrote the following script (along with several variations):&lt;br&gt;SetVariable &quot;servo_1_value&quot;, servo1value + 1500&lt;br&gt;SetVariable &quot;LIGHTS_ON&quot;, lightsOn + 1500&lt;br&gt;if GetVariable (&quot;LIGHTS_ON&quot;)=1 then servo1value=lightsOn+500 end if&lt;br&gt;&lt;br&gt;I assigned &quot;servo_1_value&quot; to the proper channel in the maestro control module.&lt;br&gt;This successfully adds the proper value to the control module (centering the value).&lt;br&gt;However, when the button on the jojstick is pressed, the values remain unaffected.&lt;br&gt;&lt;br&gt;ANY help would be appreciated.&lt;br&gt;&lt;br&gt;-Riley        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=3720</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=3720</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
</channel>
</rss>
