Shop OBEX P1 Docs P2 Docs Learn Events
hi i need help to programming multiple boebots with bs2 and labview — Parallax Forums

hi i need help to programming multiple boebots with bs2 and labview

rifkyrifky Posts: 3
edited 2008-06-02 18:02 in Robotics
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;

Comments

  • FranklinFranklin Posts: 4,747
    edited 2008-05-28 00:11
    Labview needs to convert its messages into ascii strings and send them to the boebot where they are acted upon by the bot. You need to write a program for the boebot to check for serial input and then do what it requires.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • edited 2008-06-02 18:02
    Here's a link to an example published on the Parallax web site that demonstrates the message exchanges Fralnklin describes:

    http://www.parallax.com/Portals/0/Downloads/sw/BS2LabView.zip

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Andy Lindsay

    Education Department
    Parallax, Inc.
Sign In or Register to comment.