C++ PIDCommand: Add GetMeasurement() and UseOutput() (#1892)

These are in the Java version but were missed in C++.
This commit is contained in:
Oblarg
2019-09-16 13:53:03 -04:00
committed by Peter Johnson
parent 2dfbb855d7
commit 85d42c1993
2 changed files with 22 additions and 2 deletions

View File

@@ -92,6 +92,22 @@ class PIDCommand : public CommandHelper<CommandBase, PIDCommand> {
*/
void SetSetpointRelative(double relativeSetpoint);
/**
* Gets the measurement of the process variable. Wraps the passed-in function
* for readability.
*
* @return The measurement of the process variable
*/
virtual double GetMeasurement();
/**
* Gets the measurement of the process variable. Wraps the passed-in function
* for readability.
*
* @return The measurement of the process variable
*/
virtual void UseOutput(double output);
/**
* Returns the PIDController used by the command.
*