|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
I am new to setting up a custom dashboard - right now, when I use putNumber(), where is the value I set going? I am able to retrieve it using getNumber(), but I can't get the value to display on the dashboard.
|
|
#2
|
||||
|
||||
|
Re: SmartDashboard Problem
Hi there! Please make sure you followed all of the instructions here:
https://wpilib.screenstepslive.com/s...smartdashboard You may also want to try to add a Connection Indicator (View -> Add... -> Connection Indicator). |
|
#3
|
||||
|
||||
|
Re: SmartDashboard Problem
When you do this in robot code
Code:
SmartDashboard.putNumber("something", 1);
So on a custom dashboard you might do (in Java) Code:
NetworkTable sd = NetworkTable.getTable("SmartDashboard");
sd.getNumber("something"); // 1
|
|
#4
|
|||
|
|||
|
Re: SmartDashboard Problem
Thanks! So do I have to be connected to the robot to be able to see the dashboard? Am I able to see it disconnected, just with no values in the spaces where values are supposed to be?
|
|
#5
|
||||
|
||||
|
Re: SmartDashboard Problem
Quote:
Code:
NetworkTable.getTable("SmartDashboard").getNumber("something")
Code:
NetworkTable.getTable("SmartDashboard").getNumber("something", defaultValue)
However if you connect and then disconnect, the values returned will be the last known values. |
|
#6
|
|||
|
|||
|
Re: SmartDashboard Problem
Quote:
Last year I used this to display, on a dial and a bar, the amount of pressure that our pneumatic system had left so that our drivers could tell if they had enough pressure to fire or not. It's a great tool that's easy to use Good luck! |
|
#7
|
|||
|
|||
|
Re: SmartDashboard Problem
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|