View Single Post
  #2   Spotlight this post!  
Unread 20-01-2014, 19:10
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,548
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: sending variables from driver station to robot?

In general, you can call SmartDashboard.putNumber in an init method (so that it gets loaded on the SmartDashboard), and then call SmartDashboard.getNumber to read the current value on the Smart Dashboard.

If you are using the PIDController class, there is already a PID widget on Smart Dashobard that lets you change P, I, and D, and the setpoint. You can add the PIDController as an actuator with LiveWindow, and test whatever you want.

See:
http://wpilib.screenstepslive.com/s/...ewindow-values
http://wpilib.screenstepslive.com/s/...smartdashboard
Reply With Quote