Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Smartdashboard is Troublesome (http://www.chiefdelphi.com/forums/showthread.php?t=123258)

michaelwm 16-12-2013 17:57

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);

MichelB 17-12-2013 08:57

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!!

nickmcski 19-12-2013 12:34

Quote:

Originally Posted by MichelB (Post 1313628)
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?

Team3266Spencer 21-12-2013 18:18

Re: Smartdashboard is Troublesome
 
A new SmartDashboard is being developed for next season I believe. We should see a lot of improvement :)

MichelB 23-12-2013 23:44

Re: Smartdashboard is Troublesome
 
Quote:

Originally Posted by nickmcski (Post 1314616)
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!

RufflesRidge 24-12-2013 10:50

Re: Smartdashboard is Troublesome
 
Quote:

Originally Posted by MichelB (Post 1316578)
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

Ginto8 24-12-2013 14:55

Re: Smartdashboard is Troublesome
 
Quote:

Originally Posted by michaelwm (Post 1313340)
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();

BradAMiller 05-01-2014 13:26

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


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

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