Go to Post FIRST always talks about grandmothers and making them proud. So FIRST---you made my grandmother proud. - Collin Fultz [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-22-2016, 05:16 PM
Spillertb Spillertb is offline
Registered User
FRC #5752
 
Join Date: Feb 2016
Location: Beverly
Posts: 11
Spillertb is an unknown quantity at this point
SmartDashboard help

I am using command based java on our robot, but no matter what we try we can not get smart dashboard to work. We have a classmate from last year, and we followed the instructions to update everything on it. I have the connection indicator on the dashboard but it is always red. Here is the code I am trying:
Code:
    public void teleopPeriodic() {
        Scheduler.getInstance().run();
        SmartDashboard.putData(driveTrain);
        SmartDashboard.putDouble("test", 12);
    }
and / or
Code:
    public void teleopInit() {
		// This makes sure that the autonomous stops running when
        // teleop starts running. If you want the autonomous to 
        // continue until interrupted by another command, remove
        // this line or comment it out.
        if (autonomousCommand != null) autonomousCommand.cancel();

        SmartDashboard.putData(driveTrain);
        SmartDashboard.putDouble("test", 12);
    }
I have tried every possible iteration of code in command and in robot.java.
We are using the java smart dashboard, our team number is correct, and mDNS is enabled.
Thanks!
  #2   Spotlight this post!  
Unread 02-23-2016, 10:26 AM
Pratik Kunapuli's Avatar
Pratik Kunapuli Pratik Kunapuli is offline
Probably browning-out on Astro-Turf
FRC #1648 (G3 Robotics)(EWCP)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Atlanta, GA
Posts: 143
Pratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to all
Re: SmartDashboard help

If possible, can you describe exactly what the problem is within the dashboard? Is it just that nothing is being displayed?
__________________
Official Driving Record: 101-59-0
2012-2015 Student 341 Miss Daisy
2015-Current Mentor 1648 G3 Robotics
  #3   Spotlight this post!  
Unread 02-23-2016, 11:00 AM
jajabinx124's Avatar
jajabinx124 jajabinx124 is offline
Team 2052 Alumni
AKA: Kshitij Wavre
no team
Team Role: College Student
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Madison, WI
Posts: 534
jajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond repute
Re: SmartDashboard help

Have tried using the putNumber() method from the SmartDashboard class instead of the 2 you are using in your code?
__________________
FRC Volunteer CSA (MRI off-season event, 2017 Lake Superior Regional, 2017 10,000 Lakes Regional) 2016 - Present
FRC 2052 KnightKrawler (Team Captain, Strategist, Scouting, Programming) 2013 - 2016

1 Division Win & Einstein Appearance
3 Division Quarter-Finalists
1 Regional Chairman's Award
5 Regional Wins, 3 Regional Finalists
3 MN State Championship Wins, 1 MN State Championship Finalist
Thanks to all our alliance partners who krawled with us: 41, 70, 225, 525, 1595, 2054, 2062, 2122, 2175, 2227, 2472, 2526, 2883, 2990, 3018, 3244, 3276, 3310, 3313, 3360, 3538, 3692, 4011, 4198, 4536, 4607, 4778, 5172, 5690
  #4   Spotlight this post!  
Unread 02-23-2016, 11:48 AM
Spillertb Spillertb is offline
Registered User
FRC #5752
 
Join Date: Feb 2016
Location: Beverly
Posts: 11
Spillertb is an unknown quantity at this point
Yea I have tried every possible thing in the code, I don't need to create an object for dashboard or initialise it in Java? I think you do in c++ but we use Java. The problem is that nothing will display at all ever, the connection indicator is ALLWAYS red. I am going to try the dashboard on a different computer to see if it is the driver station. I need the dashboard to work as we are trying to set up a USB eebcam. Thanks!
__________________
It should work...
  #5   Spotlight this post!  
Unread 02-23-2016, 12:49 PM
David Lame David Lame is offline
Registered User
FRC #0247
 
Join Date: Feb 2015
Location: Berkley, MI
Posts: 84
David Lame is a jewel in the roughDavid Lame is a jewel in the roughDavid Lame is a jewel in the roughDavid Lame is a jewel in the rough
Re: SmartDashboard help

I find that one of our team's PCs displays data to the SmartDashboard, one does not. We can't figure out the difference between the PCs. Both were updated to 2016 in the same way. Either one runs the driver station just fine, but no data ever appears on one of the smartdashboard displays.
  #6   Spotlight this post!  
Unread 02-23-2016, 01:16 PM
Spillertb Spillertb is offline
Registered User
FRC #5752
 
Join Date: Feb 2016
Location: Beverly
Posts: 11
Spillertb is an unknown quantity at this point
That is the exact same problem that we are having, it worked fine last year, but after updating it won't work anymore.
__________________
It should work...
  #7   Spotlight this post!  
Unread 02-23-2016, 01:23 PM
Pratik Kunapuli's Avatar
Pratik Kunapuli Pratik Kunapuli is offline
Probably browning-out on Astro-Turf
FRC #1648 (G3 Robotics)(EWCP)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Atlanta, GA
Posts: 143
Pratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to all
Re: SmartDashboard help

I don't know if you have to explicitly instantiate a SmartDashboard object, but our code always had, so if you want to try it and see if it fixes the problem, go for it.
__________________
Official Driving Record: 101-59-0
2012-2015 Student 341 Miss Daisy
2015-Current Mentor 1648 G3 Robotics
  #8   Spotlight this post!  
Unread 02-23-2016, 01:47 PM
Spillertb Spillertb is offline
Registered User
FRC #5752
 
Join Date: Feb 2016
Location: Beverly
Posts: 11
Spillertb is an unknown quantity at this point
I have tried something like Smart dashboard dash = new Smartdashboard (), but it never worked. Is there anything like Smartdashboard. Start() or initialize? I tried looking it up but I couldn't find anything.
__________________
It should work...
  #9   Spotlight this post!  
Unread 02-23-2016, 01:54 PM
Pratik Kunapuli's Avatar
Pratik Kunapuli Pratik Kunapuli is offline
Probably browning-out on Astro-Turf
FRC #1648 (G3 Robotics)(EWCP)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Atlanta, GA
Posts: 143
Pratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to all
Re: SmartDashboard help

Quote:
Originally Posted by Spillertb View Post
I have tried something like Smart dashboard dash = new Smartdashboard (), but it never worked. Is there anything like Smartdashboard. Start() or initialize? I tried looking it up but I couldn't find anything.
No, according to the javadocs, there is no start method. Are you sure that the correct dashboard is open?
__________________
Official Driving Record: 101-59-0
2012-2015 Student 341 Miss Daisy
2015-Current Mentor 1648 G3 Robotics
  #10   Spotlight this post!  
Unread 02-23-2016, 02:02 PM
imdunne8 imdunne8 is offline
Registered User
FRC #1736
 
Join Date: Jan 2008
Location: Peoria, IL
Posts: 15
imdunne8 has a spectacular aura aboutimdunne8 has a spectacular aura aboutimdunne8 has a spectacular aura about
Re: SmartDashboard help

On a computer connected to your robot which should be sending SmartDashboard data, open Eclipse and select WPILib>Run Outline Viewer. Enter your team's mDNS address (roborio-####-frc.local) or if that doesn't work try the default IP address (10.##.##.2) and select Start Client. You should see a folder tree containing all of the values SmartDashboard is writing from the robot. If not, you might want to try a different laptop or check your network settings on the robot or laptop. A simple SmartDashboard.putNumber("test", 2); anywhere in code that runs should be all that you need.
  #11   Spotlight this post!  
Unread 02-23-2016, 02:53 PM
David Lame David Lame is offline
Registered User
FRC #0247
 
Join Date: Feb 2015
Location: Berkley, MI
Posts: 84
David Lame is a jewel in the roughDavid Lame is a jewel in the roughDavid Lame is a jewel in the roughDavid Lame is a jewel in the rough
Re: SmartDashboard help

I'll certainly give that a shot. Thanks.
  #12   Spotlight this post!  
Unread 02-23-2016, 04:06 PM
Spillertb Spillertb is offline
Registered User
FRC #5752
 
Join Date: Feb 2016
Location: Beverly
Posts: 11
Spillertb is an unknown quantity at this point
Re: SmartDashboard help

I got it to work perfectly on a different computer.
  #13   Spotlight this post!  
Unread 02-23-2016, 07:31 PM
David Lame David Lame is offline
Registered User
FRC #0247
 
Join Date: Feb 2015
Location: Berkley, MI
Posts: 84
David Lame is a jewel in the roughDavid Lame is a jewel in the roughDavid Lame is a jewel in the roughDavid Lame is a jewel in the rough
Re: SmartDashboard help

Outline viewer also does not respond. I turn on the client, and it shows "root" as the only entry.

The robot code isn't the problem. It works fine on a different PC. There's obviously something my computer doesn't like.

The firewall is off. That was causing issues once upon a time. Tis a mystery.

ETA: It occurs to me that the biggest difference between the PC that works and the one that doesn't is that the one that doesn't is Windows 10. I wonder if there is some extra setup step required for Windows 10.

Last edited by David Lame : 02-23-2016 at 07:49 PM.
  #14   Spotlight this post!  
Unread 02-24-2016, 12:54 AM
Spillertb Spillertb is offline
Registered User
FRC #5752
 
Join Date: Feb 2016
Location: Beverly
Posts: 11
Spillertb is an unknown quantity at this point
The only one that works for me is on Windows 10, there was no extra setup either, although wpi does have steps for if you get an error on Windows 10.
__________________
It should work...
  #15   Spotlight this post!  
Unread 02-24-2016, 03:46 PM
David Lame David Lame is offline
Registered User
FRC #0247
 
Join Date: Feb 2015
Location: Berkley, MI
Posts: 84
David Lame is a jewel in the roughDavid Lame is a jewel in the roughDavid Lame is a jewel in the roughDavid Lame is a jewel in the rough
Re: SmartDashboard help

Quote:
Originally Posted by Spillertb View Post
The only one that works for me is on Windows 10, there was no extra setup either, although wpi does have steps for if you get an error on Windows 10.
I don't get an error. I just don't get my smartdashboard.

I did manage to get the Outline Viewer running. That will be adequate, and the computer where it doesn't work is not destined to be either the driver station or the backup driver station, so I think we're ok, even if confused. We have some bigger fish to fry with the software before it takes the field.
Closed Thread


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 04:54 PM.

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