View Single Post
  #6   Spotlight this post!  
Unread 20-03-2013, 16:14
Jefferson Jefferson is offline
Registered User
AKA: Jeff Clements
FRC #0016 (Bomb Squad)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Mountain Home, AR
Posts: 257
Jefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant future
Re: Crio C++ Preferences -> How to See/Edit these values in the Smart Dashboard

I would suggest using the Prefs.PutNumber function in the RobotInit to get the keys in the table.

Then in TeleopPeriodic use:
PIDNAME->SetPID(Prefs->GetNumber("TiltP". 1.0), Prefs->GetNumber("TiltI", 0.0), Prefs->GetNumber("TiltD". 0.0));
Replacing PIDNAME with your PID.

Also, why don't you use LiveWindow to tune the PID and then hard code those parameters once they are set?

Last edited by Jefferson : 20-03-2013 at 16:15. Reason: Add LW question
Reply With Quote