Go to Post It's sooo stressful! I brought my suitcase to school today, and I still don't know if we're going! - elfenari [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Spotlight this post!  
Unread 12-02-2005, 21:27
Don Reid Don Reid is offline
Registered User
#0997
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Corvallis, Oregon
Posts: 45
Don Reid will become famous soon enough
Re: PID cmd_drive can't drive straight?

I comented on the use of "/ pid_time" earlier. Someone suggested that this may be a way to deal with wind up, but I think it just makes the itegral correction ineffective after the beginning. It was pointed out that the original code always calls set_pid_stop() which zeros pid_time.

We have removed this dividing by pid_time, and used the conditional integration I posted above. This stops integration while the system is limited. But leaves it working to correct errors later after the system gets close. There will still be
some accumulated integral value that has to be removed by going beyong the
the set point, but much less than otherwise.
__________________
Don Reid
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Drive Straight C Code using Encoders without PID? Chris_Elston Programming 17 15-02-2005 23:41
All-Time PID Drive with Hall-effects: Coming along very nicely jdong Programming 6 05-02-2005 19:39
Globe gear box Pat Roche Motors 9 25-05-2004 22:50
What is wrong with this code???? It won't Compile and I don't know why? Please Help CrashZero Programming 23 26-03-2004 09:44
"Motors and Drive train edition" of Fresh From the Forum Ken Leung CD Forum Support 6 29-01-2002 12:32


All times are GMT -5. The time now is 01:46.

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