Controller

interface Controller

Interface all controllers must inherit from.

Inheritors

Properties

Link copied to clipboard

The tolerance for being "at the target"

Link copied to clipboard
abstract var target: Double

The target for the reference to converge to.

Functions

Link copied to clipboard
open fun atTarget(pv: Double): Boolean

Whether the controller is within a tolerable distance of the target

Link copied to clipboard
abstract fun calculate(pv: Double): Double

Given a reference, calculates how to best match the target.

Link copied to clipboard
abstract fun reset()

Resets the control loop