Skip to content

Is PID supported? #139

Closed
Closed

Description

@kingaza

I am new to control system, and I just want to use PID controller in my project.
However, I cannot find it.
Is there any example PID here, or can I implement a PID controller by this package?

Activity

  1. murrayrm commented on Mar 25, 2017

    @murrayrm
    Member

    You can certainly use the python-control package to implement a PID controller. The following code snippet will create a PID controller:

    from control import *
    kp = 1
    ki = 1
    kd = 1
    Cpid = kp + ki*tf([1], [1, 0]) + kd*tf([1, 0], [1])
    
  2. kingaza commented on Mar 26, 2017

    @kingaza
    Author

    Great! Thanks very much.
    I would like to have a try.
    And furthermore, is there a tune method for this PID controller?

  3. murrayrm commented on Mar 26, 2017

    @murrayrm
    Member

    You can use any of the standard methods to design the PID controller. A description of some standard techniques is available in Chapter 11 of the book "Feedback Systems", which you can find at http://fbsbook.org.

  4. kingaza commented on Mar 26, 2017

    @kingaza
    Author

    thx again.
    👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions