+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18
Like Tree1Likes

Thread: PID controller - what is it and how to?

  1. #11
    Wire Noob Xgraver's Avatar
    Join Date
    Apr 2009
    Posts
    11

    Default Re: PID controller - what is it and how to?

    How could i add clamp to it, so it would travel at lower but constant speed?

  2. #12
    Wire Sofaking Fizyk's Avatar
    Join Date
    Jun 2008
    Location
    Łomianki, Poland
    Posts
    740
    Blog Entries
    1

    Default Re: PID controller - what is it and how to?

    The easiest way would be to make the PID for velocity instead of position, and then set it for the desired speed.

    My programs: BIOS - Alcyone - Calculator - Notepad - Movie Player
    My tutorials: applyTorque - Quaternions - PID controllers
    Some other things I made: FT Chip - RK4 Solar System

  3. #13
    Developer Matte's Avatar
    Join Date
    Jan 2009
    Location
    Norway
    Posts
    3,109

    Default Re: PID controller - what is it and how to?

    Or you could just clamp the out value:
    Code:
    E:applyForce( clamp( Out*E:mass(), vec(-N,-N,-N), vec(N, N, N) ) )
    Where N is the max absolute value.
    "If anybody says he can think about quantum physics without getting giddy, that only shows he has not understood the first thing about them."
    -- Niels Bohr

  4. #14
    Wire Sofaking Fizyk's Avatar
    Join Date
    Jun 2008
    Location
    Łomianki, Poland
    Posts
    740
    Blog Entries
    1

    Default Re: PID controller - what is it and how to?

    This won't work if there is no air resistance But yeah, since there is air resistance on most servers, it will work, though you will have to find the proper N value by experimenting.

    My programs: BIOS - Alcyone - Calculator - Notepad - Movie Player
    My tutorials: applyTorque - Quaternions - PID controllers
    Some other things I made: FT Chip - RK4 Solar System

  5. #15
    Wirererer Blaylock1988's Avatar
    Join Date
    Apr 2009
    Location
    North Carolina
    Posts
    280

    Default Re: PID controller - what is it and how to?

    Can you change the code in the first post to [code] instead of [highlight]? Highlighting seems to be broken and it is REALLY hard to see the code.

    U.S. Air Force

    Terminator 3 HK-Drone Project
    Download V2 HERE

    New Halo Reach Falcon Project coming soon


  6. #16
    Wire Sofaking Fizyk's Avatar
    Join Date
    Jun 2008
    Location
    Łomianki, Poland
    Posts
    740
    Blog Entries
    1

    Default Re: PID controller - what is it and how to?

    Oh right, thanks for the reminder.

    My programs: BIOS - Alcyone - Calculator - Notepad - Movie Player
    My tutorials: applyTorque - Quaternions - PID controllers
    Some other things I made: FT Chip - RK4 Solar System

  7. #17
    Wire Sofaking feha's Avatar
    Join Date
    Sep 2009
    Location
    Here
    Posts
    1,156

    Default Re: PID controller - what is it and how to?

    Sorry for necromancing, but I want to know a formula for getting the GainP GainI and GainD. Dont want to have to use trial and error all the time :P.

  8. #18
    Not a bot itsbth's Avatar
    Join Date
    Feb 2007
    Location
    Norway
    Posts
    1,173

    Default Re: PID controller - what is it and how to?

    Quote Originally Posted by feha View Post
    Sorry for necromancing, but I want to know a formula for getting the GainP GainI and GainD. Dont want to have to use trial and error all the time :P.
    PID controller - Wikipedia, the free encyclopedia

+ Reply to Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. [Cam Controller] ColorMod on Cam Controller
    By emspike in forum Ideas & Suggestions
    Replies: 8
    Last Post: 10-08-2009, 03:08 PM
  2. adv. pod controller bug
    By frog in forum Bug Reports
    Replies: 1
    Last Post: 08-18-2008, 02:49 PM
  3. Turret with Adv. Pod Controller and Cam Controller?
    By Jaded Misanthrope in forum Installation and Malfunctions Support
    Replies: 6
    Last Post: 07-21-2008, 11:47 AM
  4. Pod Controller
    By uoykcuf in forum Bug Reports Archive
    Replies: 7
    Last Post: 12-17-2007, 09:22 AM
  5. How do I use the pod controller?
    By Tom in forum Installation and Malfunctions Support
    Replies: 2
    Last Post: 07-20-2007, 10:29 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
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots