|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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 { } 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? |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
||||
|
||||
|
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! |
|
#5
|
||||||
|
||||||
|
Re: SmartDashboard not connecting?
Quote:
Quote:
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? |
|
#6
|
|||
|
|||
|
[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. |
|
#7
|
||||
|
||||
|
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?
![]() |
|
#8
|
|||
|
|||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|