SmartController
SmartController
Section titled “SmartController”Used as a general wrapper for a variety of controllers that may
optionally report values to NetworkTables. It is recommended to
create these using a SmartProfile.
Methods
Section titled “Methods”init()
Section titled “init()”setTolerance()
Section titled “setTolerance()”Sets the error tolerance for the controller.
at_setpoint()
Section titled “at_setpoint()”Checks if the controller is at the setpoint within the tolerance.
getError()
Section titled “getError()”Returns the current error of the controller.
getOutput()
Section titled “getOutput()”Returns the current output of the controller.
getReference()
Section titled “getReference()”Returns the current reference value of the controller.
getMeasurement()
Section titled “getMeasurement()”Returns the current measurement value of the controller.