Go to Post A year where the students learn a lot and win nothing is more rewarding than a year where the team does well and doesn't learn much. - Molten [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 01-28-2013, 03:19 PM
robodoggy robodoggy is offline
Java Programmer
AKA: Kevin J.
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Apr 2012
Rookie Year: 2012
Location: Plymouth
Posts: 4
robodoggy is an unknown quantity at this point
SmartDashboard not connecting?

Hi all, maybe you can shed some light on my problem. I seem to not be able to send data to the SmartDashboard.

I'm writing this year's code in Java, here is the code I am attempting to run:


package edu.wpi.first.wpilibj.templates;

import edu.wpi.first.wpilibj.SimpleRobot;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboar d;

public class RobotTemplate extends SimpleRobot {

public void autonomous() {
System.out.println("test");
SmartDashboard.putDouble("joyAngle", 7.0);
}

public void operatorControl() { }
}


I deploy this code and run "C:\Program Files\FRC Dashboard\Launcher.bat". If I add a Connection Indicator it stays red regardless of all my attempts to connect it.

If I write the code using the SmartDashboard vi's in LabView (by changing the sample Dashboard), the labView will show the battery level, so it has some type of connection, but using the Get SmartDashboard Number function, I can't access the Network Table.
Although if I call Set SmartDashboard Number and Get SmartDashboard Number both on the LabView Dashboard, I can access the previously set value. Same if I do it in the Java code on the robot.
It seems to me that the two SmartDashboards can't connect, which makes sense with the network indicator indicating the way it does.

Do you guys have any suggestions?
Reply With Quote
  #2   Spotlight this post!  
Unread 01-28-2013, 07:25 PM
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 587
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 not connecting?

Have you tried the things on this page:

http://wpilib.screenstepslive.com/s/...ard-is-working

Make sure that the team number is set in the SmartDashboard. You can verify that the robot program is working using the TableViewer application as described on that page.

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #3   Spotlight this post!  
Unread 01-28-2013, 08:19 PM
robodoggy robodoggy is offline
Java Programmer
AKA: Kevin J.
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Apr 2012
Rookie Year: 2012
Location: Plymouth
Posts: 4
robodoggy is an unknown quantity at this point
Re: SmartDashboard not connecting?

I'll try that exact code when I get in tomorrow.

I know that I have the IP address configured correctly on the Driver Station, and I entered "23" when asked for my team number for the SmartDashboard. I have no problems connecting to the robot in any other regard.

Curiously, I do not have a `~/sunspotfrcsdk/tools/` folder, although I do have other folders in `~/sunspotfrcsdk`. Do you know what installation creates that folder, as I might be missing that. I have installed Java, NetBeans, the 6 NetBeans Plugins (from the xml file hosted by WPI), and the most recent SmartDashboard Installer from this page
Reply With Quote
  #4   Spotlight this post!  
Unread 01-29-2013, 10:23 PM
engunneer's Avatar
engunneer engunneer is offline
Alumni turned Mentor
AKA: Branden Gunn
FRC #4761
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1996
Location: Reading, MA
Posts: 721
engunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond repute
Re: SmartDashboard not connecting?

Can I get any other opinions on this? I'm a remote programming mentor this year, and can help them with programming concepts, but rely on the students to get the tools installed. What is supposed to be in this tools folder? Can someone doing java post a screenshot?

Thanks!
__________________
Student FRC23 (1996-1999), Mentor FRC246 (2000), Mentor FRC1318 (2007-2009), Mentor FRC93 (2011), Mentor FRC2151 (2012), Mentor FRC23 (2013), Mentor FRC4761 (2014-2017)
1998 - National Chairman's Award and Woodie Flowers Award (FRC23, Mike Bastoni ) | 2007 - PNW SF (488, 1595) | 2008 - Oregon RCA - Seattle #2 Seed, SF (488, 1696) | 2009 - Oregon #1 Seed, Winners (1983, 2635) - Seattle SF (945, 2865) - Galileo #2 Seed, SF (973, 25) | 2012 Midwest F (111, 71) | 2014 RIDE Winners (78, 125), Inspector - NEU #24, QF (3479, 3958) - NECMP #35 | 2015 Reading #11, SF (1058, 190), Inspector - RIDE #17, QF(4055, 5494), Inspector - NECMP #57 | 2016 Reading #4, SF (133, 4474), DCA, Inspector - Ride #22, SF (1735, 2067), Creativity, Inspector - NECMP #48, RCA - Archimedes
Reply With Quote
  #5   Spotlight this post!  
Unread 01-30-2013, 02:06 PM
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,547
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: SmartDashboard not connecting?

Quote:
Originally Posted by robodoggy View Post
Hi all, maybe you can shed some light on my problem. I seem to not be able to send data to the SmartDashboard.

I'm writing this year's code in Java, here is the code I am attempting to run:


public void autonomous() {
System.out.println("test");
SmartDashboard.putDouble("joyAngle", 7.0);
}

public void operatorControl() { }
}
Have you put the robot in autonomous and enabled it, so that the the data gets put to the SmartDashboard?

Quote:
Originally Posted by robodoggy View Post
I'll try that exact code when I get in tomorrow.

I know that I have the IP address configured correctly on the Driver Station, and I entered "23" when asked for my team number for the SmartDashboard. I have no problems connecting to the robot in any other regard.

Curiously, I do not have a `~/sunspotfrcsdk/tools/` folder, although I do have other folders in `~/sunspotfrcsdk`. Do you know what installation creates that folder, as I might be missing that. I have installed Java, NetBeans, the 6 NetBeans Plugins (from the xml file hosted by WPI), and the most recent SmartDashboard Installer from this page
The 2012 plugins did not have a tools folder (I'm pretty sure). The 2013 plugins do. Are you sure you're using the 2013 plugins? The current version is 2013.0.417. The update location changed. See http://wpilib.screenstepslive.com/s/...elopment-tools

If you use the 2013 Smart Dashboard with a robot with 2012 java, it will not connect. Alternately, if you downloaded Smart Dashboard 1.02 from that page, and use it with a robot with 2013 java, it won't connect.

What was the result of testing Brad's suggestions?
Reply With Quote
  #6   Spotlight this post!  
Unread 01-30-2013, 03:47 PM
robodoggy robodoggy is offline
Java Programmer
AKA: Kevin J.
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Apr 2012
Rookie Year: 2012
Location: Plymouth
Posts: 4
robodoggy is an unknown quantity at this point
[SOLVED] SmartDashboard not connecting?

Thanks to your help I now have all the tools (which were installed when I fixed the problem, and I suspect my code will work now)

It turns out that the NetBeans plugin xml file linked to by the "Getting Started" PDF I'm using is for 2012.

If anyone reading this (now or in the future) has any sway with the Java NetBeans Plugins, I suggest putting the build season year in the URL for the plugins.
Reply With Quote
  #7   Spotlight this post!  
Unread 01-30-2013, 06:50 PM
Justin m's Avatar
Justin m Justin m is offline
Registered User
FRC #2028 (Phantom Mentalists)
Team Role: Programmer
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Hampton, va
Posts: 14
Justin m is an unknown quantity at this point
Unhappy Re: SmartDashboard not connecting?

I have been experiencing the same problem, but while we have yet to run the test program, I have followed all of these steps. Any suggestions?
Reply With Quote
  #8   Spotlight this post!  
Unread 02-02-2013, 03:31 PM
robodoggy robodoggy is offline
Java Programmer
AKA: Kevin J.
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Apr 2012
Rookie Year: 2012
Location: Plymouth
Posts: 4
robodoggy is an unknown quantity at this point
Re: SmartDashboard not connecting?

Double check that your NetBeans Plugin URL is http://first.wpi.edu/FRC/java/netbea...se/updates.xml (note how it ends in `update/Release/updates.xml`, Last year's (2012) plugins ended in `update/updates.xml`)
That was the problem for me.
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:47 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