View Single Post
  #1   Spotlight this post!  
Unread 22-02-2016, 17:16
Spillertb Spillertb is offline
Registered User
FRC #5752
 
Join Date: Feb 2016
Location: Beverly
Posts: 11
Spillertb is an unknown quantity at this point
SmartDashboard help

I am using command based java on our robot, but no matter what we try we can not get smart dashboard to work. We have a classmate from last year, and we followed the instructions to update everything on it. I have the connection indicator on the dashboard but it is always red. Here is the code I am trying:
Code:
    public void teleopPeriodic() {
        Scheduler.getInstance().run();
        SmartDashboard.putData(driveTrain);
        SmartDashboard.putDouble("test", 12);
    }
and / or
Code:
    public void teleopInit() {
		// This makes sure that the autonomous stops running when
        // teleop starts running. If you want the autonomous to 
        // continue until interrupted by another command, remove
        // this line or comment it out.
        if (autonomousCommand != null) autonomousCommand.cancel();

        SmartDashboard.putData(driveTrain);
        SmartDashboard.putDouble("test", 12);
    }
I have tried every possible iteration of code in command and in robot.java.
We are using the java smart dashboard, our team number is correct, and mDNS is enabled.
Thanks!