Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrAlreadyRunning = Error("pid is already running") ErrThermometerIsNil = Error("thermometer is nil") ErrActuatorIsNil = Error("actuator is nil") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(thermometer device.Thermometer, chiller, heater device.Actuator, chillingDifferential, heatingDifferential float64, logger *logrus.Logger, options ...OptionsFunc, ) *Controller
type OptionsFunc ¶
type OptionsFunc func(*Controller)
func ChillerCooldown ¶
func ChillerCooldown(chillerCooldown time.Duration) OptionsFunc
func CyclePeriod ¶
func CyclePeriod(cyclePeriod time.Duration) OptionsFunc
Click to show internal directories.
Click to hide internal directories.