hi i need help to programming multiple boebots with bs2 and labview
are there any manuals online for labview and vision assistant for boebot..i'm using vision assistant to identify·different robots's top view·pattern and color..when command for specific·robot is given·it will move left turn right or halt towards the target as if its the ball and the boe bots are the players
i found some codes for labview(distance to ball, orientation , angle2ball )·but it wun work [noparse]:([/noparse].. anyone can help me see whers the problem
{
//turn left
if((A>0)&&(O>0))
{Output=4;}
else if((A>O)&&((A-O)<40))
{Output=0;}
else if ((A<O)&&((A-O)<10)&&(dist<90))
{Output=1;}
else
//Turn right
if(A<0 && O<0)
{Output=8;}
else if((A<O)&&((O-A)<20))
{Output=0;}
else if ((A<O)&&((A-O)<5)&&(dist<90))
{Output=1;}
}
robot matched and target matched codes
dist=sqrt((xr-xt)**2+(yr-yt)**2);
alpha=asin((xt-xr)/dist)*180/pi;
i found some codes for labview(distance to ball, orientation , angle2ball )·but it wun work [noparse]:([/noparse].. anyone can help me see whers the problem
{
//turn left
if((A>0)&&(O>0))
{Output=4;}
else if((A>O)&&((A-O)<40))
{Output=0;}
else if ((A<O)&&((A-O)<10)&&(dist<90))
{Output=1;}
else
//Turn right
if(A<0 && O<0)
{Output=8;}
else if((A<O)&&((O-A)<20))
{Output=0;}
else if ((A<O)&&((A-O)<5)&&(dist<90))
{Output=1;}
}
robot matched and target matched codes
dist=sqrt((xr-xt)**2+(yr-yt)**2);
alpha=asin((xt-xr)/dist)*180/pi;
vi
122K
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
http://www.parallax.com/Portals/0/Downloads/sw/BS2LabView.zip
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Andy Lindsay
Education Department
Parallax, Inc.