loading
 
SSC-32 Problem
 [4 posts]
11 year
Hi,

When I try to run the code attached , and disable the Lynxmotion_SSC, the code seems to run just fine ( I mean the pan and tilt Variables runs correct in VBscripts) but when I enable it these variables get stuck (the Pan is stuck on 1200 + or - 17)

Please Help :)
Thanks in Advance
program.robo
Anonymous 11 year
Mostafa,

The comparison in your VBScript is the wrong way. You have

if size < 85 then

which should be

if size > 85 then

that statement needs to check that something exists in the image of size 85 or greater. If there is then movement can be changed in accordance to that. The way your current version reads is that when there is something in the image at that size it will freeze and only when nothing is in the image then a movement will be made ... but in relation to nothing ... which makes it look random.

Make the comparison switch and see if that helps.

STeven.
 [4 posts] 11 year
Steven , I was running a very old version of RR , and took the old code and ran it on the latest version. When I rewrote the code in the new version it worked.

This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 New Post   Forum Index