|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
FLL proportional alignment!
Could someone please help me on making a proportional alignment program with an EV3?
Thank you! |
|
#2
|
|||||
|
|||||
|
Re: FLL proportional alignment!
Can you explain what you mean by "proportional alignment"? What do you want the program to do?
|
|
#3
|
||||
|
||||
|
Re: FLL proportional alignment!
Sorry I did not specify, what the program is supposed to do is align on a colored line with light intensity while using a proportional controller.
Thank You ![]() |
|
#4
|
|||||
|
|||||
|
Re: FLL proportional alignment!
Find the white paper here on CD somewhere called "PID without a PhD", that will help you understand the idea behind a P controller. Then search the term "PID" which is what you are looking for - just that your I and D terms will be ignored.
I'm not a programmer, and i know little about the EV3, but... <Pseudocode> Code:
Does sensor see line? Yes: Move forward a little No: Turn a little repeat until you reach 'goal' |
|
#5
|
||||
|
||||
|
Re: FLL proportional alignment!
We didn't have a LEGO team this year, but last year we had a couple of PID "P" only drives. Attached are a few "test" samples that run in a loop for testing and tuning.
#1: LightDrive: This followed a black line with pin point precision. You're light sensor needs to be about 1/2" to 3/4" away from the line. #2: GyroDrive: We could drive in a straight line using the Gyro. Hope it helps. Last edited by Chris_Elston : 29-11-2014 at 23:48. |
|
#6
|
||||
|
||||
|
Re: FLL proportional alignment!
Could someone please post a link to "PID without a PHD".
Thanks! |
|
#7
|
|||
|
|||
|
Re: FLL proportional alignment!
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|