Package trclib.robotcore
Interface TrcPidController.PidInput
- Enclosing class:
- TrcPidController
public static interface TrcPidController.PidInput
PID controller needs input from a feedback device for calculating the output power. Whoever is providing this
input must implement this interface.
-
Method Summary
Modifier and TypeMethodDescriptiondouble
get()
This method is called by the PID controller to get input data from the feedback device.
-
Method Details
-
get
double get()This method is called by the PID controller to get input data from the feedback device. The feedback device can be motor encoders, gyro, ultrasonic sensor, light sensor etc.- Returns:
- input value of the feedback device.
-