Shop OBEX P1 Docs P2 Docs Learn Events
Line Tracer Robot — Parallax Forums

Line Tracer Robot

pusinkpusink Posts: 68
edited 2011-06-27 02:43 in Propeller 1
my robot no problem to follow the line...When my robot detect junction i want my robot to turn 90 deg..but my robot not turn 90 deg..why?? can any body help to to correct my code.....i'm not using qti sensor..just file name...tq very much...

Comments

  • nestor73nestor73 Posts: 33
    edited 2011-06-27 01:44
    Why do you read the LED status instead of the Input itself ? Not that it matters, it's just strange to me...

    You also might want to add the "BS2_Functions "
  • idbruceidbruce Posts: 6,197
    edited 2011-06-27 02:43
    Why do you read the LED status instead of the Input itself ?

    I would have to agree.

    Your movement and LED status lights should be based upon the input of the sensors and pushbuttons, respectively, instead of having the LED state determine your movement. Rewrite your code to reflect this and it will be a step in the right direction.

    Bruce
Sign In or Register to comment.