+ Reply to Thread
Page 3 of 7
FirstFirst 1 2 3 4 5 ... LastLast
Results 21 to 30 of 61

Thread: PID Controller

  1. #21
    Wire Sofaking Whodunnit will become famous soon enough Whodunnit's Avatar
    Join Date
    Jan 2008
    Location
    New Zealand, Ackl
    Posts
    482

    Default Re: PID Controller

    yup, this PID rocks, i had thruster multiplier wrong hahahaha.


    i have one question , i understand all but the inegration of e with respect to time, what are the limits, and how does this integration know how long the error has been present ?


    i know the effect the "I" has, i just dont see how it knows how long the Error has been present (somethign to do with the limits changing.)


    And for anyone trying to understand this, but understands the delta upgrade on the turret in orbs tutorial, the P and D are the same as what he did in the E gate (the P and D values you select are the constants you multiply the error (difference between targetvalue and actual value), and the derivative of error by), the I here just adds a third item, which increaes if there there is no change in error over time (this is proportional to both time and error value) , and will continue to increase until the error is eliminated and the setvalue is reached.

    in otehr words, setting the I value to 0 makes this the same as orbs delta turret etc, the I just can help make it reach the setpoint as the difference approaches zero and thrust would normally be to low to move the final tiny angle (or whatever).

  2. #22
    Wire Sofaking Whodunnit will become famous soon enough Whodunnit's Avatar
    Join Date
    Jan 2008
    Location
    New Zealand, Ackl
    Posts
    482

    Default Re: PID Controller

    This needs to be in wire SVN imo , save some time (basically saves an E-Gate and alot of time for many applications)

  3. #23
    Wire Noob Magnight is on a distinguished road Magnight's Avatar
    Join Date
    Feb 2008
    Location
    Texas
    Posts
    29

    Default Re: PID Controller

    Quote Originally Posted by IEF015 View Post
    Get 7Zip extractor or just get the Wiremod Extra SVN.
    Thanks.i tried opening with 7zip but it couldnt open,it did it for the notifier though =) i got wire extras.

    by the way-can u add eagles wire button addon,its great.

  4. #24
    <3
    IEF015 is a jewel in the rough IEF015 is a jewel in the rough IEF015 is a jewel in the rough IEF015's Avatar
    Join Date
    Feb 2008
    Location
    London, ON (Canada, eh?)
    Posts
    1,047

    Default Re: PID Controller

    I still have no friggen clue what this thing does... :P
    Though, a lot of people seem to enjoy it.

    EDIT:

    Quote Originally Posted by Magnight View Post
    by the way-can u add eagles wire button addon,its great.
    It doesn't work with the 'new', 'big' Gmod update unfortunately. I never got the chance to try it out when it did work. *Sad Face*
    "It's my favourite country song. And I hate it."

  5. #25
    Inactive Eagle0600 is on a distinguished road Eagle0600's Avatar
    Join Date
    Jun 2008
    Posts
    72

    Default Re: PID Controller

    Hmm, lookin' a little wobbly there. The delta systems already in use seem to work well enough, and they even seem to correct faster and with less wobble than this.

  6. #26
    Wire Amateur tuusita is on a distinguished road tuusita's Avatar
    Join Date
    Jul 2007
    Posts
    86

    Default Re: PID Controller

    I think you are right there, Eagle, BUT...

    this is better for hydraulics (at least) because delta-based systems won't necessarily reach the desired length, whereas a PID corrects its own output until it does.

    That's the difference.

    And yes, I do hate wobbliness too. Unfortunately, with Source physics it may not always be possible to get rid of that with complex contraptions... :-I

  7. #27
    Wire Sofaking Whodunnit will become famous soon enough Whodunnit's Avatar
    Join Date
    Jan 2008
    Location
    New Zealand, Ackl
    Posts
    482

    Default Re: PID Controller

    ummm, if you leave the I value at 0 it is the same as the delta exactly, so i dont see why it would be more wobbly unless you just arent settigng your values correctly.

    (the I value can be useful as it can counteract things like the moment of gravity on beams etc changing with the angle the beam is supposed to be balanced or w/e.)

  8. #28
    Inactive Moyer is on a distinguished road Moyer's Avatar
    Join Date
    May 2008
    Posts
    9

    Default Re: PID Controller

    Uploaded new rar. I added an output limit, don't know why I didn't have it in there to begin with. It just limits the output to +/- whatever you set it to so that contraptions don't "blow up" when errors get large. Anticept, the SVN should be updated.

    Eagle, I didn't spend a whole lot of time tuning the PID parameters. The platform and pole could be made perfectly stable and incredibly fast (no overshoot or hunting) if you were to spend some time and get them perfect.

    Edit:

    Whodunnit, it doesn't know how long the error has been present. If you look at the lua, it simply does i = i + e*dt where i is the integral term, e is the error, and dt is the time between this loop through and the last one.
    Last edited by Moyer; 07-04-2008 at 06:33 PM.

  9. #29
    Wire Sofaking Whodunnit will become famous soon enough Whodunnit's Avatar
    Join Date
    Jan 2008
    Location
    New Zealand, Ackl
    Posts
    482

    Default Re: PID Controller

    okay my bad.

  10. #30
    Wirererer 3dfactor will become famous soon enough 3dfactor's Avatar
    Join Date
    Aug 2008
    Posts
    162

    Default Re: PID Controller

    This thread is kind of "oldish", but still I'd like to know if there is possibility that we'll see this PID controller added to the main wire svn? I've seen it in extras, but most of the servers doesn't have extras installed, and this controller IMO would speed things up for some of us in multiplayer constructs
    2d head with 3d brains

+ Reply to Thread
Page 3 of 7
FirstFirst 1 2 3 4 5 ... LastLast

LinkBacks (?)

  1. 01-27-2010, 10:36 AM

Similar Threads

  1. Turret with Adv. Pod Controller and Cam Controller?
    By Jaded Misanthrope in forum Help & Support
    Replies: 6
    Last Post: 07-21-2008, 10:47 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts