Obstacle Avoidance


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2013
    Posts
    1

    Unhappy Obstacle Avoidance

    Hi,

    pls I urgently need help with my code. I am using Amicus18 and the language is BASIC. I have used the ADIn to calculate the voltages for the four IR sensors and converted to distance by plotting the Distance/voltage curve and using the line equation to determine the distances with the assciated voltages but I have tried many days to let the robot appraoch an object and stop but it just can't stop. The code I write for that portion is If D_L1 >=15 Then turn left : ELSEIF D_R1>=15 Then turn left : ELSE : GoTo forward. What do I have to do to get it stop. It can reverse, it can turn left and right but it cannot stop when it gets to an obstacle. Thank you for your help.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Obstacle Avoidance

    If you are using the free compiler for the Amicus 18 go here
    http://www.myamicus.co.uk/

    If you are using Pic Basic Pro then post your code.
    Dave
    Always wear safety glasses while programming.

  3. #3
    stive951's Avatar
    stive951 Guest


    Did you find this post helpful? Yes | No

    Default Re: Obstacle Avoidance

    I cannot get this example code to compile - syntax error after step 2 . I tried several different versions of the statement, but no luck.

Similar Threads

  1. Line Following, Obstacle Avoiding , and Victim Finding
    By cryptex in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th June 2011, 16:34

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts