![]() |
SmartDashboard Problem
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.
|
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). |
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"); |
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?
|
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. |
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! |
Re: SmartDashboard Problem
Quote:
|
| All times are GMT -5. The time now is 09:40. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi