Public Member Functions | Public Attributes | List of all members
utils.PID Class Reference

Public Member Functions

def __init__ (self, kp, ki, kd, target=0, windup_guard=20.0)
 
def compute (self, current_value)
 
def reset (self)
 

Public Attributes

 derivative
 
 integral
 
 kd
 
 ki
 
 kp
 
 prev_error
 
 target
 
 windup_guard
 

Detailed Description

Definition at line 75 of file utils.py.

Constructor & Destructor Documentation

◆ __init__()

def utils.PID.__init__ (   self,
  kp,
  ki,
  kd,
  target = 0,
  windup_guard = 20.0 
)

Definition at line 76 of file utils.py.

Member Function Documentation

◆ compute()

def utils.PID.compute (   self,
  current_value 
)

Definition at line 93 of file utils.py.

◆ reset()

def utils.PID.reset (   self)

Definition at line 88 of file utils.py.

Member Data Documentation

◆ derivative

utils.PID.derivative

Definition at line 86 of file utils.py.

◆ integral

utils.PID.integral

Definition at line 85 of file utils.py.

◆ kd

utils.PID.kd

Definition at line 79 of file utils.py.

◆ ki

utils.PID.ki

Definition at line 78 of file utils.py.

◆ kp

utils.PID.kp

Definition at line 77 of file utils.py.

◆ prev_error

utils.PID.prev_error

Definition at line 84 of file utils.py.

◆ target

utils.PID.target

Definition at line 80 of file utils.py.

◆ windup_guard

utils.PID.windup_guard

Definition at line 82 of file utils.py.


The documentation for this class was generated from the following file:


line_planner
Author(s):
autogenerated on Sat Jun 10 2023 02:19:03