Go to Post I said it was called FIRST Robotics and the coolest thing I'd seen that day was a 150lb robot balance with another one on a teeter-tooter and and then score basketballs from 30 feet away. - Siri [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #5   Spotlight this post!  
Unread 03-02-2014, 05:36 PM
James Lightfoot James Lightfoot is offline
Programming & Electrical Mentor
FRC #3737 (Rotoraptors)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Wayne County, NC
Posts: 21
James Lightfoot is just really niceJames Lightfoot is just really niceJames Lightfoot is just really niceJames Lightfoot is just really niceJames Lightfoot is just really nice
Re: sending variables from driver station to robot?

Quote:
Originally Posted by Joe Ross View Post
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
Please pardon me if my question seams redundant.

We are using Java for our cRIO and the Java version of the Smart Dashboard. How can we have an operator/driver enter number values
in the Smart Dashboard (or other software interface) and have them "pushed" to the cRIO as values to use in certain parts of the code?

For example, we have an ultrasonic sensor that feeds the cRIO an analog signal based on how far the sensor is from the wall (front mount). We know that we need our robot to be 7'/84" from the wall to shoot for and make the high goal. In autonomous, I would like to have the ability for the driver to enter that value in the driver station and have it passed to that filed in the autonomous code to allow on site tweaking w/o having to do multiple downloads to the cRIO.

Thanks.
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:35 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi