pid

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2021 License: MIT Imports: 8 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 float32
	I float32
	D float32
	// contains filtered or unexported fields
}

PID is a temperature controller that implements PID control. It satisfies the control.Strategy interface. https://en.wikipedia.org/wiki/Bang%E2%80%93bang_control

func NewPid

func NewPid(heatingElem *heating_element.HeatingElement, sampler *temperature.Monitor) (*PID, error)

func (*PID) GetTargetTemperature

func (c *PID) GetTargetTemperature() control.TargetTemperature

func (*PID) Run

func (c *PID) Run() error

func (*PID) SetTargetTemperature

func (c *PID) SetTargetTemperature(temperature float32) control.TargetTemperature

func (*PID) Shutdown

func (c *PID) Shutdown() error

Jump to

Keyboard shortcuts

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