|
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
|