mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
C++ PIDCommand: Add GetMeasurement() and UseOutput() (#1892)
These are in the Java version but were missed in C++.
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user