Since this thread is about SendablePIDController and the original poster seems to have figured it out, can you help us please?
We are using the IterativeRobot instead of the CommandRobot and we are trying to get the SendablePIDController to work on our Smartdashboard so that we can tune our speed encoder on our shooter.
We started yesterday by putting this in our class init:
Code:
SendablePIDController *speedControl;
Then in our constructor we put:
Code:
speedControl = new SendablePIDController(0.0,0.0004,0.0, speedEncoder, shooterMotor1);
This worked fine as a PID controlled system, our shooter is obviously under control, we just want to tune the system real time.
How do we get the SendablePID menu to show up on the dashboard? I know it has something to do with PutData() but nothing I try compiles. I have tried this so far in the constructor:
Code:
SmartDashboard::GetInstance()->PutData("SendablePIDController",SendablePIDController::GetInstance());
I have never gotten the hang of all the "->" and "::" with C++, I am a visual basic pro hacking C++ so make no assumptions of what I know.
Thanks