ROBOTC.net forums
http://www.robotc.net/forums/

Lego motors
http://www.robotc.net/forums/viewtopic.php?f=52&t=1217
Page 2 of 2

Author:  madscientist032 [ Mon Feb 16, 2009 7:29 pm ]
Post subject:  Re: Lego motors

what exactly does the PIDcontrol do anyways?

Author:  Sunny1261 [ Mon Feb 16, 2009 8:36 pm ]
Post subject:  Re: Lego motors

Google is your friend. :D.

In short, when you set your motor to 50, the program is sending 50% power, but the motor might no be running at that power level, for instance friction and other factors are involved, so PID accounts for the difference and adds/subtracts this to the value.

Stands for Proportional Integral Derivative.

Author:  Emilhem [ Mon Feb 16, 2009 8:59 pm ]
Post subject:  Re: Lego motors

The PID is controlling the speed of the motors.
Uses the encoder to find the actual speed.

Without PID:
Your wanted speed = 40
The power motor receives = 40

With PID:
Your wanted speed = 40
The power the motor receives = 40
The measured speed = 25
Calculated difference = -15
PID extra power = 15
The power the motor receives after PID difference= 55
The measured speed = 35
Calculated difference from wanted speed = -5
PID extra power = 5
The power the motor receives after PID difference= 60
The measured speed = 41
Calculated difference from wanted speed = 1
PID extra power = -1
The power the motor receives after PID difference= 59

Continues forever

Author:  madscientist032 [ Fri Feb 27, 2009 9:08 pm ]
Post subject:  Re: Lego motors

so is enabling PID control useful or not? I figured it was messing with our motors since the beginning so I turned it off.

Author:  10nisman94 [ Fri Feb 27, 2009 10:53 pm ]
Post subject:  Re: Lego motors

it is useful in autonomous only if u have encoders but bad for tele op, it gives tele op a jerky feel.

Page 2 of 2 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/