|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
Outputting to Smart Dashboard
We are using netbeans and we have the output to the built in compiler on netbeans, but we can't get the output to display on the smartdashboard, any help would be greatly appreciated! If you give us basic code for outputting to the smart dashboard that would be even better
|
|
#2
|
||||
|
||||
|
Re: Outputting to Smart Dashboard
Code:
SmartDashboard.putData("name", 123)
It's helpful to add a connection indicator to the SDB so you know when its connected. |
|
#3
|
|||||
|
|||||
|
Re: Outputting to Smart Dashboard
Thanks, that makes sense. However, how do I get the "name", I do not see it on the Driver Station, unless this is not what you meant by the "dashboard side".
And after looking at the constructor, I am still confused as to what a "key" is. Also, what does the 123 in your code signify? Thanks again! |
|
#4
|
||||
|
||||
|
Re: Outputting to Smart Dashboard
Do you have the SmartDashboard running? The SmartDashboard is not the default dashboard or driver station. You can get it here. It's intended to be a replacement for the default dashboard, and easier to customize.
The SmartDashboard displays data based on the key of the data. The first parameter of putData is the key, the second is the data. If I wrote putData("Gyro Heading", gyro.getAngle());, a field would be created called "Gyro Heading" with the current value of the gyro. Subsequent calls to putData with the key "Gyro Heading" would update the same field instead of creating a new one. The 123 was just a sample value to send. |
|
#5
|
|||||
|
|||||
|
Re: Outputting to Smart Dashboard
Alright thanks, I had downloaded the file previously, but I was confused why it was merely blank when I ran it. It makes sense now.
Now, do you have any idea how I would go about putting the camera feed from the default dashboard onto this Smart Dashboard? Thanks so much! |
|
#6
|
|||
|
|||
|
Re: Outputting to Smart Dashboard
I believe there is an option to add a camera widget on the top of the SmartDashboard. its under add->.
granted i havent got smartdashboard to connect, so idk if it works. |
|
#7
|
||||
|
||||
|
Re: Outputting to Smart Dashboard
Hey im kinda new to the SmartDashboard. Is it legal to use in competition?
|
|
#8
|
|||
|
|||
|
Re: Outputting to Smart Dashboard
Absolutely. Any dashboard is. It's the Driver Station that cannot be changed.
|
|
#9
|
|||
|
|||
|
Re: Outputting to Smart Dashboard
Quote:
Brad |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|