Go to Post HEY! a robot that occupies 4 dimensional space is against the rules! - KenWittlief [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 15-01-2015, 18:07
cad321 cad321 is offline
Jack of all trades, Master of none
AKA: Brian Wagg
FRC #2386 (Trojans)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Burlington, Ontario
Posts: 350
cad321 is just really nicecad321 is just really nicecad321 is just really nicecad321 is just really nice
How to print values on smartdashboard

Hello,

My team is attempting to program a potentiometer and get a value from it and have it displayed on the smartDashboard in the 2015 driver station. Starting with a potentiometer would be great, but if some help could be given in printing values for anything that would be even better.
Reply With Quote
  #2   Spotlight this post!  
Unread 15-01-2015, 18:48
gadet gadet is offline
Registered User
AKA: Danny Qiu
FRC #0694 (StuyPulse)
Team Role: Programmer
 
Join Date: Dec 2014
Rookie Year: 2011
Location: New York, USA
Posts: 3
gadet is an unknown quantity at this point
Re: How to print values on smartdashboard

I assume that you are putting a number from the potentiometer onto the dashboard. The code below is an example for when the potentiometer is connected to port 0

Code:
AnalogPotentiometer pot = new AnalogPotentiometer(0, 360, 30);
SmartDashboard.putNumber("Potentiometer Value", pot.get());
For more reference:
Reply With Quote
  #3   Spotlight this post!  
Unread 17-01-2015, 10:22
cad321 cad321 is offline
Jack of all trades, Master of none
AKA: Brian Wagg
FRC #2386 (Trojans)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Burlington, Ontario
Posts: 350
cad321 is just really nicecad321 is just really nicecad321 is just really nicecad321 is just really nice
Re: How to print values on smartdashboard

So we have tried that but we still aren't printing to the smart dashboard. This code worked last year while using netbeans. We've also turned off IPV6.
Reply With Quote
  #4   Spotlight this post!  
Unread 17-01-2015, 10:36
cad321 cad321 is offline
Jack of all trades, Master of none
AKA: Brian Wagg
FRC #2386 (Trojans)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Burlington, Ontario
Posts: 350
cad321 is just really nicecad321 is just really nicecad321 is just really nicecad321 is just really nice
Re: How to print values on smartdashboard

Never mind. We found that our IP was set to 255.0.0.0 when it needed to be 255.255.255.0. Thank you for the help.
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 00:42.

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