View Single Post
  #4   Spotlight this post!  
Unread 07-02-2013, 18:48
Deviator247 Deviator247 is offline
Registered User
FRC #2164
 
Join Date: Jan 2012
Location: Harrisonville, MO
Posts: 6
Deviator247 is an unknown quantity at this point
Re: Connecting an FRC Dashboard project to an FRC cRio project

Quote:
Originally Posted by Alan Anderson View Post
What part are you having difficulty with?

Creating a 4 value slide control on the Dashboard front panel is straightforward. It'll automatically be a SmartDashboard variable. You can play with its properties to make it an integer with minimum value 1 and maximum value 4.

Reading that variable on the cRIO in the Autonomous Independent vi is also straightforward. Use the SD Read Number function. It'll probably arrive as a floating-point value, so you'll have to turn it into an integer before using it as the Selector for a Case Structure.
I need help with connecting the dashboard project (PC dashboard) to the cRio project in order to use a slider that I've completed to set a time value, I basically need to use a slider to set a time delay on a while loop for a motor, the slider has 5 positions now, (Off, wait 2 seconds before running, wait 5 seconds, wait 8 seconds, and wait 11 seconds) these are times we need the autonomous to wait before starting our while loops, I was hoping to use a case structure to control the loop, where if the slider on the dashboard project is set to 1, there is no wait, and each other value sets a wait time before the motor in the while loop runs.I hope that clears it up a little