Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PID ¶
type PID struct { // parameters Kp float64 // Proportional gain Ki float64 // Integral gain Kd float64 // Derivative gain MinOutput float64 // Minimum output value MaxOutput float64 // Maximum output value Deadband float64 // Deadband to ignore small errors Saturated bool // Indicates if the output is saturated AntiWindup bool // Enable/disable anti-windup protection // contains filtered or unexported fields }
PID represents a Proportional-Integral-Derivative controller.
func (*PID) Reset ¶
func (pid *PID) Reset()
Reset resets the PID controller's internal state. This includes resetting the previous error, integral sum, and last update time.
Click to show internal directories.
Click to hide internal directories.