pidcontroller

package
v1.19.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PID

type PID interface {
	// RangeCtx generates a list of numbers between min and max, using the PID to
	// control the step. The context is used to stop the generation when the
	// context is cancelled.
	//
	// It will return the list of numbers generated so far if the context is cancelled
	// during the execution of this function.
	RangeCtx(ctx context.Context, min, max float64) []float64
	Range(min, max float64) []float64
}

func New

func New(rateProportional, rateIntegral, rateDerivative float64) PID

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL