Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Line Following inside a program?

  1. #11
    Join Date
    Sep 2008
    Location
    Minnesota
    Posts
    2,949

    Default Re: Line Following inside a program?

    Quote Originally Posted by AngyLPer View Post
    Thanks for your answers
    The PID linefollower works really good for my roboter but the only thing that doesn't work is that i can't place a motor/move block infront of the calibration.

    I also tried the programs from nxtprograms.com

    I have already tried to solve this problem by using only the calibration part without the rest of the program but it't always the same.
    I told the roboter to end the loop until motor B reaches 40 degres.
    When there is nothing before the roboter turns 40 degres but when i put a block infront he turns 100 degres.

    I think the problem has nothing to do with PID but with the calibration.
    I tried using the calibration from the linefolower at nxtprograms.com but it's the same.
    I think you answered your problem.

    "I told the roboter to end the loop until motor B reaches 40 degree...but when i put a block infront he turns 100 degres."

    How does putting a block in front change the rotations sensor value for motor B? How can you correct the problem?

  2. #12
    Join Date
    Apr 2012
    Posts
    7

    Default Re: Line Following inside a program?

    [/QUOTE]How does putting a block in front change the rotations sensor value for motor B? How can you correct the problem?[/QUOTE]



    This is the question i ask myself and i don't know why it is like this.
    I can't really understand it so I ask you for help if someone knows it?

    Changing the rotations loop to less than 40 degrees he turns the same and it doesn't matter if i choose 1 degree or 40 degrees but when i chose 360 degrees the roboter turns 360 degrees.

  3. #13
    Join Date
    Dec 2011
    Location
    Oregon, USA
    Posts
    1,063

    Default Re: Line Following inside a program?

    Quote Originally Posted by AngyLPer View Post
    How does putting a block in front change the rotations sensor value for motor B? How can you correct the problem?

    This is the question i ask myself and i don't know why it is like this.
    I can't really understand it so I ask you for help if someone knows it?

    Changing the rotations loop to less than 40 degrees he turns the same and it doesn't matter if i choose 1 degree or 40 degrees but when i chose 360 degrees the roboter turns 360 degrees.
    Perhaps this material will be useful.
    http://forums.usfirst.org/showthread...5137#post55137

    http://forums.usfirst.org/showthread.php?p=42964
    FTC Judge: 2010
    FLL Mentor & Coach Instructor: 2011-2014
    FLL referee: 2012-2014
    FRC judge (Chairman's Award): 2014

  4. #14
    Join Date
    Sep 2008
    Location
    Minnesota
    Posts
    2,949

    Default Re: Line Following inside a program?

    Quote Originally Posted by AngyLPer View Post


    This is the question i ask myself and i don't know why it is like this.
    I can't really understand it so I ask you for help if someone knows it?

    Changing the rotations loop to less than 40 degrees he turns the same and it doesn't matter if i choose 1 degree or 40 degrees but when i chose 360 degrees the roboter turns 360 degrees.
    Think about this. What is the value of rotation sensor B when you START your loop? How does this change if you put a Move block BEFORE the loop.

  5. #15
    Join Date
    Apr 2012
    Posts
    7

    Default Re: Line Following inside a program?

    Yeah it works thank you for all your help

    I put infront of the calibration two resetrotation B and C
    Then I made a constante (Turning 40degrees) at that compares with rotationssensor C and when its same then he end the loop and it works

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. robot goes backward instead of forward?
    By guest2012 in forum Programming
    Replies: 156
    Last Post: 05-04-2012, 03:05 PM

Posting Permissions

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