View Full Version : on the dashboard, and lack of imports/declarations in tutorials
I'm wondering what I declare to use the dashboard?
Read this: http://wpilib.screenstepslive.com/s/3120/m/7932/l/81106-displaying-expressions-from-within-the-robot-program
Didn't show what imports I use.
Also if I do dashboard.putNumber("string", 1); and then dashboard.putNumber("string", 2); will the 1 be replaced with a 2 or will there be two things onscreen?
And why do these tutorials not include all the imports/variable declarations for things, it makes me ask these questions that are probably asked every year about what they are.
I'm wondering what I declare to use the dashboard?
Read this: http://wpilib.screenstepslive.com/s/3120/m/7932/l/81106-displaying-expressions-from-within-the-robot-program
Didn't show what imports I use.
Also if I do dashboard.putNumber("string", 1); and then dashboard.putNumber("string", 2); will the 1 be replaced with a 2 or will there be two things onscreen?
And why do these tutorials not include all the imports/variable declarations for things, it makes me ask these questions that are probably asked every year about what they are.
you don't need to initialize it on the robot, only on desktop. if you write the same key twice, the previous key gets overwritten and you only have 2 left.
You can write Boolean, Numeric, or String values to the SmartDashboard by simply calling the correct method for the type and including the name and the value of the data, no additional code is required. Any time in your program that you write another value with the same name, it appears in the same UI element on the screen on the driver station or development computer.
...
It still isn't working, variable "SmartDashboard" not found. Tried everything I could thing of similar to that.
notmattlythgoe
11-02-2014, 16:57
It still isn't working, variable "SmartDashboard" not found. Tried everything I could thing of similar to that.
It sounds like you don't have an import for the SmartDashboard in your code.
It still isn't working, variable "SmartDashboard" not found. Tried everything I could thing of similar to that.
ctrl+shift+i
Thanks, that fixed it. Now I have it working. I will remember that trick for the future.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.