FIRST Forums  

Go Back   FIRST Forums > General Discussions > FIRST Programs > FIRST LEGO League > The Challenge > Programming

Reply
 
Thread Tools
  #11  
Old 04-30-2012, 11:37 AM
Dean Hystad Dean Hystad is offline
Senior Member
 
Join Date: Sep 2008
Location: Minnesota
Posts: 1,698
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?
Reply With Quote
  #12  
Old 04-30-2012, 02:14 PM
AngyLPer AngyLPer is offline
Junior Member
 
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.
Reply With Quote
  #13  
Old 04-30-2012, 03:02 PM
Tom Mosher Tom Mosher is offline
Senior Member
 
Join Date: Dec 2011
Location: Oregon, USA
Posts: 513
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?

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.
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 Volunteer and Mentor: 2011, 2012
FLL referee-of-moderate-experience: 2012
Reply With Quote
  #14  
Old 04-30-2012, 03:16 PM
Dean Hystad Dean Hystad is offline
Senior Member
 
Join Date: Sep 2008
Location: Minnesota
Posts: 1,698
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.
Reply With Quote
  #15  
Old 05-02-2012, 11:02 AM
AngyLPer AngyLPer is offline
Junior Member
 
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
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
robot goes backward instead of forward? guest2012 Programming 156 05-04-2012 02:05 PM


All times are GMT -4. The time now is 10:52 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.