Go to Post its not that I cant spell, I'm just being international. . . . I like it - Stuart [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 28-01-2013, 15:19
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
 


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 10: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