Quote:
Originally Posted by Jefferson
Brad,
The PID controller requires a PID source for inputs. Is there a way to use the output of a SmartDashboard widget as the input to the PIDController?
|
Sure. Create something like this:
Code:
class MyCustomPidSource : public PIDSource
{
double PIDGet()
{
return SmartDashboard::GetNumber("whatever you need here");
}
};