Go to Post Engineering is NOT manufacturing. .... It is good to be able to fabricate things with your own hands, but thats not what engineers do. - KenWittlief [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rating: Thread Rating: 31 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 06-02-2012, 17:29
h3x h3x is offline
Registered User
no team
 
Join Date: Oct 2011
Location: United States
Posts: 19
h3x is an unknown quantity at this point
[FTC]: PID control questions

My team wants to implement either motor encoder control or PID control into our autonomous for more accurate maneuvering. With the encoders, we would set the number of degrees we want the wheel to turn. But, from what I have seen, PID control would be easier. So does PID just let you run the motors as you would normally, except with a more accurate speed? As in, PID control just adjusts the motor's power to account for other variables that might be slowing it down/speeding it up, no?

This also begs another question. If we enable PID control, and set a motor to 100 power, then how is the PID controller going to give the motor extra power when it needs it? Wouldn't it already be at maximum power? Because if this, it may be necessary to use, say, 95 as the max power of motors, so PID can increase the power.

If we get PID working in autonomous, we might as well enable it in teleop for more consistent control, correct?

Also, I have heard of problems where a robot's motors can slow down to 65% speed in automomous, possibly due to PID control. Has anyone heard of this?

Finally, PID control is just added with the following line, correct?
Code:
nMotorPIDSpeedCtrl[motorX] = mtrSpeedReg;
When the above line is implemented, it should make the standard "turn on motor, wait 3 seconds, turn off motor"-type autonomous movements more accurate, right?

Thanks a lot, an answer to any of these questions will be very helpful.
Reply With Quote
  #2   Spotlight this post!  
Unread 18-02-2012, 22:18
alicia635769 alicia635769 is offline
Registered User
FTC #0310
 
Join Date: Nov 2011
Location: NYC
Posts: 8
alicia635769 is an unknown quantity at this point
Re: [FTC]: PID control questions

We're having a similar problem. We want to sync 4 TETRIX motors up exactly, and thought PID control was the best for it. All four motors have encoders on them.

So far we've tried:
  1. nMotorPIDSpeedCtrl[motorX] = mtrSpeedReg;
  2. nSyncedMotors = synch BC;

From what I've seen, the motors still turn at different rates. I suspect that these built-in RobotC functions only work with NXT motors; is this true?

And also, is the function "nMotorEncoderTarget[]" only for NXT motors or TETRIX motors, too? (I tried it; TETRIX motor did not stop once it reached the target)
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 19:08.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi