pid

package
v0.0.0-...-e6cdf45 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2022 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 struct {
	P, I, D vec.Vector

	Input, Output, Target vec.Vector
	// contains filtered or unexported fields
}

func New

func New(p, i, d, min, max vec.Vector) PID

func (*PID) Reset

func (p *PID) Reset() *PID

func (*PID) Update

func (p *PID) Update(samplePeriod float32) *PID

type PID1D

type PID1D struct {
	P, I, D float32

	Input, Output, Target float32
	// contains filtered or unexported fields
}

func New1D

func New1D(p, i, d, min, max float32) PID1D

func (*PID1D) Reset

func (p *PID1D) Reset() *PID1D

func (*PID1D) Update

func (p *PID1D) Update(samplePeriod float32) *PID1D

Jump to

Keyboard shortcuts

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