|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Updating and reading values from Smartdashboard.
Hi all,
I am using smartdashboard for image analysis - there is no connection with a robot whatsoever. The method processImage contains what I need for the calculation: Code:
@Override
public WPIImage processImage(WPIColorImage rawImage) {
Code:
Robot.getTable().putString("MSG", "message 1");
2- I have also tried to to read values that I have set with Preferences/Keys/Values by using: Code:
int threshold = Robot.getPreferences().getInt("Threshold");
3- I thought that SmartDashboard keeps calling the method processImage. Should not I see the displayed values updated depending on the image (like number of polygons found, distance to target...etc.) ? Only the image and whatever I draw on the image changes. Anybody knows what am I doing wrong (on top of volunteering )? Thanks. |
|
#2
|
|||
|
|||
|
Re: Updating and reading values from Smartdashboard.
This is actually a bit of an obscure problem.
The SmartDashboard does not update the values that it displays when the change in the data comes from the computer. Even stranger, the robot can read the newest values, it's just that there is no change in the text box. |
|
#3
|
|||
|
|||
|
Re: Updating and reading values from Smartdashboard.
Thanks for the reply. Do you mean I should forget it ?
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|