Go to Post Man, FIRST is amazing :D - galewind [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 17:34.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi