How to print data to FRC PC Dashboard

Hello,

My team, wants to send some data to the default frc pc dashboard (not the smart dashboard, labview, remote, or shuffleboard). This data includes strings, gyro data to the gyro chart and perhaps other sensor data… we could not figure out how to send text (string) data to the default dashboard or gyro data to the chart in the default dashboard. does anyone know how i would go about programming this in java.

Thanks!:slight_smile:

1 Like

In java it is:
SmartDashboard.putString("Key Reference", someString);

It should show up in the dashboard under the tab “Smart Dashboard” and if you want to create other tabs or drop down sections to organize your data then the Key Reference can be something like “Wheels/Wheel1/Encoder” and “Wheels/Wheel2/Encoder” and both values will show under a “Wheels” drop down but the separate values will be under their corresponding Wheel (wheel1 or wheel2). Hope this makes sense!

Useful resources for other functions:
http://first.wpi.edu/FRC/roborio/release/docs/java/edu/wpi/first/wpilibj/smartdashboard/SmartDashboard.html (even though you are using the regular dashboard it is still SmartDashboard class)
https://wpilib.screenstepslive.com/s/currentCS/m/driver_station/l/272692-using-the-labview-dashboard-with-c-java-code

1 Like

Thanks very much!!!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.