View Single Post
  #2   Spotlight this post!  
Unread 05-02-2014, 17:46
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 542
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: on the dashboard, and lack of imports/declarations in tutorials

Quote:
Originally Posted by sthreet View Post
I'm wondering what I declare to use the dashboard?
Read this: http://wpilib.screenstepslive.com/s/...-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.

Quote:
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.
...
Reply With Quote