manager

package
v0.0.0-...-6389ad2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	TempUpdate    chan float64
	Tick          chan time.Time
	BrewSetpoint  float64
	SteamSetpoint float64
	Mode          Mode
	Controller    ProcessController

	BoilerPin, ValvePin, PumpPin gpio.PinIO
	// contains filtered or unexported fields
}

func (*Manager) AutoOffDuration

func (m *Manager) AutoOffDuration() time.Duration

func (*Manager) AutoOffEnabled

func (m *Manager) AutoOffEnabled() bool

func (*Manager) BrewTime

func (m *Manager) BrewTime() time.Duration

func (*Manager) Close

func (m *Manager) Close()

func (*Manager) CurrentSetpoint

func (m *Manager) CurrentSetpoint() float64

func (*Manager) DisableAutoOff

func (m *Manager) DisableAutoOff()

func (*Manager) EnableAutoOff

func (m *Manager) EnableAutoOff()

func (*Manager) Run

func (m *Manager) Run()

func (*Manager) SetAutoOffDuration

func (m *Manager) SetAutoOffDuration(d time.Duration)

type Mode

type Mode byte
const (
	ModeOff     Mode = 0
	ModeHeat    Mode = 1
	ModeBrew    Mode = 2
	ModeWater   Mode = 3
	ModeSteam   Mode = 4
	ModeInvalid Mode = 99
)

func ModeFromString

func ModeFromString(s string) Mode

func (Mode) String

func (m Mode) String() string

type ProcessController

type ProcessController interface {
	Compute(s, i float64) float64
}

Jump to

Keyboard shortcuts

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