View Single Post
  #4   Spotlight this post!  
Unread 09-02-2012, 08:53
sircedric4's Avatar
sircedric4 sircedric4 is offline
Registered User
AKA: Darren
no team (The SS Prometheus)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Lousiana
Posts: 245
sircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond repute
Re: Sending SmartDashboard Data to cRIO without pressing [ENTER] key

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
Reply With Quote