|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Changing parameters on the fly?
Well - we gave a shot at the interactive input on SmartDashboard with no luck. It all works on a separate computer as we've all noted, but otherwise...sigh. We tried to also put a button on the SmartDashboard so we could interactively click on the button ... no go...
So, SmartDashboard::GetInstance()->GetDouble() doesn't work... so we use GetString() and then sscanf() to turn it into a double. Also, using Preferences::GetInstance()->PutString() doesn't work, but PutDouble() and PutInt() work just fine. bob |
|
#2
|
||||
|
||||
|
Re: Changing parameters on the fly?
You should check out the SendablePIDController, which is part of the SmartDashboard. I'm not sure if it works in C++ because of the double issue... but it works for me in python
![]() And, before there was SmartDashboard, there was WebDMA, which does the same thing as SmartDashboard except with a webserver on your robot. ![]() |
|
#3
|
|||
|
|||
|
Re: Changing parameters on the fly?
Quote:
http://firstforge.wpi.edu/sf/tracker....wpilib_c_bugs Thanks, -Joe |
|
#4
|
||||
|
||||
|
Re: Changing parameters on the fly?
Joe,
Thanks for the link to the trackers -- I filed 3 for: - SmartDashboard::GetDouble() doesn't work for interactive data. - Preferences: utString() doesn't work at all- SmartDashboard: utInt() graphs/logs an incorrect (huge) value once in a blue moon causing graphs to become unreadable until the errant data-point scrolls off the graph.Bob Wolff Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|