Go to Post BTW don't trust game hint threads started by Greg Needel. - rtfgnow [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 04-04-2015, 02:17
rellimcire rellimcire is offline
Robolopes Software Advisor
AKA: Eric Miller
FRC #2339 (Robolopes)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Lancaster, CA
Posts: 11
rellimcire is an unknown quantity at this point
Implementing Own Sendable

Has anyone ever implemented their own Sendable object in Java and used with the Smartdashboard?

I have tried and failed miserably. The behavior I see when I try to use my implementation is that dashboard locks up and fails to receive any data. Restarting the dashboard and removing use of my class seems to fix the problem.

Attached is my SendablePosition class. A trival sample usage would the following in robotInit.
Code:
Smartdashboard.putData("test posit ", new SendablePosition(0,0));
A more useful example would be the following in teleopPeriodic.
Code:
Smartdashboard.putData("joystick posit ", new SendablePosition(driveStick.getX(), driveStick.getY()));
(where "driveStick" is the joystick controlling our drive)

Has anyone else seen this behavior? Has anyone else tried anything like this?
Attached Files
File Type: java SendablePosition.java (1.3 KB, 11 views)
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:49.

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