<?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>
        I will give both of these options a try, hopefully one will work for me, if not I will post what I have tried previously.&amp;nbsp;&amp;nbsp;Thanks again for the help        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=3998</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=3998</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        When implementing a DEADBAND filter for joysticks, you have to consider that any value outside the deadband area (usually a square) has to be scaled back to 1 or 0.&lt;br&gt;&lt;br&gt;In pseudo-code, assuming that the joystick value ranges for X and Y axis are -32767 to 32767, and a deadband of +/-1500, looks something like this&lt;br&gt;&lt;br&gt;DEADBAND=1500&lt;br&gt;&lt;br&gt;SCALING_X = 0.9542236328125&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;(32768-1500)/32768&lt;br&gt;SCALING_Y = 0.9542236328125&lt;br&gt;&lt;br&gt;JOYSTICK_X = GET_JOYSTICK_X()&lt;br&gt;JOYSTICK_Y = GET_JOYSTICK_Y()&lt;br&gt;&lt;br&gt;// Coerce joystick values inside deadband area, otherwise ignore&lt;br&gt;if JOYSTICK_X &amp;gt;= -1500 and JOYSTICK_X &amp;lt;= 1500 then&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;JOYSTICK_X = 0;&lt;br&gt;&lt;br&gt;if JOYSTICK_Y &amp;gt;= -1500 and JOYSTICK_Y &amp;lt;= 1500 then&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;JOYSTICK_Y = 0;&lt;br&gt;&lt;br&gt;JOYSTICK_X_SCALED = JOYSTICK_X * SCALING_X&lt;br&gt;JOYSTICK_Y_SCALED = JOYSTICK_Y * SCALING_Y&lt;br&gt;&lt;br&gt;This should effectively remove a chunk of sensitivity from the joystick near the center position, but still allow you to send the full dynamic range of the joystick without a sudden jerky move when the thing goes from 0 straight to 1500.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=3998</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=3998</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Greg,&lt;br&gt;&lt;br&gt;it may be easier if you post you entire VBScript. It should be something along the lines of:&lt;br&gt;&lt;br&gt;jforBack = GetVariable(&quot;jfor_back&quot;)&lt;br&gt;if jforBack &amp;gt; 1450 and jforBack &amp;lt; 1550 then&lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;sfor_back&quot;, 1500&lt;br&gt;else&lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;sfor_back&quot;, jforBack&lt;br&gt;end if&lt;br&gt;&lt;br&gt;STeven.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=3998</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=3998</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>adding center off range to joystick control</title>
        <description>
        I am controlling an ROV with a USB Attack 3 Joystick to a Pololu Maestro controller.&amp;nbsp;&amp;nbsp;I have good control of the sliders but I need to have a small deadband around the center position of 1500 .&amp;nbsp;&amp;nbsp;The joystick does not return to dead center on release but is somewhere around 50 + or -.&amp;nbsp;&amp;nbsp;For good control it is critical the motors controlling left, right, forward and back stop on joystick release.&amp;nbsp;&amp;nbsp;I was thinking that an IF statement for joystick position of 1450 to 1550 to set servo to 1500 (center-off) then use an else statement for anything outside that range to operate normally.&amp;nbsp;&amp;nbsp;I am very new to programming.&amp;nbsp;&amp;nbsp;To control the slider position now I am using the following: SetVariable &quot;sfor_back&quot;, GetVariable (&quot;jfor_back&quot;) + 1500.&amp;nbsp;&amp;nbsp;Everything I have tried for the if statement has failed to function.&amp;nbsp;&amp;nbsp;Any help would be greatly appreciated.&amp;nbsp;&amp;nbsp;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=3998</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=3998</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
</channel>
</rss>
