Go to Post One of the many unwritten laws of engineering failure is that the problem will occur in the most inopportune time. - Dave Scheck [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-05-2014, 04:24 PM
sthreet's Avatar
sthreet sthreet is offline
Registered User
AKA: scott threet
FRC #4692
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Toutle Lake
Posts: 84
sthreet is an unknown quantity at this point
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/...-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.
__________________
Spoiler for gif:
Reply With Quote
  #2   Spotlight this post!  
Unread 02-05-2014, 05:46 PM
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
  #3   Spotlight this post!  
Unread 02-11-2014, 04:49 PM
sthreet's Avatar
sthreet sthreet is offline
Registered User
AKA: scott threet
FRC #4692
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Toutle Lake
Posts: 84
sthreet is an unknown quantity at this point
Re: on the dashboard, and lack of imports/declarations in tutorials

It still isn't working, variable "SmartDashboard" not found. Tried everything I could thing of similar to that.
__________________
Spoiler for gif:
Reply With Quote
  #4   Spotlight this post!  
Unread 02-11-2014, 04:57 PM
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,712
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: on the dashboard, and lack of imports/declarations in tutorials

Quote:
Originally Posted by sthreet View Post
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.
Reply With Quote
  #5   Spotlight this post!  
Unread 02-11-2014, 05:11 PM
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
It still isn't working, variable "SmartDashboard" not found. Tried everything I could thing of similar to that.
ctrl+shift+i
Reply With Quote
  #6   Spotlight this post!  
Unread 02-12-2014, 04:10 PM
sthreet's Avatar
sthreet sthreet is offline
Registered User
AKA: scott threet
FRC #4692
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Toutle Lake
Posts: 84
sthreet is an unknown quantity at this point
Re: on the dashboard, and lack of imports/declarations in tutorials

Thanks, that fixed it. Now I have it working. I will remember that trick for the future.
__________________
Spoiler for gif:
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:42 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi