Log in

View Full Version : SmartDashboard prints


1024Programming
17-01-2015, 17:42
I've been trying to print my ultrasonic and gyro values to the SmartDashboard using
SmartDashboard.putNumber(RobotMap.drivetrainultra. getVoltage());
SmartDashboard.putNumber(RobotMap.drivetraingyro.g etAngle());
and I can't find where it prints it out in the SmartDashboard window. Can anyone tell me where those commands will output, or a different command to print it out somewhere I can find?
I've also used the System.out.println to see it on the RIOlog, but I'd like to be able to put my status update prints on the SmartDashboard.

M3rcuriel
17-01-2015, 19:00
You'd have to use it like so:
SmartDashboard.putNumber("Gyro", RobotMap.drivetraingyro.getAngle());

Edit: It outputs to the Java Dashboard.

Fauge7
17-01-2015, 19:01
SmartDashboard.putNumber("Gyro value", gyro.getAngle());