Go to Post Just remember that you can get just as much inspiration from making a simple system's details work really well as you can from just making a complex system work... - Rob [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 Rating: Thread Rating: 5 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 16-12-2013, 17:57
michaelwm's Avatar
michaelwm michaelwm is offline
Integrated Systems Lead
AKA: Michael Midura
FRC #4976 (Rebel Robotics)
Team Role: Programmer
 
Join Date: Dec 2013
Rookie Year: 2010
Location: Georgetown
Posts: 23
michaelwm is a jewel in the roughmichaelwm is a jewel in the roughmichaelwm is a jewel in the roughmichaelwm is a jewel in the rough
Smartdashboard is Troublesome

When the code for our robot is first compiled, the SmartDashboard works and displays all the information as needed, most importantly our variable "throttle". However, as soon as we activate the robot, the entire SmartDashboard becomes blank, showing no variables and disallowing me from creating widgets.

code:

SmartDashboard.putNumber("throttle", throttle);

Last edited by michaelwm : 16-12-2013 at 18:01.
Reply With Quote
  #2   Spotlight this post!  
Unread 17-12-2013, 08:57
MichelB's Avatar
MichelB MichelB is offline
Jack Of All Trades
FRC #3941 (Absolute Zero Electricity)
Team Role: Electrical
 
Join Date: Nov 2013
Rookie Year: 2012
Location: Havre De Grace, MD
Posts: 51
MichelB is an unknown quantity at this point
Re: Smartdashboard is Troublesome

When we compile and run our code, SmartDashboard won't even open...would you be willing to post your code for others to see?
EDIT: Wow, just noticed you did post part of your code at the bottom. Sorry! Still, would you be willing to post the entire thing? Alos, what version of SmartDashboard are you using and where did you download it from? Any and all info is helpfull. Thanks!!

Last edited by MichelB : 17-12-2013 at 11:52.
Reply With Quote
  #3   Spotlight this post!  
Unread 19-12-2013, 12:34
nickmcski nickmcski is offline
Registered User
AKA: Nicholas McCurry
FRC #1482 (Grandin Ghosts)
Team Role: Alumni
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Canada
Posts: 112
nickmcski has a spectacular aura aboutnickmcski has a spectacular aura aboutnickmcski has a spectacular aura about
Quote:
Originally Posted by MichelB View Post
When we compile and run our code, SmartDashboard won't even open...would you be willing to post your code for others to see?

EDIT: Wow, just noticed you did post part of your code at the bottom. Sorry! Still, would you be willing to post the entire thing? Alos, what version of SmartDashboard are you using and where did you download it from? Any and all info is helpfull. Thanks!!

On the driver station so you have java selected?
Reply With Quote
  #4   Spotlight this post!  
Unread 21-12-2013, 18:18
Team3266Spencer's Avatar
Team3266Spencer Team3266Spencer is offline
Team Captain and Lead Programmer
AKA: Spencer Lanman
FRC #3266 (Robots-R-US)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Richmond, Indiana
Posts: 280
Team3266Spencer is an unknown quantity at this point
Re: Smartdashboard is Troublesome

A new SmartDashboard is being developed for next season I believe. We should see a lot of improvement
__________________
2012: Buckeye Regional, Queen City Regional, Human Player
2013: Queen City Regional, Buckeye Regional, Crossroads Regional
Shooter Operator
2014: Crossroads Regional, Queen City Regional
Catapult Operator
2015: Georgia Southern Classic Regional (Winner), Queen City Regional
Chainsaw Operator
Want to talk? TeamSpeak: team3266.noip.me
Reply With Quote
  #5   Spotlight this post!  
Unread 23-12-2013, 23:44
MichelB's Avatar
MichelB MichelB is offline
Jack Of All Trades
FRC #3941 (Absolute Zero Electricity)
Team Role: Electrical
 
Join Date: Nov 2013
Rookie Year: 2012
Location: Havre De Grace, MD
Posts: 51
MichelB is an unknown quantity at this point
Re: Smartdashboard is Troublesome

Quote:
Originally Posted by nickmcski View Post
On the driver station so you have java selected?
We've been selecting C++ since thats what our robot code was written in, but now that you mention it, selecting the language SmartDashboard is written in (Java) makes much more sense. Thanks!
Reply With Quote
  #6   Spotlight this post!  
Unread 24-12-2013, 10:50
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 990
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Smartdashboard is Troublesome

Quote:
Originally Posted by MichelB View Post
We've been selecting C++ since thats what our robot code was written in, but now that you mention it, selecting the language SmartDashboard is written in (Java) makes much more sense. Thanks!
The SmartDashboard is included with the language update for C++ and Java. If you do not have the Workbench update installed on the computer you are using as a DS the SmartDashboard will not launch. You can either install the Workbench update or follow the instructions for using the standalone SmartDashboard installer: http://wpilib.screenstepslive.com/s/...sion-installer
Reply With Quote
  #7   Spotlight this post!  
Unread 24-12-2013, 14:55
Ginto8's Avatar
Ginto8 Ginto8 is offline
Programming Lead
AKA: Joe Doyle
FRC #2729 (Storm)
Team Role: Programmer
 
Join Date: Oct 2010
Rookie Year: 2010
Location: Marlton, NJ
Posts: 174
Ginto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of light
Re: Smartdashboard is Troublesome

Quote:
Originally Posted by michaelwm View Post
When the code for our robot is first compiled, the SmartDashboard works and displays all the information as needed, most importantly our variable "throttle". However, as soon as we activate the robot, the entire SmartDashboard becomes blank, showing no variables and disallowing me from creating widgets.

code:

SmartDashboard.putNumber("throttle", throttle);
Are you sure you're enabling it in teleop mode? What you're describing sounds like the dashboard going into test mode. Check your teleopPeriodic and autonomousPeriodic, and make sure they don't include this line:
Code:
LiveWindow.run();
__________________
I code stuff.
Reply With Quote
  #8   Spotlight this post!  
Unread 05-01-2014, 13:26
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 592
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Smartdashboard is Troublesome

The driver station buttons just select what directory/program is the dashboard program that the driver station starts. So if you have the java plugins installed on the computer then select "Java" and it will start the dashboard as <userdir>/sunspotfrcsdk/tools/smartdashboard.jar.

Where in your program are you writing the throttle value? Make sure it's somewhere where it's continuously being executed so it will always be sending the current value.

I'm not exactly sure why it's disappearing from the screen unless, as was suggested, you're running in "Test" mode which puts up a different screen on the dashboard. Teleop and Autonomous modes will display on the same screen, so be sure you're updating the value from both of those paths.

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
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 13:03.

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