Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   How to print values on smartdashboard (http://www.chiefdelphi.com/forums/showthread.php?t=132958)

cad321 15-01-2015 18:07

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.

gadet 15-01-2015 18:48

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:

cad321 17-01-2015 10:22

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.

cad321 17-01-2015 10:36

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.


All times are GMT -5. The time now is 22:28.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi